Error after updating 2.0-a4 to latest night release

flasht

Joined: 2004-08-30
Posts: 53
Posted: Tue, 2005-01-25 07:51

I just updated my galery2 to 0.8.11 or something like that... but... now i cant view the pictures with comments :(

I got those errors:

Quote:
Error Detail -
Error (ERROR_MISSING_OBJECT) :
in .\modules\core\classes\GalleryStorage\DatabaseStorage.class at line 1633 (gallerystatus::error)
in .\modules\core\classes\GalleryStorage\DatabaseStorage.class at line 299 (mysqldatabasestorage::_describeentitymembers)
in .\modules\core\classes\GalleryStorage.class at line 113 (mysqldatabasestorage::loadentities)
in .\modules\core\classes\helpers\GalleryEntityHelper_simple.class at line 89 (gallerystorage::loadentities)
in .\modules\core\classes\GalleryCoreApi.class at line 2101 (galleryentityhelper_simple::loadentitiesbyid)
in .\modules\comment\classes\GalleryCommentHelper.class at line 100 (gallerycoreapi::loadentitiesbyid)
in .\modules\comment\module.inc at line 214 (gallerycommenthelper::fetchcomments)
in .\modules\core\classes\GalleryLayout.class at line 555 (commentmodule::loaditemdetails)
in .\layouts\matrix\layout.inc at line 454 (matrixlayout::loadlayouttemplate)
in .\layouts\matrix\layout.inc at line 152 (matrixlayout::_loadsingletemplate)
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

 
flasht

Joined: 2004-08-30
Posts: 53
Posted: Wed, 2005-01-26 07:14

So there is nothing i can do?

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-01-26 20:30

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).

 
flasht

Joined: 2004-08-30
Posts: 53
Posted: Wed, 2005-01-26 21:37

Ok... here are the problems:

Viewing pictures with comments:
http://debug.theweed.org/comments.htm

Registration:
http://debug.theweed.org/registration.htm

Help :(

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-01-26 22:38

try deactivating and reactivating the comments module.. does that help?

 
flasht

Joined: 2004-08-30
Posts: 53
Posted: Wed, 2005-01-26 22:53
mindless wrote:
try deactivating and reactivating the comments module.. does that help?

Ok... helped with registration and pictures with comments... thanx! But... still got a problem with view all comments function. Maybe im doing something wrong?

1. I'm entering gallery.
2. Selecting album that contains commented pictures.
3. Clicking on the left menu "view comments"

And it says that no comments available for this item...

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Wed, 2005-01-26 23:23

bharat may not understand your question.
In G2 you can comment on a photo or on the album.
Clicking "view comments" while viewing the album shows all comments for that album, I think... you are asking to see all comments on all photos that are in that album, right?

 
flasht

Joined: 2004-08-30
Posts: 53
Posted: Wed, 2005-01-26 23:34
mindless wrote:
bharat may not understand your question.
In G2 you can comment on a photo or on the album.
Clicking "view comments" while viewing the album shows all comments for that album, I think... you are asking to see all comments on all photos that are in that album, right?

Yes.

 
trungdong

Joined: 2003-08-22
Posts: 22
Posted: Thu, 2005-01-27 00:14

I have the similar problem, but mine is worse because I can't access anything.
Can somebody can take a look at my site: http://www.donggiang.com/photos/main.php
Cheers,

Dong.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-27 00:25

access photos/upgrade on your site and run though that process. it you still have errors you'll need to deactivate and reactivate randomhighlight module.

 
trungdong

Joined: 2003-08-22
Posts: 22
Posted: Thu, 2005-01-27 08:21

Thank you for your help! However, the problem is that I can't access any thing incl. admin functions. Therefore, I cannot deativate any module.
I ran the Upgrade wizard but at the Upgrade other modules step, all the module names displayed are User Album. Maybe there is a bug in the Upgrade code.
Cheers,

Dong.

 
trungdong

Joined: 2003-08-22
Posts: 22
Posted: Thu, 2005-01-27 11:21

To update:
I've just installed the new night release. The upgrade process finished successfully. No more abnormality this time. However, the problem is still the same. I cannot access any page to config my gallery further.
Cheers,

Dong.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-27 17:50

trungdong, the upgrade did help.. you can now go here to login and then here to deactivate/reactivate the randomhighlight module.

 
trungdong

Joined: 2003-08-22
Posts: 22
Posted: Thu, 2005-01-27 19:15

Thanks a lot! Things look brighter now. However, it is required that I disable Random Highlight in 4 of my albums. I use the button provided `Reset all albums' but it fails (see debug msgs here).

I'm thinking of disable Random in each album individually but I don't know the link to the Setting page of an album. Can it be done modifying data in the database?
Cheers,

Dong.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-27 20:41

yes, that might be your best bet at this point.
look in your g2_Entity table and find g_entityType = 'RandomHighlightDerivativeImage'
change all those to 'GalleryDerivativeImage'
then go to lib/tools/test/index.php in your browser and do the FlushCache test.
now you should be able to deactivate/reactivate.

 
trungdong

Joined: 2003-08-22
Posts: 22
Posted: Thu, 2005-01-27 21:15

Thank you very much, mindless!
The problem is solved now.

Dong.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-01-27 21:37

cool... now we just need bharat to fix the upgrade bug so this won't happen to others!