Obsolete data

tvset

Joined: 2005-09-20
Posts: 8
Posted: Tue, 2005-09-20 11:04

I have just installed Gallery2 and imported all my albums into. One of the albums has a problem. I can see all subalbums and pictures in it, but I can't 'Edit Album'. Every time I try to do so, I get this error:

Error (ERROR_OBSOLETE_DATA) : UPDATE g2_Entity SET g_modificationTimestamp=?,g_serialNumber=? WHERE g_id=? AND g_serialNumber=? (1127214174|6|23723|5)

    * in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 588 (MySqlDatabaseStorage::error)
    * in modules/core/classes/GalleryStorage.class at line 142 (MySqlDatabaseStorage::saveEntity)
    * in modules/core/classes/GalleryEntity.class at line 294 (GalleryStorage::saveEntity)
    * in modules/core/classes/GalleryItem.class at line 409 (GalleryAlbumItem::save)
    * in modules/core/ItemEditItem.inc at line 237 (GalleryAlbumItem::save)
    * in modules/core/ItemEdit.inc at line 95 (ItemEditItem::handleRequest)
    * in main.php at line 174 (ItemEditController::handleRequest)
    * in main.php at line 87
    * in main.php at line

System information is as follows:

Gallery version 	2.0
PHP version 	5.0.4 apache2handler
Webserver 	Embperl/2.0rc4 Apache/2.0.54 (Fedora) PHP/5.0.4 mod_perl/2.0.1 Perl/v5.8.6
Database 	mysqlt 4.1.12
Toolkits 	SquareThumb, ImageMagick, Gd
Operating system 	Linux gucho.mamchenkov.net 2.6.12-1.1398_FC4 #1 Fri Jul 15 00:52:32 EDT 2005 i686
Browser 	Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7.10) Gecko/20050909 Fedora/1.0.3-1.3.1 StumbleUpon/1.999 Firefox/1.0.6

Any ideas on how can I fix this album?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-09-20 13:31

try
site admin -> maintenance -> delete db cache

 
tvset

Joined: 2005-09-20
Posts: 8
Posted: Tue, 2005-09-20 16:16

Thanks, but that didn't help. I somehow managed to resolve the problem. Somehow G2 put the actual files of the album in a different place and created two album records in the database. I stumbled upon these by accident. When I deleted one of the album records and moved the files to a proper place everything came to its senses. It has black magic written all over it. Anyway, thanks for your response.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-09-20 16:20

could it be that there was a timeout during the g1 import or even an error?