[SOLVED] Error (ERROR_MISSING_OBJECT) :

CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Fri, 2005-02-04 02:14

I changed the setting for inheritance of layout in the site admin to "Use these Settings" and immediately had a crash. Now it appears hosed. Did I find a bug? Can I change the setting back manually in the database?

Errors follow:

Error Detail -
Error (ERROR_MISSING_OBJECT) :

* in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 592 (MatrixLayout::error)
* in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 297 (MatrixLayout::_getOrderInfo)
* in modules/core/classes/helpers/GalleryChildEntityHelper_simple.class at line 189 (MatrixLayout::_fetchChildItemIds)
* in modules/core/classes/GalleryCoreApi.class at line 2176 (MatrixLayout::fetchChildItemIds)
* in layouts/matrix/layout.inc at line 261 (MatrixLayout::fetchChildItemIds)
* in layouts/matrix/layout.inc at line 150 (MatrixLayout::_loadAlbumTemplate)
* in modules/core/ShowItem.inc at line 124 (MatrixLayout::loadTemplate)
* in modules/core/classes/GalleryView.class at line 246 (ShowItemView::loadTemplate)
* in main.php at line 257 (ShowItemView::doLoadTemplate)
* in main.php at line 46
* in main.php at line 39

System Information
Gallery version 2.0-alpha-4+
PHP version 5.0.3 apache2handler
Webserver Apache/2.0.52 (FreeBSD) PHP/5.0.3
Database mysqlt 4.1.8a
Toolkits NetPBM, ImageMagick, Gd
Operating system FreeBSD mrburns.greenfam.org 5.3-RELEASE-p4 FreeBSD 5.3-RELEASE-p4 #0: Tue Jan 11 14:10:41 CST 2005

:/usr/obj/usr/src/sys/mrburns i386
Browser Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

--

Gallery URL (optional): http://ftp.greenfam.org/gallery2
Gallery version: CVS 2005-02-02
Webserver (with version): Apache 2.0.52
Datatabase (with version): mySQL 4.1
PHP version (eg 4.2.1): 5.0.3
phpinfo URL (optional): http://ftp.greenfam.org/test.php
Graphics Toolkit(s): gd, netpbm, imagemagick
Operating system: FreeBSD 5.3
Web browser/version: Firefox 1.0

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Fri, 2005-02-04 02:18
 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Fri, 2005-02-04 02:19

Smarty Debug Console
included templates & config files (load time in seconds):
gallery:templates/global.tpl (0.01342) (total)
gallery:templates/errorHead.tpl (0.00174)
gallery:templates/errorBody.tpl (0.00498)
assigned template variables:
{$SCRIPT_NAME} /gallery2/main.php
{$form} Array (1)
formName => empty
{$head} Array (1)
tpl => Array (1)
templates/errorHead.tpl => modules_core
{$l10Domain} modules_core
{$main} Array (8)
isAdmin => 1
error => Array (9)
stackTrace => Error (ERROR_MISSING_OBJECT) : <UL><...
phpversion => 5.0.3
php_uname => FreeBSD mrburns.greenfam.org 5.3-RELE...
php_sapi_name => apache2handler
webserver => Apache/2.0.52 (FreeBSD) PHP/5.0.3
browser => Mozilla/5.0 (Windows; U; Windows NT 5...
dbType => mysqlt
dbVersion => 4.1.8a
toolkits => NetPBM, ImageMagick, Gd
viewBodyFile => templates/errorBody.tpl
viewL10Domain => modules_core
markupType => bbcode
validationUri => http%3A%2F%2Fftp.greenfam.org%2Fgalle...
isRightToLeft =>
gallery => Array (1)
version => 2.0-alpha-4+
{$status} Array (0)
{$tpl} templates/errorHead.tpl
assigned config file variables (outer template scope):
{#files#} Array (0)
{#vars#} Array (0)

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Fri, 2005-02-04 02:24

I managed to get into the admin through a direct url and changed the setting back. This did not fix the error. Any other ideas?

Chris Green

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Sun, 2005-02-06 03:41

Could really use some ideas here. Anyone???

Chris

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Tue, 2005-02-08 23:32

Sorry, I was out of town for a few days.

This is a strange problem. We need to know a little more. First thing to figure out is if this is a problem in the database or in the cache. Try deleting everything under g2data/cache (but not that directory itself) and see if the problem still manifests. If it still doesn't work, then try updating to the latest code from CVS and see if that fixes it. If that doesn't fix it, then let's try running it in debug mode and seeing what more information we can get.

Edit your config.php and turn on buffered debug mode like this:

$gallery->setDebug('buffered');

Then try again. This time, you'll get quite a lot of debug output
when you get the error. Look towards the bottom of the debug output
and scan backwards for anything that looks like an error, then report
that here. Usually that will give us enough information to work with.
If you can't understand what you're seeing, err on the side of posting
more info. If it's going to be more than 30-40 lines of output, you
should save it into a text file and publish it on your own website and
post a link to it here (so that the forum remains readable).

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Wed, 2005-02-09 00:02

I hate to admit it, but I fought with it for hours and finally wiped it out. :| I was having a ton of toruble trying to get it runnign again from scratch. I will give it a shot again and try to reproduce it.

Chris Green

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Wed, 2005-02-09 01:07

Amazing... Completely reproduced it in 30 seconds. I loaded gallery fresh and went into layouts and themes. I selected my standard settings (Title, Descending) and selected that child objects "use these settings" to disable inheritance. I saved it and went back to the gallery. Crash.

This is runnign latest CVS as of 20 minutes ago....

Complete output at:

http://ftp.greenfam.org/error-2005-02-08.txt

Thanks!
Chris Green

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-09 04:03

wow, i'm amazed no one hit this before now...
the bug has nothing to do with the "use these settings" choice, but the sort choice.. when i added the "presort" thing i introduced a bug if you don't pick a presort. fix is on the way!

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-09 04:22

ok, update from cvs in a few hours or get tomorrow's nightly snapshot. thanks for the catch!

 
virshu
virshu's picture

Joined: 2003-09-13
Posts: 314
Posted: Wed, 2005-02-09 05:21

mindless, ouch, and I was wondering why my unit tests suddenly started failing on getOrderInfo()... I didn't realize (or didn't connect) that I set no presort!

NOTE: You need to re-save layout settings for the fix to take effect!

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Wed, 2005-02-09 05:45

I wish I hadn't deleted all my work out of frustration! I had the sort order set prior to upgrading to CVS a few weeks ago. I think this was the first time i had changed any option on this page since upgrading to CVS. DOH!

Chris Green

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Wed, 2005-02-09 14:37

I pulled down CVS this morning and there was no change. Bigger bug than anticipated?

Chris Green

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-02-09 15:51

no, the entire fix was changing "isset" to "!empty"
did you get rev 1.33 of modules/core/AdminLayouts.inc ? if not, then anonymous cvs must be extra slow today..

 
CGreenTX

Joined: 2004-12-20
Posts: 51
Posted: Wed, 2005-02-09 19:40

It fixed it. I had to dig up a url to get directly to site admin and change, then re-adjust the settings. Why do I always find the obscure bugs? :P

Chris