(ERROR_COLLISION) : Too many thumbnails

laddil

Joined: 2005-11-06
Posts: 7
Posted: Sun, 2005-11-06 17:38

There was another post in another forum about this, but it was dismissed as an alpha version isn't in the upgrade path... The upgrade process from Gallery 2 RC2 to Gallery 2 Claimed to go smoothly, but one day I recieved support emails that error collisions are occuring, but the thumbnails are being successfully created and the images are being added properly.

The error text given is as follows:

Quote:
Error Detail -
Error (ERROR_COLLISION) : Too many thumbnails or preferreds (type: 1, count: 1)

* in modules/core/classes/GalleryDerivativeImage.class at line 140 (gallerystatus::error)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 486 (galleryderivativeimage::create)
* in modules/core/classes/GalleryCoreApi.class at line 1513 (galleryitemhelper_medium::addexistingitemtoalbum)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 230 (gallerycoreapi::addexistingitemtoalbum)
* in modules/core/classes/GalleryCoreApi.class at line 1499 (galleryitemhelper_medium::additemtoalbum)
* in modules/core/ItemAddFromBrowser.inc at line 89 (gallerycoreapi::additemtoalbum)
* in modules/core/ItemAdd.inc at line 94 (itemaddfrombrowser::handlerequest)
* in main.php at line 174 (itemaddcontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.0.1
PHP version 4.4.0-gentoo-r1 apache2handler
Webserver Apache
Database mysql 4.1.14-log
Toolkits ImageMagick, NetPBM, Gd
Operating system Linux richie 2.6.13-gentoo-r5 #1 SMP Sun Oct 30 12:50:08 MST 2005 x86_64
Browser Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a1) Gecko/20040520

I'm assuming there is a next-ID entry in the database somewhere that wasn't properly updated. Any ideas what to do to fix it?

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-06 17:49

please enable buffered debug mode

FAQ: How to set/use Gallery in debug mode?

and try to add another image.

also check your database, table sequenceId. there should only be a single row in this table.

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Mon, 2005-11-21 00:01

Same problem. Any help appreciated. Thanks in advnace. -Ivan

Error Detail -
Error (ERROR_COLLISION) : Too many thumbnails or preferreds (type: 1, count: 1)

* in modules/core/classes/GalleryDerivativeImage.class at line 140 (gallerystatus::error)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 486 (galleryderivativeimage::create)
* in modules/core/classes/GalleryCoreApi.class at line 1513 (galleryitemhelper_medium::addexistingitemtoalbum)
* in modules/core/classes/helpers/GalleryItemHelper_medium.class at line 230 (gallerycoreapi::addexistingitemtoalbum)
* in modules/core/classes/GalleryCoreApi.class at line 1499 (galleryitemhelper_medium::additemtoalbum)
* in modules/core/ItemAddFromBrowser.inc at line 89 (gallerycoreapi::additemtoalbum)
* in modules/core/ItemAdd.inc at line 94 (itemaddfrombrowser::handlerequest)
* in main.php at line 174 (itemaddcontroller::handlerequest)
* in main.php at line 87
* in main.php at line 80

System Information
Gallery version 2.0
PHP version 4.4.0 cgi
Webserver Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8 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 Gd
Operating system Linux menippe.multisite.site5.com 2.6.9-22.ELsmp #1 SMP Sat Oct 8 19:11:43 CDT 2005 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Debug Output
getParameter permissions.file for core plugin file_exists(/home/aperture/public_html/albums/cache/module/core/0/0/0.inc) file_exists(/home/aperture/public_html/albums/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/rewrite/classes/RewriteUrlGenerator.class) (mysql): SELECT g2_RewriteMap.g_match, g2_RewriteMap.g_pattern FROM g2_RewriteMap WHERE g2_RewriteMap.g_match != '' file_exists(/home/aperture/public_html/albums/sessions/d4fd7dde899dcee9ded04b646055b816) getParameter session.lifetime for core plugin getParameter session.inactivityTimeout for core plugin stat(/home/aperture/public_html/albums/sessions/d4fd7dde899dcee9ded04b646055b816) file_exists(/home/aperture/public_html/albums/sessions/d4fd7dde899dcee9ded04b646055b816) getParameter cookie.domain for core plugin getParameter cookie.path for core plugin getParameter galleryLocation for rewrite plugin file_exists(/home/aperture/public_html/albums/cache/module/rewrite/0/0/0.inc) getParameter default.language for core plugin Loading plugin core Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/core/module.inc) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: modules_core -> /home/aperture/public_html/modules/core/locale core plugin successfully instantiated file_exists(/home/aperture/public_html/albums/versions.dat) file(/home/aperture/public_html/albums/versions.dat, ) [1132531463] can't guarantee 5 -- extending! file_exists(/home/aperture/public_html/albums/cache/entity/0/0/6.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin file_exists(/home/aperture/public_html/albums/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the core plugin is ok file_exists(/home/aperture/public_html/modules/core/classes/../../../modules/core/ItemAdd.inc) file_exists(/home/aperture/public_html/albums/cache/entity/3/4/3417.inc) getParameter lock.system for core plugin fopen(/home/aperture/public_html/albums/locks/3/4/3417, wb+, 0) flock(Resource id #69, 5, ) file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/core/ItemAddFromBrowser.inc) file_exists(/home/aperture/public_html/albums/cache/module/_all/0/0/GalleryMimeTypeHelper_mimeData.inc) file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/core/classes/GalleryPhotoItem.class) file_exists(/tmp/phpIDBKhK) is_uploaded_file(/tmp/phpIDBKhK) (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_001.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_002.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_003.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_004.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_005.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_006.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_007.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_008.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_FileSystemEntity WHERE g2_ChildEntity.g_parentId = 3417 AND g2_FileSystemEntity.g_pathComponent = 'shells_009.jpg' AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id (mysql): update g2_SequenceId set id=LAST_INSERT_ID(id+1); file_exists(/home/aperture/public_html/albums/cache/entity/0/1/17.inc) file_exists(/home/aperture/public_html/albums/cache/entity/0/1/13.inc) file_exists(/home/aperture/public_html/albums/cache/entity/0/0/7.inc) copy(/tmp/phpIDBKhK, /home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) filesize(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) filesize(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) (mysql): SELECT g2_TkPropertyMimeTypeMap.g_toolkitId FROM g2_TkPropertyMap, g2_TkPropertyMimeTypeMap WHERE g2_TkPropertyMap.g_name = g2_TkPropertyMimeTypeMap.g_propertyName AND g2_TkPropertyMimeTypeMap.g_mimeType = 'image/jpeg' AND g2_TkPropertyMap.g_name = 'colorspace' (mysql): SELECT g2_TkPropertyMimeTypeMap.g_toolkitId FROM g2_TkPropertyMap, g2_TkPropertyMimeTypeMap WHERE g2_TkPropertyMap.g_name = g2_TkPropertyMimeTypeMap.g_propertyName AND g2_TkPropertyMimeTypeMap.g_mimeType = 'image/jpeg' AND g2_TkPropertyMap.g_name = 'dimensions' file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/gd/classes/GdToolkit.class) getimagesize(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) (mysql): SELECT g2_TkPropertyMimeTypeMap.g_toolkitId FROM g2_TkPropertyMap, g2_TkPropertyMimeTypeMap WHERE g2_TkPropertyMap.g_name = g2_TkPropertyMimeTypeMap.g_propertyName AND g2_TkPropertyMimeTypeMap.g_mimeType = 'image/jpeg' AND g2_TkPropertyMap.g_name = 'originationTimestamp' file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/exif/classes/ExifToolkit.class) file_exists(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) Array ( [VerboseOutput] => [Errors] => 0 [ValidJpeg] => 1 [ValidJFIFData] => 1 [JFIF] => Array ( [Size] => 16 [Identifier] => JFIF [ExtensionCode] => 01 [Data] => ,, ) [ValidEXIFData] => 0 ) file_exists(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) Array ( [VerboseOutput] => [Errors] => 0 [ValidJpeg] => 1 [ValidJFIFData] => 1 [JFIF] => Array ( [Size] => 16 [Identifier] => JFIF [ExtensionCode] => 01 [Data] => ,, ) [ValidEXIFData] => 0 ) file_exists(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) Array ( [VerboseOutput] => [Errors] => 0 [ValidJpeg] => 1 [ValidJFIFData] => 1 [JFIF] => Array ( [Size] => 16 [Identifier] => JFIF [ExtensionCode] => 01 [Data] => ,, ) [ValidEXIFData] => 0 ) file_exists(/home/aperture/public_html/albums/albums/Ivan/mtb/shells/shells_009.jpg) Array ( [VerboseOutput] => [Errors] => 0 [ValidJpeg] => 1 [ValidJFIFData] => 1 [JFIF] => Array ( [Size] => 16 [Identifier] => JFIF [ExtensionCode] => 01 [Data] => ,, ) [ValidEXIFData] => 0 ) (mysql): INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (3481,0) Loading plugin imageblock Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/imageblock/module.inc) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: modules_imageblock -> /home/aperture/public_html/modules/imageblock/locale imageblock plugin successfully instantiated Loading plugin quotas Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/quotas/module.inc) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: modules_quotas -> /home/aperture/public_html/modules/quotas/locale quotas plugin successfully instantiated Loading plugin rewrite Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/rewrite/module.inc) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: modules_rewrite -> /home/aperture/public_html/modules/rewrite/locale rewrite plugin successfully instantiated Loading plugin sizelimit Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/sizelimit/module.inc) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: modules_sizelimit -> /home/aperture/public_html/modules/sizelimit/locale sizelimit plugin successfully instantiated Loading plugin useralbum Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/useralbum/module.inc) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: modules_useralbum -> /home/aperture/public_html/modules/useralbum/locale useralbum plugin successfully instantiated Loading plugin core core plugin successfully instantiated (mysql): SELECT g2_ImageBlockDisabledMap.g_itemId FROM g2_ImageBlockDisabledMap WHERE g2_ImageBlockDisabledMap.g_itemId = 3417 (mysql): SELECT g2_ImageBlockDisabledMap.g_itemId FROM g2_ImageBlockDisabledMap WHERE g2_ImageBlockDisabledMap.g_itemId = 3481 (mysql): INSERT INTO g2_Entity (g_id, g_creationTimestamp, g_isLinkable, g_modificationTimestamp, g_serialNumber, g_entityType) VALUES (3481,1132531463,1,1132531463,1,'GalleryPhotoItem') (mysql): INSERT INTO g2_ChildEntity (g_parentId, g_id) VALUES (3417,3481) (mysql): INSERT INTO g2_FileSystemEntity (g_pathComponent, g_id) VALUES ('shells_009.jpg',3481) (mysql): INSERT INTO g2_Item (g_canContainChildren, g_ownerId, g_title, g_viewedSinceTimestamp, g_originationTimestamp, g_id) VALUES (0,6,'shells',1132531463,1132531463,3481) (mysql): INSERT INTO g2_DataItem (g_mimeType, g_size, g_id) VALUES ('image/jpeg',3308,3481) (mysql): INSERT INTO g2_PhotoItem (g_width, g_height, g_id) VALUES (100,150,3481) file_exists(/home/aperture/public_html/albums/cache/entity/3/4/3481.inc) getParameter id.accessListCompacterLock for core plugin fopen(/home/aperture/public_html/albums/locks/0/1/1, wb+, 0) flock(Resource id #136, 5, ) (mysql): SELECT g2_AccessSubscriberMap.g_itemId, g2_AccessSubscriberMap.g_accessListId FROM g2_AccessSubscriberMap WHERE g2_AccessSubscriberMap.g_itemId IN (3481, 3417) (mysql): UPDATE g2_AccessSubscriberMap SET g_accessListId=16 WHERE g_itemId=3481 fclose(Resource id #136) file_exists(/home/aperture/public_html/albums/locks/0/1/1) unlink(/home/aperture/public_html/albums/locks/0/1/1) (mysql): SELECT g2_ItemAttributesMap.g_parentSequence FROM g2_ItemAttributesMap WHERE g2_ItemAttributesMap.g_itemId = 3417 (mysql): INSERT INTO g2_ItemAttributesMap (g_itemId, g_viewCount, g_orderWeight, g_parentSequence) VALUES (3481,0,0,'7/13/17/3417/') (mysql): DELETE FROM g2_ImageBlockCacheMap (mysql): SELECT g2_ItemAttributesMap.g_parentSequence FROM g2_ItemAttributesMap WHERE g2_ItemAttributesMap.g_itemId = 3417 (mysql): DELETE FROM g2_DescendentCountsMap WHERE g_itemId IN (7,13,17,3417) (mysql): SELECT MAX(g2_ItemAttributesMap.g_orderWeight) FROM g2_ItemAttributesMap, g2_ChildEntity WHERE g2_ChildEntity.g_id = g2_ItemAttributesMap.g_itemId AND g2_ChildEntity.g_parentId = 3417 (mysql): UPDATE g2_ItemAttributesMap SET g_orderWeight=23000 WHERE g_itemId=3481 (mysql): SELECT g2_DerivativePrefsMap.g_order, g2_DerivativePrefsMap.g_derivativeType, g2_DerivativePrefsMap.g_derivativeOperations FROM g2_DerivativePrefsMap WHERE g2_DerivativePrefsMap.g_itemId = 3417 ORDER BY g2_DerivativePrefsMap.g_order ASC (mysql): SELECT g2_Derivative.g_id, g2_ChildEntity.g_parentId FROM g2_Derivative, g2_ChildEntity WHERE g2_Derivative.g_id = g2_ChildEntity.g_id AND g2_ChildEntity.g_parentId IN (3481) AND g2_Derivative.g_derivativeType IN (3) file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../modules/core/classes/GalleryDerivativeImage.class) (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 3481 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id) (mysql): update g2_SequenceId set id=LAST_INSERT_ID(id+1); (mysql): SELECT g2_TkOperatnMimeTypeMap.g_toolkitId, g2_TkOperatnMap.g_outputMimeType FROM g2_TkOperatnMap, g2_TkOperatnMimeTypeMap WHERE g2_TkOperatnMap.g_name = g2_TkOperatnMimeTypeMap.g_operationName AND g2_TkOperatnMimeTypeMap.g_mimeType = 'image/jpeg' AND g2_TkOperatnMap.g_name = 'thumbnail' ORDER BY g2_TkOperatnMimeTypeMap.g_priority ASC (mysql): INSERT INTO g2_AccessSubscriberMap (g_itemId, g_accessListId) VALUES (3482,0) (mysql): INSERT INTO g2_Entity (g_id, g_creationTimestamp, g_isLinkable, g_modificationTimestamp, g_serialNumber, g_entityType) VALUES (3482,1132531463,0,1132531463,1,'GalleryDerivativeImage') (mysql): INSERT INTO g2_ChildEntity (g_parentId, g_id) VALUES (3481,3482) (mysql): INSERT INTO g2_Derivative (g_derivativeSourceId, g_derivativeOperations, g_derivativeOrder, g_derivativeType, g_mimeType, g_isBroken, g_id) VALUES (3481,'thumbnail|150',0,1,'image/jpeg',0,3482) (mysql): INSERT INTO g2_DerivativeImage (g_width, g_height, g_id) VALUES (100,150,3482) file_exists(/home/aperture/public_html/albums/cache/entity/3/4/3482.inc) (mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 3481 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id) fclose(Resource id #69) file_exists(/home/aperture/public_html/albums/locks/3/4/3417) unlink(/home/aperture/public_html/albums/locks/3/4/3417) getParameter default.theme for core plugin Loading plugin matrix Class not defined, trying to include it. file_exists(/home/aperture/public_html/modules/core/classes/helpers/../../../../themes/matrix/theme.inc) matrix plugin successfully instantiated Check the version of the matrix plugin file_exists(/home/aperture/public_html/albums/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the matrix plugin is ok Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok file_exists(/home/aperture/public_html/modules/core/classes/../../../modules/core/ErrorPage.inc) getParameter id.adminGroup for core plugin (mysql): SELECT g2_UserGroupMap.g_userId FROM g2_UserGroupMap WHERE g2_UserGroupMap.g_userId = 6 AND g2_UserGroupMap.g_groupId = '3' LIMIT 1 realpath(/home/aperture/public_html/modules/core/classes/../../../) (mysql): SELECT g2_TkOperatnMimeTypeMap.g_mimeType, g2_TkOperatnMimeTypeMap.g_toolkitId FROM g2_TkOperatnMimeTypeMap WHERE g2_TkOperatnMimeTypeMap.g_operationName = 'thumbnail' ORDER BY g2_TkOperatnMimeTypeMap.g_mimeType ASC, g2_TkOperatnMimeTypeMap.g_priority ASC file_exists(/home/aperture/public_html/modules/core/classes/../../../lib/javascript/local/BlockToggle.js) file_exists(/home/aperture/public_html/albums/smarty/templates_c/%%985380693) is_dir(/home/aperture/public_html/albums/smarty/templates_c/%%985380693) file_exists(/home/aperture/public_html/albums/smarty/templates_c/%%985380693) is_writeable(/home/aperture/public_html/albums/smarty/templates_c/%%985380693) file_exists(/home/aperture/public_html/albums/smarty/templates_c/%%985380693/v_8) realpath(/home/aperture/public_html/modules/core/classes/../../..) Binding text domain: themes_matrix -> /home/aperture/public_html/themes/matrix/locale file_exists(/home/aperture/public_html/modules/core/classes/../../../themes/matrix/local/theme.css)

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Mon, 2005-11-21 19:40

Any solutions? I posted on my hosting's support forum and got: "uninstall imagemagick and netpbm from the modules then install and configure them again followed by phsyically deleting the cache dir in g2data and rebuilding all thumbs/deritives" Any help much appreciated. -Ivan

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Mon, 2005-11-21 19:58

i don't know how you managed to get this problem, but right now, there is already an entry in the db for a thumbnail for item 3481 .

1. try clearing / deleting the db cache:
site admin -> maintenance -> delete db cache

if that doesn't help, you'll have to manually edit your database.

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Tue, 2005-11-22 05:58

Valiant,

Thanks for getting back. This happened after I moved servers. I tried deleting the db cache to no avail. What will I need to do to the database?

Thanks again for your time,

Ivan

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2005-11-22 11:28

first
select child.g_id deriv.g_derivativeType from g2_ChildEntity child, g2_Derivative deriv where child.g_parentId = 3481 and child.g_id = deriv.g_id;

or something like that to see what there currently is.

 
laddil

Joined: 2005-11-06
Posts: 7
Posted: Tue, 2005-11-22 17:23

With debugging information turned on, have been unable to determine what is wrong =/

Anyways, here's the full text, as the faq suggests not posting that much to the forums:

http://meow.dyndns.org/gallery/Error.htm

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Wed, 2005-11-23 01:12
valiant wrote:
first
select child.g_id deriv.g_derivativeType from g2_ChildEntity child, g2_Derivative deriv where child.g_parentId = 3481 and child.g_id = deriv.g_id;

or something like that to see what there currently is.

What do I do after I find the what the current id is? Thanks, Ivan

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-23 04:41

mudanoman
please post the result of the query here.

laddil
that's weird. from your output:
SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 1329 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

can you run this query manually?

and can you run:

SELECT g2_ChildEntity.g_id FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 1329 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

and post the results?
did you also delete the db cache? pretty much everything i wrote in this thread applies to both of your cases.

 
laddil

Joined: 2005-11-06
Posts: 7
Posted: Wed, 2005-11-23 05:33

I did try deleting the cache when I read that. I didn't make a mention of it because I figured it might not be the same thing. Anyways, I ran the querries and here's basically what I found.

Quote:
SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 1329 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

result: 0. Possibly because the image in question was deleted after uploading...

SELECT g2_ChildEntity.g_id FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 1329 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

Result: Empty set.

Hmm... Not useful But my first guess is because I'm debugging, and deleted the original images I uploaded for that debug output, the numbers would be blank. So, I uploaded a new image to get a fresh debug output and use some new numbers:

Quote:
New querries:
(mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 1332 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

Result:
[COUNT(g2_ChildEntity.g_id)]
1

SELECT g2_ChildEntity.g_id FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 1332 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

Result: [g_id]
1333

Hope that helps!

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Wed, 2005-11-23 07:16
Quote:
New querries:
(mysql): SELECT COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 3528 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

Result:
[COUNT(g2_ChildEntity.g_id)]
1

SELECT g2_ChildEntity.g_id FROM g2_ChildEntity, g2_Derivative WHERE (g2_ChildEntity.g_parentId = 3528 AND g2_Derivative.g_derivativeType = 1) AND (g2_ChildEntity.g_id = g2_Derivative.g_id)

Result: [g_id]
3529

deleted database cache

Valiant,

I look forward to hearing from you.

Thanks again,

Ivan

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-23 12:39

mudanoman

ok, delete the row with g_id = 3529 in db tables:
- g2_DerivativeImage
- g2_Derivate
- g2_ChildEntity
- g2_Entity

afterwards, delete the db cache in /lib/support/ -> cache
also delete the derivative cache (unless you want to manually delete this entry (1-3 files) in g2data/cache/derivative/3/5/3529*

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-23 12:44

laddil
so when uploading this item 1332 with thumbnail 1333, you got the same error again?
you get this error for each item you upload??

please check:
FAQ: How can I make sure that my installation files are all intact?

can you reproduce it when only gd is active? and if only netpbm is active?

if you install a second g2 in parallel on the server, can you reproduce the same issue with the fresh g2?

 
laddil

Joined: 2005-11-06
Posts: 7
Posted: Wed, 2005-11-23 13:20

The error occurs on every new upload, 100% reproducable. Only one file may be uploaded at a time, as it aborts on error.
The thumbnail and image are created successfully and are viewable.

By saying only, I assume you nean the graphics modules and not all modules in general.
On a fresh install, the error does not occur. I'm assuming it's something in the database that I have to modify. I will back up the database and try following the modifications given to Mud next.

Thank you.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Wed, 2005-11-23 13:39
Quote:
Only one file may be uploaded at a time, as it aborts on error.

another error?

if you deactivate the create thumbnail option when adding items (bottom of the add items -> from browser page), you shouldn't get this error.

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Sun, 2005-11-27 01:53

Valiant,

I appreciate the response. My gallery is not letting me login for some odd reason, so I have put fixing the error on hold. I will report back with my findings.

Thanks,

Ivan

 
laddil

Joined: 2005-11-06
Posts: 7
Posted: Sun, 2005-11-27 03:52

Deactivating the create thumbnail option still causes this error.

Using the java-upload causes the same error... 100% repeatable.

Using the non-java or java upload the results are the same, the first image successfully uploads the rest are aborted/discarded. :(

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-27 09:30

@login:
delete your cookie cache in your browser

@thumbnail error persists:

no idea what's going on there.

gotta repeast a question i already asked:

Quote:
also check your database, table sequenceId. there should only be a single row in this table.

 
laddil

Joined: 2005-11-06
Posts: 7
Posted: Sun, 2005-11-27 13:51

Hmmm... There's two again. When I checked before, there was two and I deleted one. Now there is two again.

Strange... They both have the same value though.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2005-11-27 14:18

there's definitely something wrong.
delete both entries and insert a new one which is slightly greater than the maximal g_id from g2_Entity and slighty higher than the max value from g2_AccessSubscriberMap

afterwards, delete the db / entity cache in
yourgalleryUrl/lib/support/ -> cache

 
mudanoman
mudanoman's picture

Joined: 2005-09-13
Posts: 13
Posted: Tue, 2005-11-29 05:02

Valiant I tried deleting the rows as well as cache, but the same error message still seems to pop up. Any thing else I can try? Thanks, Ivan

 
laddil

Joined: 2005-11-06
Posts: 7
Posted: Tue, 2005-11-29 15:48

Same here. The g_Id was already 20-30 numbers higher then the g2_AccessSubscriberMap ID, but I bumped it up anyhow.

 
ralf

Joined: 2006-03-17
Posts: 2
Posted: Fri, 2006-03-17 06:57

I am having a similar problem, and after trying everything mentioned I got still no success.
The problem occured after I had some problems with my g2_AccessSubscriberMap and g2_AccessMap.
I get this error when uploading items to a new album, uploading to existing albums works.

Hope someone knows how to fix this, thanks in advance.

I attached the debugs output.

 
ralf

Joined: 2006-03-17
Posts: 2
Posted: Tue, 2006-03-21 08:00

I discovered the reason for the problem. Somehow, the main gallery settings contained two active entries for resized images of the same size. After deleting the duplicate target size, everything works fine again. One could consider this as a bug, but I can't reproduce it.

Thanks, best regards Ralf

 
rick7

Joined: 2005-03-02
Posts: 168
Posted: Fri, 2006-04-21 21:33
ralf wrote:
I discovered the reason for the problem. Somehow, the main gallery settings contained two active entries for resized images of the same size. After deleting the duplicate target size, everything works fine again. One could consider this as a bug, but I can't reproduce it.

Thanks, best regards Ralf

Hi, I'm having this "Too many thumbnails or preferreds" problem also. Can you explain your solution a bit more? I'm not sure what you mean by "main gallery settings contained two active entries for resized images of the same size." Thanks.