Member
Member
vincent3569   2011-12-02, 13:36
#1

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 ?

Administrator
Administrator
acrylian   2011-12-02, 14:16
#2

Is the database backup really from after you tagged 30 pictures? Otherwise this would make sense...:-)

Member
Member
vincent3569   2011-12-03, 11:27
#3

hi

of couse, my backup is realy done with my 30 pictures :-)

I explain what I do

  • I have 2 web site : a production one and a pre-production one (who is a copy of the 1st one), and one course, I am sure that all pictures are on the two website.
  • I have 30 pictures tagged with "portfolio" on the 1st one
  • I do a backup and I copy the zdb file on the 2nd one.
    -> when I do the restore on the 2nd one, I have only 20 pictures tagged with "portfolio"

what the problem could be ?

Administrator
Administrator
acrylian   2011-12-03, 11:44
#4

Just to ask, you did use our backup tool or something like phpmyadmin?

The only reason I could imagine this not matching would be that the albums (on filesystem) changed before re-importing the backup.

Member
Member
vincent3569   2011-12-03, 13:30
#5

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)

Administrator
Administrator
acrylian   2011-12-03, 13:40
#6

Ok, sorry then I have no idea.

Member
Member
vincent3569   2011-12-03, 17:42
#7

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 ?

Member
Member
sbillard   2011-12-03, 18:39
#8

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.

Member
Member
vincent3569   2012-01-12, 15:54
#9

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 :

  • I do a backup my database by using mySQL (the back up is correct and all the tags are presents in the export)
  • I import my database via mySQL
    • I immediatly check via SQL query that complete information can be found in the new database

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.

Member
Member
sbillard   2012-01-12, 19:44
#10

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.

Member
Member
vincent3569   2012-01-12, 23:55
#11

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) ?

Member
Member
sbillard   2012-01-13, 02:31
#12

If the site is different from the one where the database was made then the timestamps of the images are unlikely to match the timestamp in the database. Thus the images "new".

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.