addItemToAlbum works, but then get ERROR_MISSING_OBJECT on Gallery

kreno

Joined: 2007-11-13
Posts: 6
Posted: Tue, 2007-11-13 20:13

I'm writing my own integration to make it simple for my users to upload images to the gallery from my WordPress web site. I've gotten it to seemingly work, but when I try to view the image on the Gallery, I get the following error. (Oddly enough, I can view the image from my wordpress site fine, using the wp-gallery-remote plugin). Any ideas would be helpful.

TIA, Kerri

Quote:
Error

Item not found.

Back to the Gallery
Error Detail -
Error (ERROR_MISSING_OBJECT) : Missing object for 0

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2075 (GalleryCoreApi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 98 (GalleryStorageExtras::_identifyEntities)
* in modules/core/classes/GalleryStorage.class at line 298 (GalleryStorageExtras::loadEntities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::loadEntities)
* in modules/core/classes/GalleryCoreApi.class at line 2259 (GalleryEntityHelper_simple::loadEntitiesById)
* in modules/core/classes/GalleryTheme.class at line 1285 (GalleryCoreApi::loadEntitiesById)
* in themes/matrix/theme.inc at line 65 (GalleryTheme::loadCommonTemplateData)
* in modules/core/classes/GalleryTheme.class at line 926 (MatrixTheme::showAlbumPage)
* in modules/core/classes/GalleryView.class at line 308 (GalleryTheme::loadTemplate)
* in main.php at line 441 (GalleryView::doLoadTemplate)
* in main.php at line 94
* in main.php at line 83

System Information
Gallery version 2.2.3
PHP version 5.1.6 cgi-fcgi
Webserver Apache/1.3.39 (Unix) mod_fastcgi/2.4.2 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.30 OpenSSL/0.9.7a PHP-CGI/0.1b
Database mysqlt 5.0.37-standard-log
Toolkits ImageMagick, Thumbnail, NetPBM, Gd
Operating system Linux box352.bluehost.com 2.6.22-9_1.BHsmp #1 SMP Fri Sep 28 23:36:16 MDT 2007 x86_64
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Debug Output
file_exists(/home/fraasefa/public_html/gallery/g2data/cache/module/_all/0/0/GalleryFactoryHelper_loadRegistry.inc) file_exists(/home/fraasefa/public_html/gallery/modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class) getParameter shortUrls for rewrite plugin file_exists(/home/fraasefa/public_html/gallery/g2data/cache/module/rewrite/0/0/0.inc) getParameter session.lifetime for core plugin file_exists(/home/fraasefa/public_html/gallery/g2data/cache/module/core/0/0/0.inc) getParameter session.inactivityTimeout for core plugin (mysqlt): SET NAMES "utf8" file_exists(/home/fraasefa/public_html/gallery/g2data/cache/module/_all/0/0/GalleryStorage_describeMap.inc) (mysqlt): SELECT g_userId, g_remoteIdentifier, g_creationTimestamp, g_modificationTimestamp, g_data FROM g2_SessionMap WHERE g_id='467e0f1f27cc1e629e14d0335b3b8adc' controller , view Loading plugin core Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/core/module.inc) core plugin successfully instantiated file_exists(/home/fraasefa/public_html/gallery/g2data/versions.dat) file(/home/fraasefa/public_html/gallery/g2data/versions.dat, ) getParameter id.rootAlbum for core plugin (mysqlt): SELECT g2_FileSystemEntity.g_id FROM g2_FileSystemEntity, g2_ChildEntity WHERE g2_ChildEntity.g_parentId = 7 AND g2_ChildEntity.g_id = g2_FileSystemEntity.g_id AND g2_FileSystemEntity.g_pathComponent = 'kreno' [1194981179] can't guarantee 5 -- extending! file_exists(/home/fraasefa/public_html/gallery/g2data/cache/entity/0/0/6.inc) Loading plugin core core plugin successfully instantiated Check the version of the core plugin file_exists(/home/fraasefa/public_html/gallery/g2data/cache/module/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the core plugin is ok file_exists(/home/fraasefa/public_html/gallery/modules/core/ShowItem.inc) getParameter acceleration for core plugin getParameter id.anonymousUser for core plugin getParameter id.anonymousUser for core plugin getParameter id.adminGroup for core plugin (mysqlt): SELECT g_userId FROM g2_UserGroupMap WHERE g_userId=6 AND g_groupId=3 LIMIT 1 file_exists(/home/fraasefa/public_html/gallery/g2data/cache/entity/1/7/173.inc) getParameter default.theme for core plugin Loading plugin matrix Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/themes/matrix/theme.inc) matrix plugin successfully instantiated Check the version of the matrix plugin file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/_all/0/0/GalleryPluginHelper_fetchPluginStatus.inc) The version of the matrix plugin is ok file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/0/0/0.inc) file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7/173.inc) (mysqlt): SELECT g2_PluginParameterMap.g_itemId, g2_PluginParameterMap.g_parameterName, g2_PluginParameterMap.g_parameterValue FROM g2_PluginParameterMap WHERE g2_PluginParameterMap.g_pluginType = 'theme' AND g2_PluginParameterMap.g_pluginId = 'matrix' AND g2_PluginParameterMap.g_itemId = 173 file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7) getParameter permissions.directory for core plugin file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7) file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1) is_dir(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1) mkdir(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7, 755) file_exists(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7) is_dir(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7) getParameter permissions.file for core plugin getParameter permissions.directory for core plugin rename(/home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7/173.incHlzmSH, /home/fraasefa/public_html/gallery/g2data/cache/theme/matrix/1/7/173.inc) (mysqlt): SELECT g2_Group.g_id, g2_Group.g_groupName FROM g2_UserGroupMap, g2_Group WHERE g2_Group.g_id = g2_UserGroupMap.g_groupId AND g2_UserGroupMap.g_userId = 6 ORDER BY g2_Group.g_groupName LIMIT 9223372036854775807 (mysqlt): SELECT g_module, g_permission, g_description, g_bits, g_flags FROM g2_PermissionSetMap (mysqlt): SELECT DISTINCT g2_AccessMap.g_accessListId FROM g2_AccessMap WHERE g2_AccessMap.g_userOrGroupId IN (6,4,2,3) AND g2_AccessMap.g_permission & 1 = 1 (mysqlt): SELECT g_itemId FROM g2_AccessSubscriberMap WHERE g_itemId=173 AND g_accessListId IN (8,9,10,11,13,14,16,17,19,47,61,64,84,85,86,89,90,91,98,99,100,107,108,109,112,113,114,117,118,119,122,123,124,127,128,129,132,133,134,137,138,139,147,148,156,149,157,158,165,166,174,167,175,176) LIMIT 1 (mysqlt): SET AUTOCOMMIT=0 (mysqlt): BEGIN (mysqlt): UPDATE g2_ItemAttributesMap SET g_viewCount = g2_ItemAttributesMap.g_viewCount + 1 WHERE g_itemId=173 getParameter modrewrite.galleryLocation for rewrite plugin file_exists(/home/fraasefa/public_html/gallery/modules/core/classes/../../../themes/local/matrix) getParameter misc.markup for core plugin file_exists(/home/fraasefa/public_html/gallery/modules/comment/Preloads.inc) file_exists(/home/fraasefa/public_html/gallery/modules/core/Preloads.inc) file_exists(/home/fraasefa/public_html/gallery/modules/search/Preloads.inc) file_exists(/home/fraasefa/public_html/gallery/modules/core/Preloads.inc) file_exists(/home/fraasefa/public_html/gallery/modules/icons/classes/IconsImpl.class) getParameter iconpack for icons plugin file_exists(/home/fraasefa/public_html/gallery/g2data/cache/module/icons/0/0/0.inc) getParameter default.orderBy for core plugin getParameter default.orderDirection for core plugin (mysqlt): SELECT g2_ChildEntity.g_id, g2_ItemAttributesMap.g_orderWeight FROM g2_ChildEntity INNER JOIN g2_ItemAttributesMap ON g2_ChildEntity.g_id = g2_ItemAttributesMap.g_itemId INNER JOIN g2_Item ON g2_ChildEntity.g_id = g2_Item.g_id INNER JOIN g2_AccessSubscriberMap ON g2_ChildEntity.g_id = g2_AccessSubscriberMap.g_itemId WHERE g2_ChildEntity.g_parentId = 173 AND g2_AccessSubscriberMap.g_accessListId IN (8,9,10,11,13,14,16,17,19,47,61,64,84,85,86,89,90,91,98,99,100,107,108,109,112,113,114,117,118,119,122,123,124,127,128,129,132,133,134,137,138,139,147,148,156,149,157,158,165,166,174,167,175,176) ORDER BY g2_ItemAttributesMap.g_orderWeight, g2_ChildEntity.g_id LIMIT 15 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/fraasefa/public_html/gallery/g2data/cache/entity/1/7/177.inc) (mysqlt): SELECT g2_AccessSubscriberMap.g_itemId, BIT_OR(g2_AccessMap.g_permission) FROM g2_AccessMap, g2_AccessSubscriberMap WHERE g2_AccessSubscriberMap.g_itemId IN (177) AND g2_AccessSubscriberMap.g_accessListId = g2_AccessMap.g_accessListId AND g2_AccessMap.g_userOrGroupId IN (6,4,2,3) GROUP BY g2_AccessSubscriberMap.g_itemId (mysqlt): SELECT g2_ChildEntity.g_parentId, COUNT(g2_ChildEntity.g_id) FROM g2_ChildEntity, g2_AccessSubscriberMap WHERE g2_ChildEntity.g_parentId IN (173) AND g2_AccessSubscriberMap.g_itemId = g2_ChildEntity.g_id AND g2_AccessSubscriberMap.g_accessListId IN (8,9,10,11,13,14,16,17,19,47,61,64,84,85,86,89,90,91,98,99,100,107,108,109,112,113,114,117,118,119,122,123,124,127,128,129,132,133,134,137,138,139,147,148,156,149,157,158,165,166,174,167,175,176) GROUP BY g2_ChildEntity.g_parentId getParameter acceleration for core plugin getParameter id.anonymousUser for core plugin Loading plugin core core plugin successfully instantiated Check the version of the core plugin The version of the core plugin is ok (mysqlt): SELECT g_parentSequence FROM g2_ItemAttributesMap WHERE g_itemId=173 (mysqlt): SELECT g2_AccessSubscriberMap.g_itemId, BIT_OR(g2_AccessMap.g_permission) FROM g2_AccessMap, g2_AccessSubscriberMap WHERE g2_AccessSubscriberMap.g_itemId IN (7) AND g2_AccessSubscriberMap.g_accessListId = g2_AccessMap.g_accessListId AND g2_AccessMap.g_userOrGroupId IN (6,4,2,3) GROUP BY g2_AccessSubscriberMap.g_itemId file_exists(/home/fraasefa/public_html/gallery/g2data/cache/entity/1/7/172.inc) file_exists(/home/fraasefa/public_html/gallery/g2data/cache/entity/0/0/0.inc) file_exists(/home/fraasefa/public_html/gallery/g2data/cache/entity/0/0/7.inc) (mysqlt): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (0) Loading plugin albumselect Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/albumselect/module.inc) albumselect plugin successfully instantiated Loading plugin comment Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/comment/module.inc) comment plugin successfully instantiated Loading plugin customfield Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/customfield/module.inc) customfield plugin successfully instantiated Loading plugin hidden Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/hidden/module.inc) hidden plugin successfully instantiated Loading plugin httpauth Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/httpauth/module.inc) httpauth plugin successfully instantiated Loading plugin imageblock Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/imageblock/module.inc) imageblock plugin successfully instantiated Loading plugin linkitem Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/linkitem/module.inc) linkitem plugin successfully instantiated Loading plugin migrate Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/migrate/module.inc) migrate plugin successfully instantiated Loading plugin multilang Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/multilang/module.inc) multilang plugin successfully instantiated Loading plugin password Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/password/module.inc) password plugin successfully instantiated Loading plugin permalinks Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/permalinks/module.inc) permalinks plugin successfully instantiated Loading plugin quotas Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/quotas/module.inc) quotas plugin successfully instantiated Loading plugin rating Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/rating/module.inc) rating plugin successfully instantiated Loading plugin rewrite Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/rewrite/module.inc) rewrite plugin successfully instantiated Loading plugin rss Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/rss/module.inc) rss plugin successfully instantiated Loading plugin sizelimit Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/sizelimit/module.inc) sizelimit plugin successfully instantiated Loading plugin thumbnail Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/thumbnail/module.inc) thumbnail plugin successfully instantiated Loading plugin useralbum Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/useralbum/module.inc) useralbum plugin successfully instantiated Loading plugin watermark Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/watermark/module.inc) watermark plugin successfully instantiated Loading plugin webdav Class not defined, trying to include it. file_exists(/home/fraasefa/public_html/gallery/modules/webdav/module.inc) webdav plugin successfully instantiated Loading plugin core core plugin successfully instantiated getParameter default.theme for core plugin Loading plugin matrix matrix plugin successfully instantiated Check the version of the matrix plugin 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 getParameter id.adminGroup for core plugin realpath(/home/fraasefa/public_html/gallery/modules/core/classes/../../../) realpath(/home/fraasefa/public_html/gallery/) (mysqlt): SELECT g_mimeType, g_toolkitId, g_priority FROM g2_TkOperatnMimeTypeMap WHERE g_operationName='thumbnail' ORDER BY g_mimeType ASC, g_priority ASC file_exists(/home/fraasefa/public_html/gallery/g2data/smarty/templates_c/%%3036768569) is_dir(/home/fraasefa/public_html/gallery/g2data/smarty/templates_c/%%3036768569) file_exists(/home/fraasefa/public_html/gallery/g2data/smarty/templates_c/%%3036768569) is_writeable(/home/fraasefa/public_html/gallery/g2data/smarty/templates_c/%%3036768569) file_exists(/home/fraasefa/public_html/gallery/g2data/smarty/templates_c/%%3036768569/v_12) file_exists(/home/fraasefa/public_html/gallery/modules/core/classes/../../../lib/javascript/local/BlockToggle.js) file_exists(/home/fraasefa/public_html/gallery/modules/core/../../themes/matrix/local/theme.css) file_exists(/home/fraasefa/public_html/gallery/modules/core/classes/../../../themes/matrix/local/theme.css) getParameter modrewrite.galleryLocation for rewrite plugin

 
kreno

Joined: 2007-11-13
Posts: 6
Posted: Thu, 2007-11-15 23:06

Nevermind, I figured it out.