After upgrade from 1.5.0 to 1.5.4, I am getting a 500 Internal Server Error: states likely causes are 'down for maintenance' or 'program error'. The Admin page works after the upgrade and I was able to turn off Maintenance mode that way, but that change doesn't make the main store website load the site.
I read as many threads as I could find and could not locate a problem like this, please forgive me if this is answered somewhere else.
I am helping a friend upgrade his site, so was not involved in original 1.5.0 install (in 2012). Here are the details of where I am so far:
Site is hosted by DreamHost on a Linux box.
PHP is version 5.6.10 (Zend 2.6.0)
MySQL version is 5.6.25
ZenCart screen shows the four database patch levels 1.5.1 through 1.5.4 all sequentially, each one as a version update from each previous version, which resulted from the zc_install process I ran yesterday, one step at a time as noted in the instructions.
The original store was set up in the top-level directory so all of the original website folders are subfolders of that top level (mydomain.com).
I created a new domain with an SSL certificate and copied databases and files from the original store to the new domain structure and set it up exactly as the live store (with the new domain.com and database parameters edited in the configure.php files of course). We determined this new test domain functioned exactly like the live store before proceeding with the upgrade to the test domain.
The upgraded store website files and folders were copied into a zc_154 folder that was placed at the top level of mydomain.com (meaning /zc_154/ is a subfolder along with the other 1.5.0 subfolders.
I used WinMerge to compare the two folder structures downloaded to my PC, and updated about 50-55 PHP files, most of which involved adding CEON URI Mapping sections and/or ReCAPTCHA sections found in the 1.5.0 PHP files; some were just custom comments from the original setup, and a couple referenced extra fields that were added as a customization. Tedious but it seemed to go well...WinMerge made it fairly straightforward.
After running the zc_install upgrade from the /zc_154/zc_install folder (which really just upgraded the database) my attempt to go live was to:
1. renamed the admin folder as suggested.
2. renamed the zc_install folder within the /zc_154/ subfolder (for some reason I couldn't delete it).
3. changed the Dreamhost root folder from mydomain.com to point users at mydomain.com/zc_154/
4. edited the two configure.php files to incorporate the /zc_154/ pathname in the DIR_FS_CATALOG, DIR_WS_CATALOG, DIR_WS_HTTPS_CATALOG and DIR_FS_SQL_CACHE defines, (and nowhere else) before I copied them up, as part of the WinMerge work.
After these changes, I was able to log into the Admin tool and confirm I was on the new version. Maintenance was indeed turned On after copying up the edited 1.5.4 program files and pointing Dreamhost to the /zc_154/ folder, and I was able to turn maintenance Off in the Admin tool.
Attempting to roll back was also unsuccessful, perhaps the original 1.5.0 PHP files don't like the 1.5.4 database structure. I have not yet dumped everything to start over with the original PHP files and 1.5.0 database.
I think I'm really close, just missing some important fact that someone might recognize. Sure would appreciate a nudge in the right direction.
This is all being done in a test environment, so no rush (except my friend is breathing down my neck to get fully PCI compliant). Any suggestions would be welcome.
Regards,
Brad Martin


Reply With Quote

