[SOLVED] Error with thumbnails (prevents pages from loading)

gamecharmer

Joined: 2009-06-07
Posts: 6
Posted: Fri, 2009-10-16 02:42


Gallery URL = http://mudgrinders.com/gallery2/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 4.4.9 cgi
Webserver = Apache/1.3.41 (Unix) Resin/2.1.13 mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database = mysqlt 5.0.81-community, lock.system=flock
Toolkits = Exif, Gd, LinkItemToolkit, Thumbnail, Getid3
Acceleration = full/86400, none/0
Operating system = Linux 2.6.9-89.0.11.ELsmp #1 SMP Tue Sep 15 07:16:37 EDT 2009 i686
Default theme = carbon
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729)
Rows in GalleryAccessMap table = 301
Rows in GalleryAccessSubscriberMap table = 3447
Rows in GalleryUser table = 55
Rows in GalleryItem table = 3439
Rows in GalleryAlbumItem table = 96
Rows in GalleryCacheMap table = 9174

I receive the following error message when trying to view a page that has some recently added pics. A user was adding images to his personal gallery today, and this happened.

Quote:

Error

Item not found.

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

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 2054 (gallerycoreapi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 98 (gallerystorageextras::_identifyentities)
* in modules/core/classes/GalleryStorage.class at line 313 (gallerystorageextras::loadentities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (mysqlstorage::loadentities)
* in modules/core/classes/GalleryCoreApi.class at line 2361 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/core/classes/GalleryTheme.class at line 1291 (gallerycoreapi::loadentitiesbyid)
* in themes/carbon/theme.inc at line 177 (carbontheme::loadcommontemplatedata)
* in modules/core/classes/GalleryTheme.class at line 932 (carbontheme::showalbumpage)
* in modules/core/classes/GalleryView.class at line 301 (carbontheme::loadtemplate)
* in main.php at line 465 (showitemview::doloadtemplate)
* in main.php at line 104
* in modules/core/classes/GalleryEmbed.class at line 189
* in /home/gcworld3/public_html/mud/phpBB3/gallery2.php at line 34 (galleryembed::handlerequest)

System Information
Gallery version 2.3
PHP version 4.4.9 cgi
Webserver Apache/1.3.41 (Unix) Resin/2.1.13 mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
Database mysqlt 5.0.81-community
Toolkits Thumbnail, Gd
Operating system Linux 2.6.9-89.0.11.ELsmp #1 SMP Tue Sep 15 07:16:37 EDT 2009 i686
Browser Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729)

In an attempt to try and rebuild the thumbnails to try and fix things, this is the error I get while running the rebuild process.

Quote:
Debug output for failed items:

file_exists(/home/gcworld3/g2mud/cache/entity/1/4/14018.inc)
file_exists(/home/gcworld3/g2mud/cache/derivative/1/4/14018.dat)
file_exists(/home/gcworld3/g2mud/cache/entity/1/4/14017.inc)
fopen(/home/gcworld3/g2mud/locks/14018, wb+, 0)
flock(Resource id #234, 6, )
Waiting for a lock
flock(Resource id #234, 6, 1)
Waiting for a lock
flock(Resource id #234, 6, 1)
fclose(Resource id #234)
file_exists(/home/gcworld3/g2mud/locks/14018)

(mysqlt): SET NAMES "utf8"

(mysqlt): update g2_SequenceEventLog set id=LAST_INSERT_ID(id+1);

(mysqlt): UPDATE g2_EventLogMap SET g_userId=6, g_type='PHP Error',
g_summary='[Notice] Undefined index: /home/gcworld3/g2mud/locks/14018 in
file
/home/gcworld3/public_html/mud/gallery2/modules/core/classes/FlockLockSystem.class
on line 188', g_details='Undefined index:
/home/gcworld3/g2mud/locks/14018\nRequest variables: Array\n(\n
[controller] => core.AdminMaintenance\n [form] => Array\n
(\n [action] => Array\n (\n
[runTask] => 1\n )\n\n )\n\n [taskId] =>
BuildDerivativesTask\n [authToken] => 4aa29df0abf8\n)\n',
g_location='http://mudgrinders.com/phpBB3/gallery2.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_authToken=4aa29df0abf8',
g_client='24.247.85.89', g_timestamp=1255659468,
g_referer='http://mudgrinders.com/phpBB3/gallery2.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance'
WHERE g_id=136

unlink(/home/gcworld3/g2mud/locks/14018)

Error: building 14018: Error (ERROR_LOCK_TIMEOUT) : /home/gcworld3/g2mud/locks/14018

* in modules/core/classes/FlockLockSystem.class at line 109 (gallerycoreapi::error)
* in modules/core/classes/GalleryLockSystem.class at line 147 (flocklocksystem::_acquirelock)
* in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 176 (flocklocksystem::acquirewritelock)
* in modules/core/classes/GalleryCoreApi.class at line 2291 (gallerylockhelper_simple::acquirewritelock)
* in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 833 (gallerycoreapi::acquirewritelock)
* in modules/core/classes/GalleryCoreApi.class at line 997 (galleryderivativehelper_advanced::rebuildcache)
* in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (gallerycoreapi::rebuildderivativecache)
* in modules/core/classes/GalleryCoreApi.class at line 984 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
* in modules/core/classes/BuildDerivativesTask.class at line 113 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
* in modules/core/AdminMaintenance.inc at line 128 (buildderivativestask::run)
* in ??? at line 0 (adminmaintenancecontroller::runtask)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in /home/gcworld3/g2mud/smarty/templates_c/%%2824665309/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (gallerysmarty::fetch)
* in main.php at line 506 (gallerytemplate::display)
* in main.php at line 104
* in modules/core/classes/GalleryEmbed.class at line 189
* in /home/gcworld3/public_html/mud/phpBB3/gallery2.php at line 34 (galleryembed::handlerequest)

file_exists(/home/gcworld3/g2mud/cache/entity/1/4/14012.inc)
file_exists(/home/gcworld3/g2mud/cache/derivative/1/4/14012.dat)
file_exists(/home/gcworld3/g2mud/cache/entity/1/4/14011.inc)
fopen(/home/gcworld3/g2mud/locks/14012, wb+, 0)
flock(Resource id #254, 6, )
Waiting for a lock
flock(Resource id #254, 6, 1)
Waiting for a lock
flock(Resource id #254, 6, 1)
fclose(Resource id #254)
file_exists(/home/gcworld3/g2mud/locks/14012)

(mysqlt): update g2_SequenceEventLog set id=LAST_INSERT_ID(id+1);

(mysqlt): UPDATE g2_EventLogMap SET g_userId=6, g_type='PHP Error',
g_summary='[Notice] Undefined index: /home/gcworld3/g2mud/locks/14012 in
file
/home/gcworld3/public_html/mud/gallery2/modules/core/classes/FlockLockSystem.class
on line 188', g_details='Undefined index:
/home/gcworld3/g2mud/locks/14012\nRequest variables: Array\n(\n
[controller] => core.AdminMaintenance\n [form] => Array\n
(\n [action] => Array\n (\n
[runTask] => 1\n )\n\n )\n\n [taskId] =>
BuildDerivativesTask\n [authToken] => 4aa29df0abf8\n)\n',
g_location='http://mudgrinders.com/phpBB3/gallery2.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_authToken=4aa29df0abf8',
g_client='24.247.85.89', g_timestamp=1255659472,
g_referer='http://mudgrinders.com/phpBB3/gallery2.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance'
WHERE g_id=137

unlink(/home/gcworld3/g2mud/locks/14012)

Error: building 14012: Error (ERROR_LOCK_TIMEOUT) : /home/gcworld3/g2mud/locks/14012

* in modules/core/classes/FlockLockSystem.class at line 109 (gallerycoreapi::error)
* in modules/core/classes/GalleryLockSystem.class at line 147 (flocklocksystem::_acquirelock)
* in modules/core/classes/helpers/GalleryLockHelper_simple.class at line 176 (flocklocksystem::acquirewritelock)
* in modules/core/classes/GalleryCoreApi.class at line 2291 (gallerylockhelper_simple::acquirewritelock)
* in modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at line 833 (gallerycoreapi::acquirewritelock)
* in modules/core/classes/GalleryCoreApi.class at line 997 (galleryderivativehelper_advanced::rebuildcache)
* in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 50 (gallerycoreapi::rebuildderivativecache)
* in modules/core/classes/GalleryCoreApi.class at line 984 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
* in modules/core/classes/BuildDerivativesTask.class at line 113 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
* in modules/core/AdminMaintenance.inc at line 128 (buildderivativestask::run)
* in ??? at line 0 (adminmaintenancecontroller::runtask)
* in modules/core/classes/GalleryTemplateAdapter.class at line 1092
* in /home/gcworld3/g2mud/smarty/templates_c/%%2824665309/carbon/%%2E^2E1^2E11E2E2%%theme.tpl.php at line 141 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1255
* in modules/core/classes/GallerySmarty.class at line 61 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 241 (gallerysmarty::fetch)
* in main.php at line 506 (gallerytemplate::display)
* in main.php at line 104
* in modules/core/classes/GalleryEmbed.class at line 189
* in /home/gcworld3/public_html/mud/phpBB3/gallery2.php at line 34 (galleryembed::handlerequest)

The website is integrated with phpBB3. It has been working great up until today. I have no clue how to fix this.

I have scoured my database for anything referancing 13950 but can't find anything.

 
gamecharmer

Joined: 2009-06-07
Posts: 6
Posted: Sat, 2009-10-17 00:23

Somehow, a folder was created TWICE when a user clicked the "Your Album" link in the gallery. He must have double clicked, because it created two user albums for him with the same name. I used the DeleteItems function and removed one of the two. It's completely fixed.

Please mark this as resolved.