Page 1 of 3 123 LastLast
Results 1 to 10 of 23
  1. #1
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default System inspection does not offer database upgrade

    A clean install was done of 1.5.5a. A database was exported from a live 1.5.0 install and imported to the 1.5.5a database with drop tables. Started zc_install again to do a database upgrade from 1.5.0 to 1.5.5a. System inspection indicates that config files exist and shows a button for clean install only. Four log files were created during the clean install and one log file during the second system inspection. The database tables project_version and project_version_history both indicate 1.5.0 after the import. Table upgrade_exceptions is empty.

    PHP Version: 7.0.6 (Zend: 3.0.0)
    Database: MySQL 10.1.14-MariaDB

    Added: Admin has a message "Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels.".
    Server info page shows:

    Zen Cart 1.5.5a
    Database Patch Level: 1.5.0
    v1.5.0 [2012-04-12 04:48:40] (Fresh Installation)
    v1.5.0 [2012-04-12 04:48:40] (Fresh Installation)
    Last edited by badarac; 23 May 2016 at 01:03 PM. Reason: additional info

  2. #2
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: System inspection does not offer database upgrade

    Just a little additional info. I uncommented the echos in zc_install/includes/modules/pages/index/header_php.php at lines 42-45. This is what the system inspection page is finding for those vars string(5) "1.5.5" bool(true) bool(true) bool(true). Looks like the $dbversion is being set incorrectly.

    If I set $dbversion to 1.5.0 it works as expected offering the upgrade button.
    Last edited by badarac; 23 May 2016 at 01:41 PM.

  3. #3
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: System inspection does not offer database upgrade

    Just for chuckles I did this install in a local wamp environment to see if it might be related somehow to MariaDB. I had the same issue running the install on MySQL 5.5.

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

    Default Re: System inspection does not offer database upgrade

    In all of the process to do the upgrade, was the database restore with 1.5.0 performed while zc_install was not being accessed?

    Ie. No session info present.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: System inspection does not offer database upgrade

    No but I'll try it now

  6. #6
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: System inspection does not offer database upgrade

    I just imported the database and opened the zc_install in the browser. It detected that config files exist but did not off the upgrade.

  7. #7
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: System inspection does not offer database upgrade

    Same result on the MariaDB install

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

    Default Re: System inspection does not offer database upgrade

    What happens if you change/move this line from 180 to just after the next closing curly bracket? Or revise it to break 2?

    Code:
            if (isset($version)) break;
    That was an initial thought which I now don't think will resolve the issue. The reason that I think that is because as I continued to review the yml file for version checking, I see some information related to each specific ZC version. I can translate this more, but if I'm somewhat hoping that I can just copy and paste it and perhaps you'll understand (on a cell phone at the moment). The thing to identify is if in your 1.5.0 database, the following characteristics of the database are true:

    Code:
          - checkType: configValue
                fieldName: CC_ENABLED_DEBIT
                expectedResult: 'Credit Card Enable Status - Debit'
              - checkType: fieldSchema
                tableName: admin
                fieldName: reset_token
                fieldCheck: Type
                expectedResult: 'VARCHAR(255)'
              - checkType: fieldSchema
                tableName: orders
                fieldName: shipping_method
                fieldCheck: Type
                expectedResult: 'VARCHAR(255)'
              - checkType: configValue
                fieldName: CURRENCY_SERVER_PRIMARY
                expectedResult: 'Currency Exchange Rate: Primary Source'
    For example, the first one to verify that in the configuration table that the key: CC_ENABLED_DEBIT has the value that is shown as expected. This could be because of other database actions taken to keep the store "up-to-date" or to support some other plugin, etc... but curious if all of those conditions match for this DB.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

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

    Default Re: System inspection does not offer database upgrade

    Sounds like the DB_PREFIX doesn't match what's in the imported database
    .

    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.

  10. #10
    Join Date
    Aug 2009
    Location
    Longs, SC
    Posts
    626
    Plugin Contributions
    2

    Default Re: System inspection does not offer database upgrade

    All of these match in the imported database
    Quote Originally Posted by mc12345678 View Post
    What happens if you change/move this line from 180 to just after the next closing curly bracket? Or revise it to break 2?

    Code:
            if (isset($version)) break;
    That was an initial thought which I now don't think will resolve the issue. The reason that I think that is because as I continued to review the yml file for version checking, I see some information related to each specific ZC version. I can translate this more, but if I'm somewhat hoping that I can just copy and paste it and perhaps you'll understand (on a cell phone at the moment). The thing to identify is if in your 1.5.0 database, the following characteristics of the database are true:

    Code:
          - checkType: configValue
                fieldName: CC_ENABLED_DEBIT
                expectedResult: 'Credit Card Enable Status - Debit'
              - checkType: fieldSchema
                tableName: admin
                fieldName: reset_token
                fieldCheck: Type
                expectedResult: 'VARCHAR(255)'
              - checkType: fieldSchema
                tableName: orders
                fieldName: shipping_method
                fieldCheck: Type
                expectedResult: 'VARCHAR(255)'
              - checkType: configValue
                fieldName: CURRENCY_SERVER_PRIMARY
                expectedResult: 'Currency Exchange Rate: Primary Source'
    For example, the first one to verify that in the configuration table that the key: CC_ENABLED_DEBIT has the value that is shown as expected. This could be because of other database actions taken to keep the store "up-to-date" or to support some other plugin, etc... but curious if all of those conditions match for this DB.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 8
    Last Post: 5 May 2016, 05:54 AM
  2. system inspection results
    By buster52 in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 17 Feb 2009, 10:02 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