Results 1 to 8 of 8
  1. #1
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    I am having problems upgrading smoothly from 1.5.4. I do not get offered a database upgrade option unless I rename my admin, which seems to be the first problem. Furthermore upon renaming my admin I have problems with my admin (or any admin) username/password working so I can complete the install.

    Currently my development site is set up for 1.5.4. I receive an error when visiting the site that my database needs patching to a higher level. I have copied the zc_install folder over in it's entirety from the installation package. Running the 1.5.4 zc_install shows the following 'errors' upon checking.

    /admin/includes/configure.php does not exist more info...
    store configure.php is not writeable more info...

    Every option on the bottom of this page is greyed out except for the "Re-Check" Button.

    I have tried changing the permissions of the include/configure.php file to be 777. This gets rid of the later warning but does not enable the database upgrade option.

    As I've been told that renaming your admin is not required during installation I'm going to stop here and ask for advice. I will leave the problems with the admin password for later if they pop up.

  2. #2
    Join Date
    Jul 2012
    Posts
    16,732
    Plugin Contributions
    17

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    What browser are you using, and have you tried a different one? (I've come across that issue in upgrades from previous versions as well, but can't seem to remember exactly how I got around it, or whether it was a database connection issue of some sort.)

    Hopefully you have also reviewed: http://www.zen-cart.com/showthread.p...s)-with-v1-5-4 for possible corrections necessary to further support installation...

    Further, correct the admin directory does not need to be renamed to support a database only upgrade. Perhaps some other browser "plugin" may be causing the issue?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    Quote Originally Posted by mc12345678 View Post
    What browser are you using, and have you tried a different one? (I've come across that issue in upgrades from previous versions as well, but can't seem to remember exactly how I got around it, or whether it was a database connection issue of some sort.)
    I was trying Chrome, I have tested with Firefox and Opera and the problem exists with all browsers.

    Hopefully you have also reviewed: http://www.zen-cart.com/showthread.p...s)-with-v1-5-4 for possible corrections necessary to further support installation...
    I have reviewed these, nothing seems to fit my circumstances.

    Further, correct the admin directory does not need to be renamed to support a database only upgrade. Perhaps some other browser "plugin" may be causing the issue?
    It was worth a shot, but with it misbehaving in three browsers I think this is server side.

    I will continue to look for the problem.

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

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    Quote Originally Posted by llynix View Post
    I do not get offered a database upgrade option unless I rename my admin, which seems to be the first problem.
    The Database-Upgrade button is grayed-out if the database-credentials in the /includes/configure.php don't allow it to make a database connection.

    On the system-inspection screen, add &debug=ON to the URL and press Enter to reload the page. Perhaps the info listed there might help you. If not, post that URL here so we can review it for you.

    Quote Originally Posted by llynix View Post
    I have problems with my admin (or any admin) username/password working so I can complete the install.
    What PHP version are you using?
    .

    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.

  5. #5
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    So I ripped through the install code and eventually figured out what exactly was happening.

    Long story short I had the line:
    Code:
    /**
     * dist-configure.php
     *
    In the top of my includes/configure.php file. This invalidated the variable: $zen_cart_previous_version_installed in this code snippet:
    Code:
        //read the configure.php file and look for hints that it's just a copy of dist-configure.php
        $lines = file('../includes/configure.php');
        foreach ($lines as $line) {
          if (substr_count($line,'dist-configure.php') > 0) $zen_cart_previous_version_installed = false;
        } //end foreach
    Removing that line in the comments enables the database upgrade option. It also gives me a new option to upgrade my config files (which is disabled).

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

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    Quote Originally Posted by llynix View Post
    So I ripped through the install code and eventually figured out what exactly was happening.

    Long story short I had the line:
    Code:
    /**
     * dist-configure.php
     *
    In the top of my includes/configure.php file. This invalidated the variable: $zen_cart_previous_version_installed in this code snippet:
    Code:
        //read the configure.php file and look for hints that it's just a copy of dist-configure.php
        $lines = file('../includes/configure.php');
        foreach ($lines as $line) {
          if (substr_count($line,'dist-configure.php') > 0) $zen_cart_previous_version_installed = false;
        } //end foreach
    Removing that line in the comments enables the database upgrade option.
    Hmmmm ... ya, that'd be a problem. :)
    I'm pretty sure it's a non-issue in v1.6.0 because I'm pretty sure it doesn't check for that scenario in the fully-rewritten zc_install used there.

    Quote Originally Posted by llynix View Post
    It also gives me a new option to upgrade my config files (which is disabled).
    The upgrade-config-file option is only coded to convert v1.2.x to v1.3.x config file format. It doesn't build new v1.5.4 files.
    So, if you'd like the new conveniences offered by the new config files, you can build those yourself ... I presume you're more inclined to copy dist-configure again so I won't bother directing you to make a fresh new install in a new folder for a staging site like a usual upgrade procedure advises (mc12345678 gave a link to you already for that), and use that file as your template.
    .

    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.

  7. #7
    Join Date
    Jul 2009
    Location
    Texas
    Posts
    209
    Plugin Contributions
    2

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    Quote Originally Posted by DrByte View Post
    The upgrade-config-file option is only coded to convert v1.2.x to v1.3.x config file format. It doesn't build new v1.5.4 files.
    So, if you'd like the new conveniences offered by the new config files, you can build those yourself ... I presume you're more inclined to copy dist-configure again so I won't bother directing you to make a fresh new install in a new folder for a staging site like a usual upgrade procedure advises (mc12345678 gave a link to you already for that), and use that file as your template.
    I have been copying configuration changes into my new files. Other then credentials and paths my current config mirrors those of 1.5.4. They just unfortunately had that dist-configure.php comment in them.

    I'm trying to find where I messed up. Reading through the original instructions and the current instructions seems to advise copying dist-configure.php into your own and changing credentials. No where do they mention modifying the comments.

    I can re-install a fresh copy and use those config files. I still have yet to see in the upgrade documentation where this step was required, but I could have missed it. Also the link mc12345678 gave me seemed to be current problems, none of them pertained to the config files so if there is another link I have missed please let me know.

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

    Default Re: Troubles upgrading from 1.5.3 Database Upgrade Greyed Out

    The typical instructions that have been suggested to follow are found: http://www.zen-cart.com/entry.php?3-...d-of-upgrading

    I made an assumption that such a process was followed based on the description and instead went to the next step of potential problems that have been identified and other fixes that might apply.

    Further the typical instructions involve setting up the site in a location and then either using the existing configure.php file of the operational store or copying the new configure.php generated from the new install and modifying as necessary to account for it's new location in the store's final location. See: http://www.zen-cart.com/content.php?...that-directory
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. v154 Upgrading from v154 to v155a problem with database upgrade
    By rsrwus in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 13 May 2016, 02:28 AM
  2. v154 Chinese Language from Database Garbled after upgrading from v137
    By haostaff in forum Upgrading to 1.5.x
    Replies: 2
    Last Post: 21 May 2015, 04:01 AM
  3. v139b Text box for Edit Category & Edit Product greyed out
    By irishshoppercom in forum Basic Configuration
    Replies: 0
    Last Post: 23 Oct 2013, 10:03 AM
  4. Trouble upgrading - database won't upgrade!
    By AlexanderK in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 4 Jun 2010, 09:17 PM
  5. Replies: 2
    Last Post: 27 Jun 2008, 05:00 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