Hello, and thank you in advance if anyone can help me. I moved my website to another host, and I see that the images in the newest album have lost all their titles, descriptions and comments. Titles and descriptions I can redo easily but I'd like to get the comments back. All the comments are still visible in the admin comments section however they link to a "Missing Object" instead of an image. How can I link them back to the images? There's probably not more than 25ish of those in total, so I would do them manually one by one if I only knew how.
Any help greatly appreciated.
Comments
If you still have the old install you can make a backup of the database and re-import it in the new install.
See also the "Moving Installations" section in http://www.zenphoto.org/news/installation-and-upgrading
Sorry if I'm not making myself clear, I'm not much of a programmer
Thanks for you answer though.
Edit Delete 953 19 IMG_3213s.jpg Drawing In the Aquarium
Edit Delete 1126 23 IMG_3213s.jpg IMG_3213s NULL
the gallery is showing the empty image http://eigene.org/album/2012-misc/IMG_3213s.jpg.php , what's the correct way to fix it? delete the new line in the database? I'm afraid to experiment, I don't want to wreck it!
Did you use the backup/restore method of moving the database? If so, the root of the problem probably was in the old db.
The comments have an "owner" column. It should point to the image for which the comment was made. Does it point to the correct one of those image entries?
Was this newest album part of the old installation or was it introduced on the new one?
The newest album was created still under the old host, so I'm not sure why it was the only one that got messed up. There have been new comments made after the move though, which do show up.
Let me try to find an image with new comments which also had old comments... Let's say this one: http://eigene.org/album/2012-misc/IMG_3183s.jpg.php
so the images uh.. is it called table? (don't laugh! I'm but a housewife..) in the database has this:
Edit Delete 954 19 IMG_3183s.jpg Testing ---> original entry, not showing up
Edit Delete 1124 23 IMG_3183s.jpg IMG_3183s --> new line, shows up, but it doesn't have titles nor anything
the comments table (?):
ID OwnerID
Edit Delete 783 954 Daiva 2012-04-15 16:42:55 Elija, you are so beautiful!!
----> old comment, not showing up
Edit Delete 835 1124 kamile 2012-07-24 16:59:35 I like this picture
----> new comment, DOES show up
So I sort of see what the problem is, but how do I safely fix it? Should I edit and change the ownerID on the old comment? But what about the double entry in the images table? Delete the new one? or the old one?
Thank you VERY much for helping me.
But generically you would remove the images which do not "point" the the proper album with their owner field. And the comments would need their ownerid changed to the id of the image to which they really belong.
When you say you "imported the old backup file" did you use Zenphoto to do this or did you use your database software?
So now I will change the owner ID for the new comment to 954 and delete the whole line of image data with ID 1124 so only the original line with 954 is left? Deleting the line won't delete the image or.. crash the whole thing? Sounds easy. Although I'll wait for confirmation if that's really what I need to do
I imported the database file through phpMyAdmin.
Thank you again!!
You find that tool on the admin overview page. Of course only on current Zenphoto versions (I don't remember when it was introduced, I think around 1.3 - and you did not say which you use).
You can look at the albums table. If there still is a redord with the id 954, then that is the original album. If not, then for some reason Zenphoto thought the album was "new".
Thank you very very much for helping me!