osCmax v2.5 User Manual
Results 1 to 8 of 8

Upgrading to 2.0.25 admin error... Database?

This is a discussion on Upgrading to 2.0.25 admin error... Database? within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I ran the upgrade script just fine and it seemed to update the database. But now I have the following ...

      
  1. #1
    New Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0


    Default Upgrading to 2.0.25 admin error... Database?

    I ran the upgrade script just fine and it seemed to update the database.

    But now I have the following text on my main page

    To modify the content of this page, go to the admin panel and click on the Catalog link. Then click on the Define MainPage link. It will open a wysiwyg editor where you can easily add new content.
    ------------------------------------------------------------
    This is osCMax v2.0.25, the power e-commerce shopping cart system.

    The official osCMax Support Site is osCMax - osCommerce Maximized | osCmax shopping cart software . There are very active support forums, the documentation, downloads, and everything else related to osCMax.


    and the admin area wont log me in. I have the correct username (which is an email address) and password. When I login it gives me the following error.

    1054 - Unknown column 'admin_username' in 'field list'

    select admin_id as login_id, admin_groups_id as login_groups_id, admin_username as login_username, admin_password as login_password, admin_modified as login_modified, admin_logdate as login_logdate, admin_lognum as login_lognum from admin where admin_username = 'bersh31@hotmail.com'

    [TEP STOP]


    Upon further investigation I looked at the database and I only have these Colums.

    admin_id admin_groups_id admin_firstname admin_lastname admin_email_address admin_password admin_created admin_modified admin_logdate admin_lognum

    Obviously I didn't paste the values. But it never references a username... Just the email.

    Did I miss something during the upgrade?

  2. #2
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Upgrading to 2.0.25 admin error... Database?

    What version are you upgrading from? 2.0 stable? 2.0.15? Older than 2.0 stable (like RC3, etc...).
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  3. #3
    New Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0


    Default Re: Upgrading to 2.0.25 admin error... Database?

    I want to say it was 2.0 stable. May have been 2.15 but I'm leaning more towards 2.0. Wish I could go back and check

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Upgrading to 2.0.25 admin error... Database?

    If you made a backup as is recommended before doing upgrades, you can go back and check. You did make a backup, right?

    Ok, Assuming 2.0 stable, it looks like something was missed in your admin upgrade. You may need to manually update the structure and data for your admin table.


    Having the default main page text means you overwrote your custom main page text. If you have a backup, you can just replace the main page file with your backup to resolve that.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0


    Default Re: Upgrading to 2.0.25 admin error... Database?

    Quote Originally Posted by michael_s View Post

    Ok, Assuming 2.0 stable, it looks like something was missed in your admin upgrade. You may need to manually update the structure and data for your admin table.
    How would I go about doing that?

  6. #6
    New Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0


    Default Re: Upgrading to 2.0.25 admin error... Database?

    Does anybody know the answer? My site is pretty much broke until this gets a answer

  7. #7
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default Re: Upgrading to 2.0.25 admin error... Database?

    Manually modify your admin table to have the correct fields. Look at the upgrade .sql file and find the query that updates the admin table and manually make the changes using phpmyadmin or other mysql gui front-end (or the command line if you know how). Add the missing columns and make any other changes that are needed.

    Once you have all the columns in place check to see that whatever admin users you have records for have all the fields filled in properly except for the password. Then note the username (if none is present, add one via phpmyadmin). Then go to your admin login screen and use the "Forgot Password" dialog to have a new password generated and issued to you. Once you get the new password, login and get back to work.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  8. #8
    New Member
    Join Date
    Feb 2011
    Posts
    5
    Rep Power
    0


    Default Re: Upgrading to 2.0.25 admin error... Database?

    Quote Originally Posted by michael_s View Post
    Manually modify your admin table to have the correct fields. Look at the upgrade .sql file and find the query that updates the admin table and manually make the changes using phpmyadmin or other mysql gui front-end (or the command line if you know how). Add the missing columns and make any other changes that are needed.

    Once you have all the columns in place check to see that whatever admin users you have records for have all the fields filled in properly except for the password. Then note the username (if none is present, add one via phpmyadmin). Then go to your admin login screen and use the "Forgot Password" dialog to have a new password generated and issued to you. Once you get the new password, login and get back to work.
    That all sounds great, but I can't seem to figure out how to insert the extra column. I redid the upgrade and the same thing happens to where there is no admin_username field in the database.

    Can you give me more detailed instructions on how to update the database?

Similar Threads

  1. Converting/Upgrading the database from osC 2.2ms2 to osCMax.
    By Shortbus in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 08-04-2010, 03:13 PM
  2. Database Error
    By nancy in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 02-19-2010, 08:19 PM
  3. admin problem after upgrading products_listin
    By arafail in forum osCommerce 2.2 Discussion
    Replies: 3
    Last Post: 11-01-2008, 06:45 PM
  4. database error
    By Christy in forum osCmax v2 Installation issues
    Replies: 1
    Last Post: 12-04-2005, 08:30 AM
  5. Installed and upgrading from osc 2 database needs importing
    By gamefreak7 in forum osCmax v2 Installation issues
    Replies: 4
    Last Post: 07-17-2005, 10:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •