Hi
on 1.4.1.5, I have added a tag on 30 pictures (the tag is "portfolio").
with that, I have created a dynamic album to show my portfolio.
something goes wrong with that :
If I do a backup/restore of the database, I have only 20 pictures with this tag.
is this a known issue ?
hi
of couse, my backup is realy done with my 30 pictures :-)
I explain what I do
what the problem could be ?
I have tried the backup tool and a dump of the base using phpmyadmin.
the result is still the same
As said before, I am sure of my albums (I have done a copy/paste of /albums from the 1st site to the 2nd site)
this sql statment
SELECT zp_images.id, zp_images.filename, zp_images.title, zp_albums.id, zp_albums.title, zp_tags.name FROM zp_images, zp_albums, zp_obj_to_tag, zp_tags WHERE (zp_images.albumid=zp_albums.id)and(zp_images.id=zp_obj_to_tag.objectid)and(zp_obj_to_tag.tagid=zp_tags.id)and(zp_tags.name='Portfolio')
give 30 pictures, on my web site
and gives 20 pictures, on my backup site
how verify if the db of my prod site is corrupted ?
There may be some orphaned database entries. There is a problem in the 1.4.1 release that garbage collecting does not properly clear out orphaned tag entries.
Given your above SQL, I would presume that this is the issue. Clearly the two databases do not have the same content.
I do some tests with 1.4.2 :
I still have some tags wich are loosed during the migration.
These tags have been manualy added on pictures (they are not in exifs).
I explain my tests :
after the setup, I still have complete information in the new database
when I'm navigate on images (on the visitors or the admin), the manualy added tags disappear.
=> after a fresh install with import of a database, is there a resync of metadata (maybe one representative pictures of albums) ?
In this case, this would explain the loss of tags that are not in the EXIF ??images.
There is no explicit metadata refresh on upgrade. But if anything were out of sync with the database the images might appear to be "new".
So I did perform an upgrade from 1.4.1.6 to 1.4.2 RC3 and did not loose my manually applied tags. Must be something in your upgrade process.
I don't make an upgrate but I do a mirror site to backup my prod site.
when I do that with the process describe above (but it'is the same by using the database backup function of zenphoto), I lose the tags that were only in the database but not included in the EXIF ??of the photo.
Quote:But if anything were out of sync with the database the images might appear to be "new".
wich data could be out of synch (I do copy/paste of all pictures between two sites) ?