Failed upgrade, any suggestions please

klewis

Joined: 2004-06-14
Posts: 32
Posted: Thu, 2005-03-17 23:24

Hi I've just upgraded from Alpha > Beta (downloaded the code tonight) and the upgrade went very smoothly but I get this error when trying to load the gallery. Any ideas on the problem please as there are over 1200 images in the gallery which will be a major pain to reload

website is http://www.thelewiss.co.uk/G2/ and admin access can be granted if necessary

regards
Kev Lewis

Error (ERROR_MISSING_OBJECT) :
in modules/core/classes/GalleryStorage/DatabaseStorage.class at line 379 (gallerystatus::error)
in modules/core/classes/GalleryStorage.class at line 113 (mysqldatabasestorage::loadentities)
in modules/core/classes/helpers/GalleryEntityHelper_simple.class at line 82 (gallerystorage::loadentities)
in modules/core/classes/GalleryCoreApi.class at line 2042 (galleryentityhelper_simple::loadentitiesbyid)
in modules/imageblock/classes/ImageBlockHelper.class at line 212 (gallerycoreapi::loadentitiesbyid)
in modules/imageblock/classes/ImageBlockHelper.class at line 86 (imageblockhelper::_addblock)
in modules/imageblock/module.inc at line 123 (imageblockhelper::loadimageblocks)
in modules/core/classes/GalleryLayout.class at line 711 (imageblockmodule::loadsystemcontent)
in layouts/matrix/layout.inc at line 263 (matrixlayout::loadlayouttemplate)
in layouts/matrix/layout.inc at line 155 (matrixlayout::_loadalbumtemplate)
in modules/core/ShowItem.inc at line 136 (matrixlayout::loadtemplate)
in modules/core/classes/GalleryView.class at line 246 (showitemview::loadtemplate)
in main.php at line 286 (showitemview::doloadtemplate)
in main.php at line 46
in main.php at line 39----

Gallery URL (optional):
Gallery version:
Webserver (with version):
Datatabase (with version):
PHP version (eg 4.2.1):
phpinfo URL (optional):
Graphics Toolkit(s):
Operating system:
Web browser/version:
G1 version (for migration bugs):

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-18 00:02

maybe delete the contents of the g2_ImageBlockCacheMap table.. (it's just a cache.. ok to delete).

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Fri, 2005-03-18 00:13

Thanks for the quick response mindless

Contents of the table deleted, same error message :-(

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Fri, 2005-03-18 11:08

Any other fixes I can try? before I have to start from scratch again

bump

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Sat, 2005-03-19 10:13

can I run any tests that will help get this problem fixed?

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2005-03-19 17:35

well, you can disable imageblock module.. or try again logged in as admin and the error msg should show the id that is missing.. you can look in the db and try to figure out what it is.. look in README.html for direct links to login/site admin if needed.

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Sat, 2005-03-19 23:14

Hi mindless thank you for coming back to check again.

The error occurs immediately I load the main page http://www.thelewiss.co.uk/G2/ and I don't get any login options available. I have run the gallery in debug mode and the file can be found here.

http://www.thelewiss.co.uk/G2/debug.txt

The smarty debug detail is as follows and does highlight the error:

Smarty Debug Console
included templates & config files (load time in seconds):
gallery:templates/global.tpl (0.29593) (total)
gallery:templates/errorHead.tpl (0.00105)
gallery:templates/errorBody.tpl (0.23177)
gallery:templates/debug.tpl (0.22934)
gallery:templates/debug.tpl (0.05841)
assigned template variables:
{$SCRIPT_NAME} /G2/main.php
{$head} Array (1)
tpl => Array (1)
templates/errorHead.tpl => modules_core
{$l10Domain} modules_core
{$main} Array (9)
isAdmin =>
error => Array (1)
stackTrace => Error (ERROR_MISSING_OBJECT) : <UL><...
viewBodyFile => templates/errorBody.tpl
viewL10Domain => modules_core
debug => file_exists(/home/kevin/public_html/G...
markupType => bbcode
validationUri => http%3A%2F%2Fwww.thelewiss.co.uk%2FG2...
isRightToLeft =>
gallery => Array (1)
version => 2.0-beta-1
{$tpl} templates/errorHead.tpl
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)

Where can I find the config file that will allow me to turn the imageblock module off if I manually modify it?

regards

Kev

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Sat, 2005-03-19 23:19

.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Sun, 2005-03-20 17:08

Hrm.

Ok, try browsing to http://www.thelewiss.co.uk/G2/main.php?g2_view=core:SiteAdmin&g2_subView=core:AdminModules

That should give you the modules page where you should try to deactivate then uninstall the imageblock module. If it gives you a permission denied, then go to this url:
http://www.thelewiss.co.uk/G2/main.php?g2_view=core:UserAdmin&g2_subView=core:UserLogin

and log in, then go back to the first url. Both of these urls will bypass the imageblock module so you should be able to log in and uninstall the module.

After imageblock is gone, you can try reinstalling and reactivating it to see if it works properly from a fresh install...

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2005-03-20 17:13

(both those links are in README.html which is why I pointed you to that file.....)

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Thu, 2005-03-24 21:52

Ok mindless, deactivating the module and uninstalling it brought the gallery back to life *phew*

When I re-activate it the random image the gallery behaves ok and displays the image. BUT if I select the newest and most viewed images to add to the random image the gallery locks up with the same original error? A possible bug in the upgrade from alpha to beta? or down to me?

I'm sorry I missed the links in the readme :-(

 
klewis

Joined: 2004-06-14
Posts: 32
Posted: Fri, 2005-03-25 15:05

I was finding more broken links in the gallery so I've gone for a clean install. Thank you for your support mindless.