I swear I have searched high and low on both google and these forums before posting this.
I currently have a 1.3.8 installation of zencart. I am moving to a new server and want to upgrade at the same time. I copied my database to the new server and uploaded a fresh download of 1.3.9g and copied my configure files from the old 1.3.8 install.
My store works except fine except that i get a warning about needing a new patch level. I then try to use the installer to try to perform a DB upgrade, but I run into this error:
I know both the cache folder is writable and the zencart database user has FULL privileges to the database. The instalation page gives me green checks for EVERYTHING.Problem Detected
Sorry, a problem has been detected.
This installer needs to be able to start a PHP session in order to complete installation.
Anyway I think im gonna outsmart it by logging into the admin area and running the "mysql_upgrade_zencart_138_to_139.sql" script in the "install sql patches" tool. I am able to login and go to the tool but there is a bold red warning saying "NOTE: Zen Cart database-upgrade scripts should NOT be run from this page.
Please upload the new zc_install folder and run the upgrade from there instead for better reliability"
bah I tried that and it gave me the session error (note that since I can login to the admin page obviously sessions work and there are a couple other websites i have on this server using php sessions just fine as well)
I figured Id try running the patch anyway got a syntax error on a drop command fixed it and ran again. got the whit page of death, debugged it, and got this: "PHP Fatal error: Call to a member function add() on a non-object in /redacted/zen-cart/****/sqlpatch.php on line 211"
that line has this: "$messageStack->add('RENAME TABLE command not supported by upgrader. Please use phpMyAdmin instead.', 'caution');"
I guess you really shouldn't try and install sql patches this way which is fine i dropped the database and restored it from back up so I am back where i started.
Again i have a functional store, but the database needs to be upgraded which it will not let me do because of the session error. I know the session is not timing out; the page with the error loads instantly. the cache folder is writeable and i have tried setting session to both file and db in the config file; both produce this error. I have double checked and the zencart user has read write privs to the entire database.
Any ideas?
Edit: I also checked my browser and i am getting a cookies called zenInstallid, zenid, and zenAdminID. I have tried the upgrade in both latest firefox and lates chrome.
Edit2: resetting the browser (clearing both cache and cookies, etc) quitting and retrying has no effect either. didnt think it would, but typically thats the first thing people will ask me to do when troubleshooting such things.




