Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Upgrade Completes BUT

    Upgraded 1.5.1 to 1.5.8 by installing a bare 1.5.8 and replacing the DB with that of the old 1.5.1. zc_install gave database upgrade option.

    Using that reported thee upgrade as successful and completed to remove zc_install message.

    I am able to see the storefront and all products are present. (imamges not copied over yet)

    When I try to log in to the admin, I continually get:


    Code:
    [15-Jul-2023 17:39:05 UTC] Request URI: /ADMIN/index.php?cmd=login&camefrom=index.php, IP address: 123.345.567.789, Language id 1#1  trigger_error() called at [/home/*****/*****/includes/classes/db/mysql/query_factory.php:703]
    #2  queryFactory->show_error() called at [/home/*****/*****/includes/classes/db/mysql/query_factory.php:648]
    #3  queryFactory->set_error() called at [/home/*****/*****/includes/classes/db/mysql/query_factory.php:289]
    #4  queryFactory->Execute() called at [/home/*****/*****/ADMIN/includes/functions/admin_access.php:272]
    #5  zen_read_user() called at [/home/*****/*****/ADMIN/includes/functions/admin_access.php:290]
    #6  zen_validate_user_login() called at [/home/*****/*****/ADMIN/login.php:34]
    #7  require(/home/*****/*****/ADMIN/login.php) called at [/home/*****/*****/ADMIN/index.php:11]
    --> PHP Fatal error: MySQL error 1054: Unknown column 'admin_profile' in 'field list' :: SELECT admin_id, admin_name, admin_email, admin_pass, pwd_last_change_date, reset_token, failed_logins, lockout_expires, admin_profile
                FROM admin WHERE admin_name = 'jeandert'  LIMIT 1 ==> (as called by) /home/*****/*****/ADMIN/includes/functions/admin_access.php on line 272 <== in /home/*****/*****/includes/classes/db/mysql/query_factory.php on line 703.
    The admin_profile column DOES exist but nothing I do seems to make the system want to accept it.

    Thoughts?

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Upgrade Completes BUT

    First thing that comes to mind is whether it's pointed at the correct database, in the admin configure.php
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Upgrade Completes BUT

    Store
    Code:
    // define our database connection
    define('DB_TYPE', 'mysql');
    define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
    define('DB_CHARSET', 'utf8');
    define('DB_SERVER', 'localhost');
    define('DB_SERVER_USERNAME', 'soycnanc_marjac');
    define('DB_SERVER_PASSWORD', 'Bm1e_}#R');
    define('DB_DATABASE', 'soycnanc_151');
    admin
    Code:
    // define our database connection
      define('DB_TYPE', 'mysql');
      define('DB_PREFIX', '');
      define('DB_CHARSET', 'utf8');
      define('DB_SERVER', 'localhost');
      define('DB_SERVER_USERNAME', 'soycnanc_marjac');
      define('DB_SERVER_PASSWORD', 'Bm1e_}#R');
      define('DB_DATABASE', 'soycnanc_151');

  4. #4
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Upgrade Completes BUT

    And the screen says...
    WARNING: An Error occurred, please let us know! If you were entering information, press the BACK button in your browser and re-check the information you had entered to be sure you entered valid data.

  5. #5
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,499
    Plugin Contributions
    88

    Default Re: Upgrade Completes BUT

    Is there a configure.php file in admin/includes/local/?

  6. #6
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Upgrade Completes BUT

    Quote Originally Posted by dbltoe View Post
    And the screen says...
    As you probably know, this is expected based on the debug log identifying an error. What lat9 identified seems to be a possibility though even with starting with a 1.5.1 database, that field already existed. Only thing that really makes sense is that the database referenced doesn't have a the admin that is even that recent.

    Provided data about the current system configure files, what about the original store? What db_prefix did it have?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: Upgrade Completes BUT

    Go to phpmyadmin, select database soycnanc_151, go to table admin and click structure to view the schema. Post a screenshot of the schema.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Upgrade Completes BUT

    Covid twice was way easier than this!
    The original structure had admin_level as you can see in the image.
    After bringing it over and getting all the files up to really 1.5.1, the DB upgrade added fields to the admin table but left the admin_level field.
    Attached Images Attached Images  

  9. #9
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Upgrade Completes BUT

    Quote Originally Posted by lat9 View Post
    Is there a configure.php file in admin/includes/local/?
    Nothing in any of my tries but skip_version_check.inoi

  10. #10
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,154
    Plugin Contributions
    11

    Default Re: Upgrade Completes BUT

    To add further info,
    brought over the files

    files had four sub or sub-sub folders named public_html

    finally found correct root/admin and added them to the new site

    brought over DB dump from old site.

    had to load 5.3 to get anything to work. 5.3 gave timezone error and that was set

    loaded files and database from old site and tried to run on our server. Admin would not let us in even after sending new password. Kept getting the "incorrect password" notice.

    pulled down fresh 1.5.1 and went file by file to ensure the site was all 1.5.1 (found many 1.3.9 and 1.5.0 files in existance)

    after that, we could get the storefront with products and images but still no joy on the admin.

    used zc_install and it did have the DB upgrade option. Ran that, got success notice, still couldn't get into admin (all times/tries showed that version's admin login screen

    All zc_install operations at 1.5.1 reported a curl error if that makes any difference

    created a 1.5.5 test site and imported the DB. Upgrade reported succes but still no access to the admin although passwords created did not report "incocrrect password" We got a 500 and a PHP parse error unexpected 'if' (T_IF) in /home/USER/public_html/ADMIN/login.php on line 22

    19.5 years at this. You'd think I could at least stumble on a fix

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Customer completes order, but download is not available to them?
    By LaineyS in forum Managing Customers and Orders
    Replies: 1
    Last Post: 17 Jan 2009, 02:38 AM
  2. Paypal payment not being received but order completes
    By vito in forum PayPal Express Checkout support
    Replies: 6
    Last Post: 7 Dec 2008, 11:47 AM
  3. Install completes but store won't launch
    By TrevorJacques in forum Installing on a Mac Server
    Replies: 3
    Last Post: 23 May 2008, 07:25 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR