I recently upgraded from 1.1.6 to 1.3 via a convoluted process. The main reason was because I had albums all over the place and wanted a neater structure with subalbums, which wasn't possible with the older version. However, when trying to save my restructured albums, I get the error: empty $this->unique set is empty
Possibly this is symptomatic of deeper problems with the installation but since I literally upgraded it a few minutes ago and it was my main reason for doing so, I haven't encountered anything else yet, and can therefore only assume that it's the only problem right now. Any hints?
Comments
Anyway, going from 1.1.6 to 1.3 is a pretty large leap. It is quite possible that changes along the way are not propegated when skipping so many releases.
I would suggest you start again. This time make each upgrade in turn--that is run the setup process for each interim release level.
While it is certainly likely that you do not have to do this for each and every level, there is no way for us to be sure which ones are going to be required.
You can find all the old versions here
`MySQL Query ( UPDATE ``zp_administrators`SET `name`='blah' ,`password`='blah', `email`='blah', `rights`='16447' WHERE `id`='1' ) Failed. Error:Unknown column 'password' in 'field list'
Returning to the gallery gives errors:
`Warning: copy(/home/www/vhosts/site.net/httpdocs/zenphoto/albums/multimediaDefault.png) [function.copy]: failed to open stream: Permission denied in /home/www/vhosts/site.net/httpdocs/zenphoto/zp-core/controller.php on line 14`
`Warning: copy(/home/www/vhosts/site.net/httpdocs/zenphoto/albums/zen-logo.jpg) [function.copy]: failed to open stream: Permission denied in /home/www/vhosts/site.net/httpdocs/zenphoto/zp-core/controller.php on line 15`
`Warning: Cannot modify header information - headers already sent by (output started at /home/www/vhosts/site.net/httpdocs/zenphoto/zp-core/controller.php:14) in /home/www/vhosts/site.net/httpdocs/zenphoto/index.php on line 21`
`Warning: Cannot modify header information - headers already sent by (output started at /home/www/vhosts/site.net/httpdocs/zenphoto/zp-core/controller.php:14) in /home/www/vhosts/site.net/httpdocs/zenphoto/zp-core/functions.php on line 1668`
I would really love to just skip this and start anew with the most recent version, but I have so many albums and photos with so many comments written to them that I don't want to lose all that work. Any ideas?
As the other error indicates your file/folder permissions are somehow wrong.
I have to leave the more proper answers this to sbillard for later as he is the architect of the install script.
As to the permissions, 'albums' has permissions 777 (drwxrwxrwx) so should be writeable for the script to copy files from zp-core, so I can't understand why that doesn't work. As for 'Cannot modify header information', I have no idea there at all...
Regarding the second issue, check you file permissions. Apparently zenphoto is not allowed to open that file.
As to the "Class 'utf8' not found..." maybe there was some problem with the upload. The line just before it should load the library which defines that class. You can try re-uploading the files and see if that fixes it.
In short, it really seems your installation is pretty screwed up.
Probably it would be a good idea for you to start on the task of placing your image descriptions within the actual image file metadata. Album descriptions could be placed within an XMP file of the same name as the album. At least then if this ever happens again the data will be preserved.
Edit: hmm. I got it to 1.3.0 and it works and most stuff seems okay, but now I'm getting `empty $this->unique set is empty` again! Back round in a gigantic loop right to my original problem again :-) I'll drop back to 1.2.9 for the time being, and call it quits since it's coming up for 1am in my time zone... thanks anyway for all the help so far.
That way you can try a new install and database restore. Of course I would suggest doing that on a trial installation first!
Please change the line in functions-basic.php which defines DEBUG_ERROR.
`define('DEBUG_ERROR', !defined('RELEASE')); // set to true to supplies the calling sequence with zp_error messages`
to
`define('DEBUG_ERROR', true)); // set to true to supplies the calling sequence with zp_error messages`
This will tell us the call history leading up to the error. Maybe that will tell us what is wrong.
Testing an install of 1.3.1, it passes the tests in setup.php but when I got to upgrade I get a variety of errors along these lines: `Zenphoto encountered an error: MySQL Query ( UPDATE``zp_administrators` SET `name` = 'group', `rights` = '1968526677', `custom_data` = 'Users with full privileges', `valid` = '0' WHERE id=21; ) failed. MySQL returned the error Duplicate entry '0-administrators' for key 2.
From what I can tell (and looking at what happens in that table in phpMyAdmin), it's just creating duplicate entries for 'administrators' rather than updating the existing ones, and then having a problem with the duplicates. It's also doing this for the 'viewers' entry. I can refresh the database view after the attempted upgrade and see the new entries; I'm not sure why it's doing this. I have tried deleting the new entries, deleting the existing entries, and deleting both entries. No difference.
Interestingly, the old entry contains the correct information while the newly-created duplicate contains NULL for all fields.
EDIT: Since deleting one entry (eg, 'administrators') led to an error with the next ('viewers'), I then experimented with deleting them both. The next error was with 'Bozos', and so I deleted all entries except the superuser with my own username. Bingo! All of them were recreated without flaw and I now appear to have a working 1.3.1. There is only one problem, which ironically is the thing that I began this whole upgrade process for in the first place - moving albums into other albums ('sort album' in the root zenphoto folder) doesn't work. Saving them just gives me the 'Saved' message but returns the album structure back to what it was.
I suppose this is probably an issue of permissions with the server and zp not being allowed to restructure the physical folder arrangement, but I'm out of ideas with it. Everything else works though, which I suppose is a good thing.
As to the album move. You might give the nightly build a try since you are so close to it.
EDIT: actually, none of the Ajaxy-type backend stuff works, dragging and dropping images also.