Rename Broken? (2.1 RC1)

darren1234
darren1234's picture

Joined: 2005-06-04
Posts: 13
Posted: Mon, 2006-02-13 20:31

Has anyone seen this problem yet?

Try renaming an existing album. I have an album generically named "album_001" that I attempted to rename to something meaningful. Unfortunately I got the following...


Error (ERROR_OBSOLETE_DATA) : UPDATE g2_Entity SET g_modificationTimestamp=?,g_serialNumber=? WHERE g_id=? AND g_serialNumber=? (1139862113|9|2595|8)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 374 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 295 (gallerystorageextras::saveentity)
in modules/core/classes/GalleryEntity.class at line 317 (mysqlstorage::saveentity)
in modules/core/classes/GalleryItem.class at line 408 (galleryfilesystementity::save)
in modules/core/ItemEditItem.inc at line 237 (galleryalbumitem::save)
in modules/core/ItemEdit.inc at line 92 (itemedititem::handlerequest)
in main.php at line 198 (itemeditcontroller::handlerequest)
in main.php at line 87
in main.php at line 80

------------------------------------------------
Gallery version 2.1-rc-1a
PHP version 4.4.1-pl3-gentoo apache2handler
Webserver Apache
Database mysql 4.0.22
Toolkits NetPBM, Gd
Operating system Linux shel01 2.6.9-gentoo-r9 #1 SMP Mon Dec 13 10:41:39 PST 2004 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1)

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32356
Posted: Mon, 2006-02-13 20:58

confirmed.

could you please file a bug on http://sf.net/projects/gallery/ ?

thanks!

Login or register to post comments
scaturan

Joined: 2004-09-12
Posts: 1001
Posted: Mon, 2006-02-13 21:13

i've seen this problem and anyone running 2.1 can replicate this.

create an empty album. name it "test"

under "This is the album title." out something like 月刊吹石一恵
scroll down and "Create"
now click on the "General" tab, and try to change the "name" to something else.
you'll encounter the error.

under "This is the album title." try to remove the 月刊吹石一恵 - you'll encounter the error.

try to move the album, you'll encounter the error. the only way to fix it is to delete the album.

the album name "test" remains the same looking at g2data directory.

Login or register to post comments
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8598
Posted: Mon, 2006-02-13 21:42

this appears to be an issue with NULL vs empty string. we'll work it out before RC-2.. thanks for the report!

Login or register to post comments
bug_man

Joined: 2006-02-18
Posts: 9
Posted: Sun, 2006-02-19 16:00

i just downloaded latest CVS and got the error when trying to RENAME files

Edit Conflict!
Your change cannot be completed because somebody else has made a conflicting change to the same item. Use the back button in your browser to go back to the page you were on, then reload that page and try your change again.

Go back and try again
Alternatively, you can return to the main Gallery page and resume browsing.

Back to the Gallery

Error Detail -
Error (ERROR_OBSOLETE_DATA) : UPDATE g2_Item SET g_description=?,g_keywords=?,g_summary=? WHERE g_id=? (|||553)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 374 (gallerycoreapi::error)
in modules/core/classes/GalleryStorage.class at line 295 (gallerystorageextras::saveentity)
in modules/core/classes/GalleryEntity.class at line 317 (mysqlstorage::saveentity)
in modules/core/classes/GalleryItem.class at line 408 (galleryfilesystementity::save)
in modules/core/ItemEditItem.inc at line 237 (galleryphotoitem::save)
in modules/core/ItemEdit.inc at line 92 (itemedititem::handlerequest)
in main.php at line 198 (itemeditcontroller::handlerequest)
in main.php at line 87
in main.php at line 80
System Information
Gallery version 2.1-rc-1a
PHP version 4.3.11 cgi
Webserver Apache/1.3.34 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_ssl/2.8.25 OpenSSL/0.9.7a PHP-CGI/0.1b
Database mysql 4.0.25-standard
Toolkits SquareThumb, ImageMagick, Gd
Operating system Linux ez15.ez-web-hosting.com 2.4.31 #2 SMP Fri Nov 11 13:56:42 EST 2005 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32356
Posted: Sun, 2006-02-19 16:02

please post very exact instructions / steps to reproduce this problem.
also, please try the latest nightly snapshot and make sure the new files are actually used / overwrite the old files. this issue should be fixed since 2 days or so.

Login or register to post comments
darren1234
darren1234's picture

Joined: 2005-06-04
Posts: 13
Posted: Sun, 2006-02-19 16:19

This may be related to something I reported earlier. I think it has been fixed and will be part of the next release.

Login or register to post comments
bug_man

Joined: 2006-02-18
Posts: 9
Posted: Mon, 2006-02-20 01:41

so it won't be fixed until the next release? i shouldn't have downloaded rc1 huh, figures.

valiant, i don't know how to reproduce the steps to cause the error. brand new install. after i enabled all my modules, like permalinks and url rewrite, i begin uploading images with gallery remote.

after a hundred or so images, i began to rename the files, the first file gave me this error. i downloaded the CVS 2/18 and still have the error.

Login or register to post comments
darren1234
darren1234's picture

Joined: 2005-06-04
Posts: 13
Posted: Mon, 2006-02-20 03:11

I just posted this as a bug "officially" so its recorded... just incase I misunderstood that others had found/fixed it.

http://sourceforge.net/tracker/index.php?func=detail&aid=1434959&group_id=7130&atid=107130

Other than the rename, I have not found any other essential issues with RC1.

bug_man - I'm not a contributing developer, so I don't know the schedule nor the specific changes/fixes. I only know what I read in these forums.

Login or register to post comments
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8598
Posted: Mon, 2006-02-20 03:28

RC-2 will be out towards the end of this week.
if anyone finds steps to reproduce this on current CVS/nightly snapshot then please post the exact steps and your system information (site admin / maintenence / system info). thanks.

Login or register to post comments
rideforever

Joined: 2006-02-17
Posts: 32
Posted: Thu, 2006-08-17 21:35

This is a repeat of a thread I began on this link http://gallery.menalto.com/node/53208

Hi,

I've logged in to Gallery 2.1, selected item edit for an individual photo, attempted to change the item name and I was hit by the error attached in the first file. Basically, its an error conflict stating that there's a conflicting change made to the same item.

I've cleared the databases through lib/support and through debugging mode in config.php, I've attached a 'debuffered' report of the problem via the two links below. There's a lot of information there so I split the smarty popup and the complete error into separate files. (If the smarty wasn't needed, apologies in advance)

http://www.r4e.org/gallery_2.1_error_report.htm
http://www.r4e.org/Smarty_error_results.htm

There are a fair amount of posts on this, but no resolved answer short of refreshing the database which doesn't affect the problem. If there is a newer upgrade I've not noticed, do let me know and I'll make the changes straight away. Could you confirm please what RC-2 is and if it has been released? This is an important function of gallery as it affects the external linking of images amongst other things. I have available time and I'd very much like to help work this out.

All the Best,
Stephen

Login or register to post comments
valiant

Joined: 2003-01-04
Posts: 32356
Posted: Fri, 2006-08-18 02:43

RC 2 has been released around February 2006. RC stands for Release Candidate.
This was the RC 2 of Gallery 2.1.
Gallery 2.1 is newer than all Gallery 2.1 RCs and the issue described in this thread should not exist in G2.1 or later versions.

Login or register to post comments
rideforever

Joined: 2006-02-17
Posts: 32
Posted: Fri, 2006-08-18 20:04

Great. The latest version of Gallery (2.1.2) seems to have solved the problem. I previously had Gallery version 2.1-rc-1a. Thanks for your quick reply.

The only issue I have now seems to when renaming one album I received the following error:

Warning: rename(/home/r4eorg/g2images/albums/Clouds/,/home/r4eorg/g2images/albums/dec05_clouds): No such file or directory in /home/r4eorg/public_html/gallery/modules/core/classes/GalleryPlatform.class on line 487

Error (ERROR_BAD_PATH)
in modules/core/classes/GalleryAlbumItem.class at line 352 (gallerycoreapi::error)
in modules/core/ItemEditItem.inc at line 215 (galleryalbumitem::rename)
in modules/core/ItemEdit.inc at line 92 (itemedititem::handlerequest)
in main.php at line 199 (itemeditcontroller::handlerequest)
in main.php at line 87
in main.php at line 80
System Information
Gallery version 2.1.2
PHP version 4.4.2 cgi
Webserver Apache/1.3.36 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/5.0.2.2635.SR1.2 mod_ssl/2.8.27 OpenSSL/0.9.7a PHP-CGI/0.1b
Database mysql 4.1.21-standard
Toolkits SquareThumb, ImageMagick, Gd
Operating system Linux nix.hostingmadeeasy.com 2.6.9-34.0.1.ELsmp #1 SMP Wed May 24 08:14:29 CDT 2006 i686
Browser Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Alexa Toolbar)

This doesn't apply to any other album, where the renaming works fine. Any ideas?

Login or register to post comments
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8598
Posted: Fri, 2006-08-18 20:52

sounds like the directory for that album may be lost or have incorrect permissions. use the support forums if you need more assistance.

Login or register to post comments
ichthyous

Joined: 2006-06-16
Posts: 277
Posted: Thu, 2007-02-15 22:17

I am seeing this problem consistently too...it only seems to happen when I press return from within a field...i.e. if i change the thumb size field and hit return. if i use the save button it doesn't happen. Is there any other way to correct this than deleting the photo and starting over?

New York City landmarks pictures
New York architecture pictures
Central Park pictures
Wall Street pictures
pictures of New York's Times Square
Washington DC pictures

Login or register to post comments
rideforever

Joined: 2006-02-17
Posts: 32
Posted: Wed, 2006-08-23 17:25

Thanks mindless, I'll look into it.

Login or register to post comments