I've spent all afternoon and all evening trying to upgrade from 129 to the latest version but to no avail. Everytime it's a different problem, everytime is some error here or there. 500, 400, php change line 3 million, I look on these forums and I dont know where to start - I give up. Zenphoto is absolutely fantastic and it does photos better than anything else out there. But all this code and problems baffles me, so I'm hanging up my hat.
And your upgrade instructions, delete all files in base directory eg xx.php... What's that supposed to mean? All non folders? Only .php files? Anyway, good job on everything when it works and when you come up with a one click upgrade please tell me. Because I've had enough.
Comments
"and remove..... the files in the home dir (index.php, rss.php etc.)" is not explicit. I'll give you an example of some of the files in my home dir.
zenphoto.package
htaccess
all the php files.
Do I really wipe these all out? Anyway, I tried to setup a test database so I wouldn't keep ruining my live version:
http://appl.prettysnappy.net/
The last attempt here was what I got when I tired to install a new version, and then import albums, cache, backup etc...Sometimes, strangely, doing things on a separate database actually ruined my live version too.
We are always in for improving but this is really explicit. Of course you should not remove your /albums folder. After you downloaded one of the two archives from our site, extracted it and uploaded those to your server either into the root of that server or within a subfolder (for example "zenphoto"). That is the home directory of Zenphoto... It is that simple.
Sometimes, strangely, doing things on a separate database actually ruined my live version too.
If you used a separate database that can't really happen. Unless you did use the same database with the same table prefix. In that case the new install would overwrite the database data of the other one of course.
I would really recommend to start fresh install following our instructions.
And the second I try to migrate the 1.2.9 version to the 3.0.1 version it tells me I have a duplicate administrator. If I paid you would you do it for me?
http://appl.prettysnappy.net/zp-core/setup.php
Should I press "Go" ?
******
It was too tempting, I pressed Go. Didn't work. Cant process request or something like that.
As to the final post, since you have apparently removed the setup files (as recommended) we cannot see what you saw.
1. delete EVERYTHING except the "albums" and "cache" folders from your /zenphoto/ install location (also leave the "backup" folder if you have made database backups, but if you haven't made any this won't exist yet). Take the downloaded latest version, and upload everything except those two folders (you need to keep the originals so that your photos still physically exist somewhere). Make sure the three folders - themes, plugins and zp-data - are writeable as noted in the instructions (CHMOD 777 on all three), and make sure that /zp-core/config.php.example is copied as /zp-core/config.php - then edit the file to include your database username, password and database name.
2. what I find works is to do as above, except instead of deleting the old install, simply create a new folder (eg zp_1.2.9_old) and simply move the old files into it. This should leave you with "albums", "cache" and "zp_1.2.9_old" folders, and continue with the upgrade as before. This is what I do and I can now move between older and newer versions at whim simply by moving the existing version into its folder, and moving the other version out into the main /zenphoto/ folder. This assists in version-based troubleshooting.
Also, since you are using 1.2.9 at the moment, make sure you use the backup function to make a backup of the database before trying any upgrade! This way, if you accidentally overwrite your database entries, you can restore them again (it is a good idea to do this for the entire database and indeed website on a regular basis). Remember that a database user (eg. "zenphoto") which uses tables prefixed with "zp_" will still have its entries overwritten by a different user (eg. "zenphoto_2") if this other user is using the same table names and prefixes. Different users in the same database can still cause issues, and perhaps this is the mistake you made with your test install.
@filecore - Huge thanks for such a detailed response, I've printed this out and I'm going to try it step by step. Thank you for everyone's efforts on this, greatly appreciated.