Accidently deleted all User Accounts, Cant load gallery now

robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 20:11

Due to some caching issues with a bridge, I thought it would be a good idea to empty the g2_User table. This has resulted in the gallery breaking. I have restores the guest and admin account in that area, but it's still not working.

This is the full error I get:

Quote:
Error

Item not found.

Back to the Gallery

Error Detail -

Error (ERROR_MISSING_OBJECT)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 167 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage.class at line 314 (GalleryStorageExtras::loadEntities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::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/siriux/theme.inc at line 61 (GalleryTheme::loadCommonTemplateData)
in modules/core/classes/GalleryTheme.class at line 932 (SiriuxTheme::showAlbumPage)
in modules/core/classes/GalleryView.class at line 301 (GalleryTheme::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88

Any help would be much appreciated

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-10-05 20:25

OUCH!
Got a recent-ish DB backup?

Which bridge?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 20:28

Ran Integrity check and passed. Here is my info btw:

Gallery URL = http://www.metalinjection.net/gallery2/main.php
Gallery version = 2.3.1 core 1.3.0.1
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.3.2-1ubuntu4.5 apache2handler
Webserver = Apache/2.2.14 (Ubuntu)
Database = mysqli 5.1.41-3ubuntu12.8, lock.system=flock
Toolkits = Exif, Gd, SquareThumb
Acceleration = none, none
Operating system = Linux ip-10-80-190-33 2.6.32-305-ec2 #9-Ubuntu SMP Thu Apr 15 08:05:38 UTC 2010 x86_64
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1
Rows in GalleryAccessMap table = 389
Rows in GalleryAccessSubscriberMap table = 12082
Rows in GalleryUser table = 2
Rows in GalleryItem table = 12082
Rows in GalleryAlbumItem table = 588
Rows in GalleryCacheMap table = 0

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-10-05 20:32

when you upgraded to 2.3.1 gallery made a backup

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 20:33

WPG2.

I think I messed up my DB. Any help? I have like a 100 galleries, so I dont want to do a fresh install.

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 20:37

I just updated, after it broke so the backup won't help

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-10-05 20:41

the best we might be able to do is remap all albums to a new owner, your new admin.
And when you say you have restored admin and guest accounts, how did you do it?
These users have specific entity ids.
I can get you the sql to fix those if you need.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 20:46

I restored the admin user id (6) in the SQL database. The user is "admin"

How would I remap the albums?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-10-05 20:46
INSERT INTO `g2_User` (`g_id`, `g_userName`, `g_fullName`, `g_hashedPassword`, `g_email`, `g_language`, `g_locked`) VALUES
(5, 'guest', 'Guest', '7]]28783a2cb4f88648afcfec2085d11eb73', NULL, NULL, 0),
(6, 'admin', 'Gallery Administrator', 'Dn7Ha5764777408dff1d684c5628abef1254', 'yourname@youremail.com', NULL, 0);

use this sql to restore gallery's 2 most basic users, and use the recover password function to change your password(make sure to change the email above)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-10-05 20:50

table g2_item all g_ownerId would need to be 6

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 20:51

I have already restored the users, before posting here but still get this error.

http://snapplr.com/52wc

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 21:03

Ok, I updated the owner ID and still getting the error it seems/

Quote:
Error

Item not found.

Back to the Gallery

Error Detail -

Error (ERROR_MISSING_OBJECT)
in modules/core/classes/GalleryStorage/GalleryStorageExtras.class at line 167 (GalleryCoreApi::error)
in modules/core/classes/GalleryStorage.class at line 314 (GalleryStorageExtras::loadEntities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 71 (GalleryStorage::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/siriux/theme.inc at line 61 (GalleryTheme::loadCommonTemplateData)
in modules/core/classes/GalleryTheme.class at line 932 (SiriuxTheme::showAlbumPage)
in modules/core/classes/GalleryView.class at line 301 (GalleryTheme::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in main.php at line 88
System Information

Gallery version 2.3.1
PHP version 5.3.2-1ubuntu4.5 apache2handler
Webserver Apache/2.2.14 (Ubuntu)
Database mysqli 5.1.41-3ubuntu12.8
Toolkits SquareThumb, Gd
Operating system Linux ip-10-80-190-33 2.6.32-305-ec2 #9-Ubuntu SMP Thu Apr 15 08:05:38 UTC 2010 x86_64
Browser Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.186 Safari/535.1

I really appreciate you helping me btw. thanks so much!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2011-10-05 21:04
 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 21:16

BLESS YOUR HEART YOU DID IT!

Thanks so much!

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Wed, 2011-10-05 21:58

Ok the galleries show up, but now I am not seeing any images. When I try to rebuild the thumbnails I keep getting an error like this recursively:

Quote:
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5/65308.inc)
file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/5/65308.dat)
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5/65306.inc)
getParameter lock.system for core plugin
fopen(/var/www/.../gallery2/g2data/locks/65308, wb+,
0)
flock(Resource id #101, 6, )

(mysqli): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (65308)
 

(mysqli): SELECT g2_Schema.g_info FROM g2_PluginMap, g2_Schema
WHERE g2_PluginMap.g_pluginId = g2_Schema.g_pluginId
AND g2_Schema.g_type = 'entity' AND g2_PluginMap.g_active = 1  

(mysqli): SELECT g2_DerivativeImage.g_width, g2_DerivativeImage.g_height,
g2_Derivative.g_derivativeSourceId, g2_Derivative.g_derivativeOperations,
g2_Derivative.g_derivativeOrder, g2_Derivative.g_derivativeSize,
g2_Derivative.g_derivativeType, g2_Derivative.g_mimeType,
g2_Derivative.g_postFilterOperations, g2_Derivative.g_isBroken,
g2_ChildEntity.g_parentId, g2_Entity.g_id, g2_Entity.g_creationTimestamp,
g2_Entity.g_isLinkable, g2_Entity.g_linkId,
g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber,
g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers FROM g2_DerivativeImage,
g2_Derivative, g2_ChildEntity, g2_Entity WHERE g2_DerivativeImage.g_id IN
(65308) AND g2_Derivative.g_id=g2_DerivativeImage.g_id AND
g2_ChildEntity.g_id=g2_DerivativeImage.g_id AND
g2_Entity.g_id=g2_DerivativeImage.g_id  

file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/5)
is_dir(/var/www/.../gallery2/g2data/cache/derivative/6/5)
file_exists(/var/www/.../gallery2/modules/exif/classes/ExifToolkit.class)
file_exists(/var/www/.../gallery2/modules/gd/classes/GdToolkit.class)
file_exists(/var/www/.../gallery2/modules/squarethumb/classes/SquareThumbToolkit.class)
realpath(/var/www/.../gallery2/modules/core/classes/../../../)
realpath(/var/www/.../gallery2/)

(mysqli): SET NAMES "utf8"  

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

(mysqli): UPDATE g2_EventLogMap SET g_userId=6, g_type='Image Error',
g_summary='Unable to build image', g_details='Error (ERROR_BAD_PATH) :
Invalid path: modules/squarethumb/classes/SquareThumbToolkit.class
in
modules/core/classes/helpers/GalleryFactoryHelper_simple.class at
line
171 (GalleryCoreApi::error) \nin
modules/core/classes/helpers/GalleryFactoryHelper_simple.class at
line
201 (GalleryFactoryHelper_simple::newInstance)
\nin modules/core/classes/GalleryCoreApi.class
at line 175
(GalleryFactoryHelper_simple::newInstanceById) \nin
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class
at line 551 (GalleryCoreApi::newFactoryInstanceById)
\nin modules/core/classes/GalleryCoreApi.class
at line 1104
(GalleryDerivativeHelper_advanced::mergeOperations) \nin
modules/core/classes/GalleryDerivative.class at line 583
(GalleryCoreApi::mergeDerivativeOperations) \nin
modules/core/classes/GalleryDerivative.class at line 359
(GalleryDerivative::fetchFinalOperations) \nin
modules/core/classes/GalleryDerivative.class at line 274
(GalleryDerivative::_rebuildCache) \nin
modules/core/classes/GalleryDerivativeImage.class at
line
153 (GalleryDerivative::rebuildCache)
\nin
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class
at line 844 (GalleryDerivativeImage::rebuildCache)
\nin modules/core/classes/GalleryCoreApi.class
at line 997
(GalleryDerivativeHelper_advanced::rebuildCache) \nin
modules/core/classes/helpers/GalleryDerivativeHelper_simple.class
at line 50 (GalleryCoreApi::rebuildDerivativeCache)
\nin modules/core/classes/GalleryCoreApi.class
at line 984
(GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
\nin modules/core/classes/BuildDerivativesTask.class
at line 113
(GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
\nin modules/core/AdminMaintenance.inc at
line
128 (BuildDerivativesTask::run) \nin ???
at line 0 (AdminMaintenanceController::runTask)
\nin modules/core/classes/GalleryTemplateAdapter.class
at line 1089\nin
g2data/smarty/templates_c/%%2786574485/siriux/%%5D^5D2^5D29E2DD%%theme.tpl.php
at line 77 (GalleryTemplateAdapter::trailer)
\nin lib/smarty/Smarty.class.php at
line
1255\nin
modules/core/classes/GallerySmarty.class at line 61
(Smarty::fetch) \nin
modules/core/classes/GalleryTemplate.class at line 241
(GallerySmarty::fetch) \nin main.php at
line
506 (GalleryTemplate::display) \nin
main.php at line 104\nin main.php
at line 88\n\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] => 2bd5dd96f7bb\n)\n',
g_location='http://www.metalinjection.net/gallery2/main.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_authToken=2bd5dd96f7bb',
g_client='72.229.125.175', g_timestamp=1317851555,
g_referer='http://www.metalinjection.net/gallery2/main.php?g2_view=core.SiteAdmin&g2_subView=core.AdminMaintenance'
WHERE g_id=291  

And later stuff like this:

Quote:
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5/65305.inc)
file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/5/65305.dat)
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5/65303.inc)
fopen(/var/www/.../gallery2/g2data/locks/65305, wb+,
0)
flock(Resource id #124, 6, )

Should I just delete everything in cache folder?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2011-10-06 11:20
Quote:
The image “http://www.metalinjection.net/gallery2/main.php?g2_view=core.DownloadItem&g2_itemId=64304” cannot be displayed because it contains errors.

Make sure the full sized images are ok in g2data/albums
then delete the entire cache and then try rebuilding one album at a time.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Fri, 2011-10-07 23:47

Ok, I just tried to rebuild thumbnails again after deleteing everything in my cache (albums are fine) and now I'm getting some other weird errors. Thanks again for all your help and patience.

Quote:
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5/65308.inc)

(mysqli): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (65308)
 

(mysqli): SELECT g2_DerivativeImage.g_width, g2_DerivativeImage.g_height,
g2_Derivative.g_derivativeSourceId, g2_Derivative.g_derivativeOperations,
g2_Derivative.g_derivativeOrder, g2_Derivative.g_derivativeSize,
g2_Derivative.g_derivativeType, g2_Derivative.g_mimeType,
g2_Derivative.g_postFilterOperations, g2_Derivative.g_isBroken,
g2_ChildEntity.g_parentId, g2_Entity.g_id, g2_Entity.g_creationTimestamp,
g2_Entity.g_isLinkable, g2_Entity.g_linkId,
g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber,
g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers FROM g2_DerivativeImage,
g2_Derivative, g2_ChildEntity, g2_Entity WHERE g2_DerivativeImage.g_id IN
(65308) AND g2_Derivative.g_id=g2_DerivativeImage.g_id AND
g2_ChildEntity.g_id=g2_DerivativeImage.g_id AND
g2_Entity.g_id=g2_DerivativeImage.g_id  

file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5)
is_dir(/var/www/.../gallery2/g2data/cache/entity/6/5)
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5)
is_dir(/var/www/.../gallery2/g2data/cache/entity/6/5)
rename(/var/www/.../gallery2/g2data/cache/entity/6/5/65308.inccpFmz5,
/var/www/.../gallery2/g2data/cache/entity/6/5/65308.inc)
file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/5/65308.dat)
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5/65306.inc)

(mysqli): SELECT g_id, g_entityType FROM g2_Entity WHERE g_id IN (65306)
 

(mysqli): SELECT g2_PhotoItem.g_width, g2_PhotoItem.g_height,
g2_DataItem.g_mimeType, g2_DataItem.g_size, g2_Item.g_canContainChildren,
g2_Item.g_description, g2_Item.g_keywords, g2_Item.g_ownerId,
g2_Item.g_renderer, g2_Item.g_summary, g2_Item.g_title,
g2_Item.g_viewedSinceTimestamp, g2_Item.g_originationTimestamp,
g2_FileSystemEntity.g_pathComponent, g2_ChildEntity.g_parentId,
g2_Entity.g_id, g2_Entity.g_creationTimestamp, g2_Entity.g_isLinkable,
g2_Entity.g_linkId, g2_Entity.g_modificationTimestamp,
g2_Entity.g_serialNumber, g2_Entity.g_entityType,
g2_Entity.g_onLoadHandlers FROM g2_PhotoItem, g2_DataItem, g2_Item,
g2_FileSystemEntity, g2_ChildEntity, g2_Entity WHERE g2_PhotoItem.g_id IN
(65306) AND g2_DataItem.g_id=g2_PhotoItem.g_id AND
g2_Item.g_id=g2_PhotoItem.g_id AND
g2_FileSystemEntity.g_id=g2_PhotoItem.g_id AND
g2_ChildEntity.g_id=g2_PhotoItem.g_id AND g2_Entity.g_id=g2_PhotoItem.g_id
 

file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5)
is_dir(/var/www/.../gallery2/g2data/cache/entity/6/5)
file_exists(/var/www/.../gallery2/g2data/cache/entity/6/5)
is_dir(/var/www/.../gallery2/g2data/cache/entity/6/5)
rename(/var/www/.../gallery2/g2data/cache/entity/6/5/65306.incnTp3qM,
/var/www/.../gallery2/g2data/cache/entity/6/5/65306.inc)
getParameter lock.system for core plugin
fopen(/var/www/.../gallery2/g2data/locks/65308, wb+,
0)
flock(Resource id #115, 6, )

(mysqli): SELECT g2_DerivativeImage.g_width, g2_DerivativeImage.g_height,
g2_Derivative.g_derivativeSourceId, g2_Derivative.g_derivativeOperations,
g2_Derivative.g_derivativeOrder, g2_Derivative.g_derivativeSize,
g2_Derivative.g_derivativeType, g2_Derivative.g_mimeType,
g2_Derivative.g_postFilterOperations, g2_Derivative.g_isBroken,
g2_ChildEntity.g_parentId, g2_Entity.g_id, g2_Entity.g_creationTimestamp,
g2_Entity.g_isLinkable, g2_Entity.g_linkId,
g2_Entity.g_modificationTimestamp, g2_Entity.g_serialNumber,
g2_Entity.g_entityType, g2_Entity.g_onLoadHandlers FROM g2_DerivativeImage,
g2_Derivative, g2_ChildEntity, g2_Entity WHERE g2_DerivativeImage.g_id IN
(65308) AND g2_Derivative.g_id=g2_DerivativeImage.g_id AND
g2_ChildEntity.g_id=g2_DerivativeImage.g_id AND
g2_Entity.g_id=g2_DerivativeImage.g_id  

file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/5)
is_dir(/var/www/.../gallery2/g2data/cache/derivative/6/5)
file_exists(/var/www/.../gallery2/modules/exif/classes/ExifToolkit.class)
file_exists(/var/www/.../gallery2/modules/gd/classes/GdToolkit.class)
file_exists(/var/www/.../gallery2/modules/squarethumb/classes/SquareThumbToolkit.class)
realpath(/var/www/.../gallery2/modules/core/classes/../../../)
realpath(/var/www/.../gallery2/)

(mysqli): SET NAMES "utf8"  

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

(mysqli): UPDATE g2_EventLogMap SET g_userId=6, g_type='Image Error',
g_summary='Unable to build image', g_details='Error (ERROR_BAD_PATH) :
Invalid path: modules/squarethumb/classes/SquareThumbToolkit.class
<b>in</b>
modules/core/classes/helpers/GalleryFactoryHelper_simple.class <b>at
line</b> 171 (GalleryCoreApi::error) \n<b>in</b>
modules/core/classes/helpers/GalleryFactoryHelper_simple.class <b>at
line</b> 201 (GalleryFactoryHelper_simple::newInstance)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 175
(GalleryFactoryHelper_simple::newInstanceById) \n<b>in</b>
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class
<b>at line</b> 551 (GalleryCoreApi::newFactoryInstanceById)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 1104
(GalleryDerivativeHelper_advanced::mergeOperations) \n<b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 583
(GalleryCoreApi::mergeDerivativeOperations) \n<b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 359
(GalleryDerivative::fetchFinalOperations) \n<b>in</b>
modules/core/classes/GalleryDerivative.class <b>at line</b> 274
(GalleryDerivative::_rebuildCache) \n<b>in</b>
modules/core/classes/GalleryDerivativeImage.class <b>at
line</b> 153 (GalleryDerivative::rebuildCache)
\n<b>in</b>
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class
<b>at line</b> 844 (GalleryDerivativeImage::rebuildCache)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 997
(GalleryDerivativeHelper_advanced::rebuildCache) \n<b>in</b>
modules/core/classes/helpers/GalleryDerivativeHelper_simple.class
<b>at line</b> 50 (GalleryCoreApi::rebuildDerivativeCache)
\n<b>in</b> modules/core/classes/GalleryCoreApi.class
<b>at line</b> 984
(GalleryDerivativeHelper_simple::rebuildCacheIfNotCurrent)
\n<b>in</b> modules/core/classes/BuildDerivativesTask.class
<b>at line</b> 113
(GalleryCoreApi::rebuildDerivativeCacheIfNotCurrent)
\n<b>in</b> modules/core/AdminMaintenance.inc <b>at
line</b> 128 (BuildDerivativesTask::run) \n<b>in</b> ???
<b>at line</b> 0 (AdminMaintenanceController::runTask)
\n<b>in</b> modules/core/classes/GalleryTemplateAdapter.class
<b>at line</b> 1089\n<b>in</b>
g2data/smarty/templates_c/%%2786574485/siriux/%%5D^5D2^5D29E2DD%%theme.tpl.php
<b>at line</b> 77 (GalleryTemplateAdapter::trailer)
\n<b>in</b> lib/smarty/Smarty.class.php <b>at
line</b> 1255\n<b>in</b>
modules/core/classes/GallerySmarty.class <b>at line</b> 61
(Smarty::fetch) \n<b>in</b>
modules/core/classes/GalleryTemplate.class <b>at line</b> 241
(GallerySmarty::fetch) \n<b>in</b> main.php <b>at
line</b> 506 (GalleryTemplate::display) \n<b>in</b>
main.php <b>at line</b> 104\n<b>in</b> main.php
<b>at line</b> 88\n\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] => 2bd5dd96f7bb\n)\n',
g_location='http://www.metalinjection.net/gallery2/main.php?g2_controller=core.AdminMaintenance&g2_form%5Baction%5D%5BrunTask%5D=1&g2_taskId=BuildDerivativesTask&g2_authToken=2bd5dd96f7bb',
g_client='72.229.125.175', g_timestamp=1318031073,
g_referer='http://www.metalinjection.net/gallery2/main.php?g2_view=core.SiteAdmin&amp;g2_subView=core.AdminMaintenance'
WHERE g_id=109  

realpath(/var/www/.../gallery2/modules/core/classes/../../../)
realpath(/var/www/.../gallery2/)

Error (ERROR_BAD_PATH) : Invalid path:
modules/squarethumb/classes/SquareThumbToolkit.class in
modules/core/classes/helpers/GalleryFactoryHelper_simple.class at
line 171 (GalleryCoreApi::error)
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class
at line 201 (GalleryFactoryHelper_simple::newInstance)
in modules/core/classes/GalleryCoreApi.class at line 175
(GalleryFactoryHelper_simple::newInstanceById)
in
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 551 (GalleryCoreApi::newFactoryInstanceById)
in modules/core/classes/GalleryCoreApi.class at line 1104
(GalleryDerivativeHelper_advanced::mergeOperations)
in modules/core/classes/GalleryDerivative.class at line 583
(GalleryCoreApi::mergeDerivativeOperations)
in modules/core/classes/GalleryDerivative.class at line 359
(GalleryDerivative::fetchFinalOperations)
in modules/core/classes/GalleryDerivative.class at line 274
(GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line
153 (GalleryDerivative::rebuildCache)
in
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 844 (GalleryDerivativeImage::rebuildCache)
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
1089
in
g2data/smarty/templates_c/%%2786574485/siriux/%%5D^5D2^5D29E2DD%%theme.tpl.php
at line 77 (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 main.php at line 88

copy(/var/www/.../gallery2/modules/core/classes/../data/broken-image.gif,
/var/www/.../gallery2/g2data/cache/derivative/6/5/65308.dat)
file_exists(/var/www/.../gallery2/g2data/cache/module/_all/0/0/GalleryMimeTypeHelper_mimeData.inc)
file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/5/65308.dat)
filesize(/var/www/.../gallery2/g2data/cache/derivative/6/5/65308.dat)

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-10-08 01:36
Quote:
Invalid path: modules/squarethumb/classes/SquareThumbToolkit.class

does the squarethumb toolkit exist in that path?
is it installed?
are the directory permissions correct for that module?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Sat, 2011-10-08 02:00

Hmm, somehow it got deactivated. Getting closer. Some images are popping up, but it stops generating after like 200 images.

Here is the final error:

Quote:
realpath(/var/www/.../gallery2/modules/core/classes/../../../)
realpath(/var/www/.../gallery2/)

Error (ERROR_TOOLKIT_FAILURE, ERROR_PLATFORM_FAILURE)in
modules/gd/classes/GdFunctionality.class at line 213
(GalleryCoreApi::error)
in modules/gd/classes/GdFunctionality.class at line 258
(GdFunctionality::checkResource)
in modules/gd/classes/GdToolkit.class at line 468
(GdFunctionality::imageCreateFromJpeg)
in modules/gd/classes/GdToolkit.class at line 136
(GdToolkit::_getImageResource)
in modules/squarethumb/classes/SquareThumbToolkit.class at
line 112 (GdToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 452
(SquareThumbToolkit::performOperation)
in modules/core/classes/GalleryDerivative.class at line 274
(GalleryDerivative::_rebuildCache)
in modules/core/classes/GalleryDerivativeImage.class at line
153 (GalleryDerivative::rebuildCache)
in
modules/core/classes/helpers/GalleryDerivativeHelper_advanced.class at
line 844 (GalleryDerivativeImage::rebuildCache)
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
1089
in
g2data/smarty/templates_c/%%2786574485/siriux/%%5D^5D2^5D29E2DD%%theme.tpl.php
at line 77 (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 main.php at line 88

copy(/var/www/.../gallery2/modules/core/classes/../data/broken-image.gif,
/var/www/.../gallery2/g2data/cache/derivative/6/4/64938.dat)
file_exists(/var/www/.../gallery2/g2data/cache/derivative/6/4/64938.dat)
filesize(/var/www/.../gallery2/g2data/cache/derivative/6/4/64938.dat)

(mysqli):
SELECT
g2_Derivative.g_id
FROM
g2_Derivative
WHERE
g2_Derivative.g_derivativeSourceId IN (64938)
 

getimagesize(/var/www/.../gallery2/g2data/cache/derivative/6/4/64938.dat)

(mysqli):
SELECT
g2_Derivative.g_id
FROM
g2_Derivative
WHERE
g2_Derivative.g_derivativeSourceId IN (64938)
 

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-10-08 02:56

Gd cannot handle building square thumbs from larger images. IMHO square thumbs is a bad module.
If you have to have sq thumbs install a better graphics toolkit like imagemagick.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Sat, 2011-10-08 05:04

ImageMagick is in the modules directory right?

/gallery2/modules/imagemagick/ ??

When I go to configure the plugin and enter the path, it gives me not found errors

Quote:
ImageMagick binary test results

Binary Name Pass/Fail
identify
Failed
Error messages:
Problem executing binary:
File does not exist
identify
Failed
Error messages:
Problem executing binary:
File does not exist
convert
Failed
Error messages:
Problem executing binary:
File does not exist
composite
Failed
Error messages:
Problem executing binary:

Any ideas?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-10-08 05:09
Quote:
ImageMagick is in the modules directory right?

nope, that's just gallery's files to communicate with the imageMagick binary installed on your server.
http://codex.gallery2.org/Gallery2:Installing_Modules_With_External_Dependencies

imageMagick is usually in /usr/bin or /usr/local/bin for *nix systems(if installed at all)

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
robinjection

Joined: 2008-04-23
Posts: 39
Posted: Sat, 2011-10-08 07:27

Alright, I got the thumbnails working.

Now I am having an issue adding new items.
This is the error I get:

Quote:
Error Detail -

Error (ERROR_BAD_PATH) : Invalid path: modules/itemadd/ItemAddFromWeb.inc
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 171 (GalleryCoreApi::error)
in modules/core/classes/helpers/GalleryFactoryHelper_simple.class at line 201 (GalleryFactoryHelper_simple::newInstance)
in modules/core/classes/GalleryCoreApi.class at line 175 (GalleryFactoryHelper_simple::newInstanceById)
in modules/core/ItemAdd.inc at line 601 (GalleryCoreApi::newFactoryInstanceById)
in modules/core/ItemAdmin.inc at line 140 (ItemAddView::loadTemplate)
in modules/core/classes/GalleryView.class at line 293 (ItemAdminView::loadTemplate)
in main.php at line 465 (GalleryView::doLoadTemplate)
in main.php at line 104
in modules/core/classes/GalleryEmbed.class at line 189
in /var/www/.../web/wp-content/plugins/wpg2/wpg2template.inc at line 76 (GalleryEmbed::handleRequest)
in ??? at line 0
in /var/www/.../web/wp-includes/plugin.php at line 405
in /var/www/.../web/wp-includes/template-loader.php at line 7
in /var/www/.../web/wp-blog-header.php at line 16
in /var/www/.../web/index.php at line 17

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sat, 2011-10-08 07:43

these errors are printed in plain english.

Quote:
Error (ERROR_BAD_PATH) : Invalid path: modules/itemadd/ItemAddFromWeb.inc

does the itemAdd module exist, and is it installed?

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2