Problem in Proccessing Images , Maintenance -> Build all thumbnails/resizes

gojefarangi

Joined: 2006-11-21
Posts: 1
Posted: Tue, 2006-11-21 09:01

Hi,
i`m experiensing some problem after i deleted all my cache directory content
and then using Maintenance -> Build all thumbnails/resizes
anybody can help me?
after Processing image 2935 of 4116 it saied
Estimated time remaining: 0:01

Memory used: 0, total: 0

Error (ERROR_MISSING_OBJECT) : Missing object for 5256

* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 1852 (gallerycoreapi::error)
* in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 109 (gallerystorageextras::_identifyentities)
* in modules/core/classes/GalleryStorage.class at line 293 (gallerystorageextras::loadentities)
* in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (mysqlstorage::loadentities)
* in modules/core/classes/GalleryCoreApi.class at line 2382 (galleryentityhelper_simple::loadentitiesbyid)
* in modules/core/classes/helpers/GalleryDerivativeHelper_simple.class at line 54 (gallerycoreapi::loadentitiesbyid)
* in modules/core/classes/GalleryCoreApi.class at line 942 (galleryderivativehelper_simple::rebuildcacheifnotcurrent)
* in modules/core/classes/BuildDerivativesTask.class at line 94 (gallerycoreapi::rebuildderivativecacheifnotcurrent)
* in modules/core/AdminMaintenance.inc at line 100 (buildderivativestask::run)
* in ??? at line 0 (adminmaintenancecontroller::runtask)
* in modules/core/classes/GalleryTemplateAdapter.class at line 800
* in /home/www/persianalbums.com/g2data_per2061/smarty/templates_c/%%2021503194/%%0B^0B4^0B4F6589%%theme.tpl.php at line 389 (gallerytemplateadapter::trailer)
* in lib/smarty/Smarty.class.php at line 1251
* in modules/core/classes/GallerySmarty.class at line 90 (smarty::fetch)
* in modules/core/classes/GalleryTemplate.class at line 228 (gallerysmarty::fetch)
* in main.php at line 412 (gallerytemplate::display)
* in main.php at line 87
* in main.php at line 80
* in /home/www/persianalbums.com/main.php at line 3

smarty debug consule saies

Smarty Debug Console
included templates & config files (load time in seconds):
no templates included
assigned template variables:
{$ImageFrameData} Array (2)
idList => empty
data => Array (0)
{$SCRIPT_NAME} /main.php
{$colorpack} PGcharcoal
{$colorpackURL} http://persianalbums.com/gallery2/mod...
{$form} Array (2)
action => Array (1)
runTask => 1
formName => empty
{$head} Array (3)
tpl => Array (2)
modules/imageframe/templates/ImageFrameHead.tpl => modules_imageframe
modules/rss/templates/RssBlockHead.tpl => modules_rss
style => Array (2)
0 => modules/icons/iconpacks/paularmstrong...
1 => modules/colorpack/packs/PGcharcoal/co...
javascript => Array (1)
0 => modules/search/SearchBlock.js
{$imageURL} http://persianalbums.com/gallery2/mod...
{$imageURL_base} http://persianalbums.com/gallery2/the...
{$imageURL_baseCP} http://persianalbums.com/gallery2/mod...
{$imageURL_on} http://persianalbums.com/gallery2/mod...
{$isEmbedded}
{$l10Domain} themes_PGtheme
{$separator} |
{$status} Array (0)
{$theme} Array (12)
themeUrl => http://persianalbums.com/gallery2/the...
guestPreviewMode => 0
actingUserId => 6
markupType => bbcode
params => Array (200)
1stDescription => 0
1stTitle => 0
actions => empty
ActionsText => 0
AddAlbumCartText => Add Album to Cart
AddAlbumComments => 1
AddItemCartText => Add Item to Cart
addItems => 1
AddPhotoComments => 1
album => empty
AlbumActions => 0
AlbumAddCart => 1
albumBlocks => Array (2)
0 => Array (2)
0 => comment.ViewComments
1 => Array (0)
1 => Array (2)
0 => rss.RssBlock
1 => Array (0)
AlbumComments => 1
AlbumDescription => topL
albumFrame => none
AlbumInfo => side
AlbumItems => empty
AlbumTitle => topL
AuthorActions => admin
AuthorCart => 1
AuthorComments => 1
authorlink1 => empty
authorlink1url => empty
authorlink2 => empty
authorlink2url => empty
bg => none
bg1 => none
bg2 => none
bgIframe => none
bgPP => none
blocks => empty
BlocksAlign => 0
BlocksInAlign => 0
BlocksText => More Options
BreadCrumb => 1
BtnAfter => 1
colorpack => PGcharcoal
columns => 4
columns1st => 3
columnsMT => 4
CommentsText => Add a Comment
copyright => 1
copyrightDate => 1
copyrightDateText => 2006
copyrightEmail => empty
copyrightName => empty
donbtn => 0
enterAlbumDirect => none
enterAlbumTopNav => 0
ExifText => Show EXIF
expand => 1
expandBtn => 1
externallinks => 0
footer => empty
frameBheight => empty
frameColor => empty
frameCopyright => 0
frameCopyrightStyle => empty
frameDescriptionAlign => 0
frameDescriptionStyle => empty
frameFont => empty
frameFontColor => empty
frameFontColorParent => 888
frameFontColorTitle => 888
frameFontParent => empty
frameFontSize => 10px
frameFontSizeParent => 1.3em
frameFontSizeTitle => 1.1em
frameFontSpacingParent => 0.5em
frameFontSpacingTitle => 0.5em
frameFontTitle => empty
frameFreeText1 => empty
frameFreeText1pos => 0
frameFreeText1Style => empty
frameFreeText2 => empty
frameFreeText2pos => 0
frameFreeText2Style => empty
frameItemDescription => 0
frameItemTitle => 0
frameLwidth => empty
frameParentAlign => center
frameParentPS => empty
frameParentTitle => 0
framePP => 0
framePPBheight => empty
framePPColor => empty
framePPFont => empty
framePPFontColor => empty
framePPFontSize => 10px
framePPLwidth => empty
framePPRwidth => empty
framePPTheight => 30
frameRwidth => empty
frameStyleParent => empty
frameStyleTitle => empty
frameTheight => 30
frameTitleAlign => center
frameTitlePS => empty
g2btn => 0
g2verbtn => 0
icons => set1_3d_on
iestatus => 1
iframe => empty
imageFadin => 1
InfoSize => show
interactiveframe => 0
itemFrame => none
ItemsActions => admin
ItemsCart => 1
ItemsCenter => 0
ItemsComments => 1
ItemsDesc => 0
ItemsExif => 1
ItemsTitle => 1
link1 => empty
link1url => empty
link2 => empty
link2url => empty
link3 => empty
link3url => empty
MenuSeparator => |
microthumbs => empty
MTends => 1
MTmore => 1
MTmorepics => 1
MTmoretext => empty
MToversize => 4
MTposition => right
NavAlbum => both
NavOver => top
NavOverPop => even
NavPhoto => bottom
NavPop => show
opacityMT => 4
opacityMTover => 10
opacityT => 10
opacityTover => 6
OtherBlocksBtn => 1
overall => empty
peerWindowSize => 20
pgbtn => 0
pgcpbtn => 0
photo => empty
PhotoActions => adminT
PhotoActionsPos => photoNav
PhotoAddCart => topNav
photoBlocks => Array (2)
0 => Array (2)
0 => exif.ExifInfo
1 => Array (0)
1 => Array (2)
0 => comment.ViewComments
1 => Array (0)
PhotoComments => 1
PhotoDescription => rightB
PhotoExif => 1
photoFrame => none
PhotoInfo => rightB
PhotoTitle => topL
PhotoViewCart => topNav
PopSize => even
RightClick => none
rows => 3
setiframe => 0
showAlbumDate => 1
showAlbumOwner => 0
showAlbumRating => 0
showAlbumSize => 1
showAlbumViewCount => 0
showGalleryDate => 1
showGalleryOwner => 0
showGalleryRating => none
showGallerySize => 1
showGalleryViewCount => 0
showImageOwner => 0
showItemsDate => 0
showItemsOwner => 0
showItemsRating => 0
showItemsSize => 0
showItemsSummaries => 0
showItemsViewCount => 0
showMicroThumbs => 1
showOwnerContact => 1
showPhotoRating => rightB
Showslideshow => 1
SIborder => 1
SIborderColor => #000
sidebar => floating
sidebarBlocks => Array (4)
0 => Array (2)
0 => search.SearchBlock
1 => Array (1)
showAdvancedLink => 1
1 => Array (2)
0 => core.ItemLinks
1 => Array (1)
useDropdown =>
2 => Array (2)
0 => core.PeerList
1 => Array (0)
3 => Array (2)
0 => imageblock.ImageBlock
1 => Array (0)
sidebarL => 10
sidebarT => 20
site => empty
sizeMT => 30
slideshow => empty
ss => 1
Tborder => 1
TborderColor => #000
topNavPics => left
valbtn => 1
viewCart => 1
ViewCartText => View Cart
ViewCommentsText => View Comments
_requiredCoreApi => 7,0
_requiredThemeApi => 2,2
_version => 1.1.0
useFullScreen =>
pageType => progressbar
item => Array (23)
theme => empty
orderBy => albumsFirst|modificationTimestamp
orderDirection => desc
canContainChildren => 1
description => This is the main page of your Gallery
keywords => empty
ownerId => 6
summary => empty
title => Gallery
viewedSinceTimestamp => 1156140501
originationTimestamp => 1156140501
pathComponent => empty
id => 7
creationTimestamp => 1156140501
isLinkable => 0
linkId => empty
linkedEntity => empty
modificationTimestamp => 1163957542
serialNumber => 85
entityType => GalleryAlbumItem
onLoadHandlers => empty
_persistentStatus => Array (2)
flags => 0
originalValue => Array (21)
theme => empty
orderBy => albumsFirst|modificationTimestamp
orderDirection => desc
canContainChildren => 1
description => This is the main page of your Gallery
keywords => empty
ownerId => 6
summary => empty
title => Gallery
viewedSinceTimestamp => 1156140501
originationTimestamp => 1156140501
pathComponent => empty
parentId => 0
id => 7
creationTimestamp => 1156140501
isLinkable => 0
linkId => empty
modificationTimestamp => 1163957542
serialNumber => 85
entityType => GalleryAlbumItem
onLoadHandlers => empty
parentId => 0
children => Array (0)
parents => Array (0)
parent => empty
systemLinks => Array (3)
core.SiteAdmin => Array (2)
text => Site Admin
params => Array (2)
view => core.SiteAdmin
return => 1
core.YourAccount => Array (2)
text => Your Account
params => Array (3)
view => core.UserAdmin
subView => core.UserPreferences
return => 1
core.Logout => Array (2)
text => Logout
params => Array (2)
controller => core.Logout
return => 1
{$user} Array (18)
userName => admin
fullName => Rasha Malek
hashedPassword => --------------------------------------------
email => rasha [at] persianalbums.com
language => empty
id => 6
creationTimestamp => 1156140501
isLinkable => 0
linkId => empty
linkedEntity => empty
modificationTimestamp => 1156140501
serialNumber => 1
entityType => GalleryUser
onLoadHandlers => empty
_persistentStatus => Array (2)
flags => 0
originalValue => Array (13)
userName => admin
fullName => Rasha Malek
hashedPassword => --------------------------------------------
email => rasha [at] persianalbums.com
language => empty
id => 6
creationTimestamp => 1156140501
isLinkable => 0
linkId => empty
modificationTimestamp => 1156140501
serialNumber => 1
entityType => GalleryUser
onLoadHandlers => empty
isGuest =>
isRegisteredUser => 1
isAdmin => 1
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)


Gallery version = 2.1.2 core 1.1.0.2
PHP version = 4.4.0 cgi
Webserver = Apache/2.0.54 (Debian GNU/Linux) mod_auth_pgsql/2.0.2b1 PHP/4.3.10-16 mod_ssl/2.0.54 OpenSSL/0.9.7e
Database = mysql 4.1.11-Debian_4sarge3-log, lock.system=flock
Toolkits = ArchiveUpload, Dcraw, Exif, Ffmpeg, Getid3, NetPBM, SquareThumb, Thumbnail, Gd
Acceleration = full/43200, none
Operating system = Linux supremecenter38.com 2.6.8-12-amd64-k8-smp #1 SMP Thu Feb 9 07:54:34 UTC 2006 x86_64
Default theme = PGtheme
Locale = en_US
Browser = Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Tue, 2006-11-21 14:14

> Error (ERROR_MISSING_OBJECT) : Missing object for 5256

it looks like at least one object in your gallery has been corrupted.
You will need to manipulate the database manually to fix the problem.
You can do that e.g. with phpmyadmin, or any other tool you have to manage your database in your control panel of your website.

The entity with id 5256 is the problem.
First you have to find out whether this is a derivative (thumbnails and resized images are called derivatives in Gallery) or whether this is the original / source for a derivative.

These two SQL queries should be executed (e.g. in phpmyadmin):
SELECT g_id, g_derivativeSourceId FROM `g2_derivative` WHERE g_id = 5256;
SELECT g_id, g_derivativeSourceId FROM `g2_derivative` WHERE g_derivativeSourceId = 5256;

If the first returns a result, then 5256 is a GalleryDerivativeImage.
If the second returns a result, it's a source for a GalleryDerivativeImage (probably a photo).

Once you have determined what exactly the object with the id 5256 is, you can take action.
You have 2 options:
- Either repair the object or
- Delete the object very carefully

Derivatives have a row in each of those tables:
g2_Entity (with g_id = 5256)
g2_ChildEntity (with g_id = 5256)
g2_Derivative (with g_id = 5256)
g2_DerivativeImage (with g_id = 5256)

Photos have a row in each of those tables:
g2_Entity (with g_id = 5256)
g2_ChildEntity (with g_id = 5256)
g2_FilesystemEntity (with g_id = 5256)
g2_Item (with g_id = 5256)
g2_DataItem (with g_id = 5256)
g2_PhotoItem (with g_id = 5256)
and:
g2_ItemAttributesMap (with g_id = 5256)
g2_AccessSubscriberMap (with g_itemId = 5256)
and zero or more rows:
g2_ChildEntity (with g_parentId = 5256)
with corresponding comments / derivatives

If it is a photo and if you decide to delete it, you should first remove comments and derivatives that are attached to that photo.
Repairing is probably easier.

 
noddy26

Joined: 2007-02-17
Posts: 1
Posted: Sat, 2007-02-17 05:35
Quote:
These two SQL queries should be executed (e.g. in phpmyadmin):
SELECT g_id, g_derivativeSourceId FROM `g2_derivative` WHERE g_id = 5256;
SELECT g_id, g_derivativeSourceId FROM `g2_derivative` WHERE g_derivativeSourceId = 5256;

If the first returns a result, then 5256 is a GalleryDerivativeImage.
If the second returns a result, it's a source for a GalleryDerivativeImage (probably a photo).

I have the same issue and neither of these queries returns a result. My issue arose the day after i deleted an image via the gallery2 interface and then tried to rebuild thumbnails.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-02-17 09:59

noddy26

1. the queries shouldn't be copied 1:1. you need to change the number in there.
2. you might also need to search in other tables.

please create a new forum topic. we prefer to discuss each case in its own forum thread.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
justchil
justchil's picture

Joined: 2003-02-07
Posts: 225
Posted: Tue, 2007-06-19 18:57

If you have phpmyadmin the Search tab can be very helpful for fixing these type of errors.

Go to your g2 db. Click search tab. Put the g_id that is causing the problem. Select the exact phrase then select all tables and click Go. I found two rows.. deleted both and now I can run "check short urls" again.

Maybe this will be helpful to someone in the future!

 
glen_di_persio

Joined: 2006-10-22
Posts: 3
Posted: Fri, 2009-06-19 02:20

Thanks for the phpmyadmin hint, justchil! That makes life easy.