Gallery 2.3 upgrade results in (ERROR_MISSING_OBJECT)

boylan

Joined: 2009-07-03
Posts: 8
Posted: Fri, 2009-07-03 07:13

I cannot login or view my gallery after attempting an upgrade from 2.3 RC2 to 2.3. I have tried to go direct to the admin link, but my login/password combo doesn't seem to be working and I can't reset it because its asking me to fill out a captcha I can't see.

You can see my gallery, and it's debugging and error messages at http://chrisboylan.com/gallery2/main.php

Here is the error:

Quote:
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 313 (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/matrix/theme.inc at line 65 (GalleryTheme::loadCommonTemplateData)
* in modules/core/classes/GalleryTheme.class at line 932 (MatrixTheme::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

It was originally embedded in Joomla 1.5, but now I can't even get it work as a standalone.


Gallery version (not just "2"): upgraded 2.3 rc2 to 2.3
PHP version (e.g. 5.1.6): 5.2.8
PHPInfo Link (see FAQ): http://chrisboylan.com/gallery2/phpinfo-DELETEME.php
Webserver (e.g. Apache 1.3.33): 2.2.10
Database (e.g. MySql 5.0.32): 4.1.22
Activated toolkits (e.g. NetPbm, GD): Thumbnail, NetPbm, GD
Operating system (e.g. Linux): Linux - CentOS
Browser (e.g. Firefox 2.0): FF 3.5

I have searched quite a bit so far and tried a few solutions that have been suggested, to no avail.

Other weirdness is that the upgrading process keeps finding 108 modified files during the integrity check. I have downloaded 2.3 from this site multiple times and re-uploaded the entire directory, but the number of modified files never changes.

Any suggestions? It's really late here, so I may not respond til the morning - but I will be checking back here and posting if I find a solution.

Thanks.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Fri, 2009-07-03 17:48

Post a list of the modified files.

Can you login directly like so:
FAQ: = How to manually login

Have you gone through these other FAQs for login issues:
FAQ: I can't login anymore, what can I do now?

You can try resetting the admin password by going to www.example.com/gallery2/lib/support the password for that page is in your config.php file

____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Fri, 2009-07-03 19:19

Thanks.

When I try to manually login, I get this error:

Quote:
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Back to the Gallery
Error Detail -
Error (ERROR_REQUEST_FORGED)

* in modules/core/classes/GalleryController.class at line 239 (GalleryCoreApi::error)
* in main.php at line 243 (GalleryController::assertIsGenuineRequest)
* in main.php at line 104
* in main.php at line 88

Here is my list of modified files:

Quote:
install/po/af.po
install/po/ar.po
install/po/bg.po
install/po/ca.po
install/po/cs.po
install/po/da.po
install/po/de.po
install/po/el.po
install/po/en_GB.po
install/po/es.po
install/po/eu.po
install/po/fi.po
install/po/fr.po
install/po/hu.po
install/po/it.po
install/po/ja.po
install/po/ko.po
install/po/lt.po
install/po/lv.po
install/po/nl.po
install/po/no.po
install/po/pl.po
install/po/ro.po
install/po/ru.po
install/po/sk.po
install/po/sr.po
install/po/strings.raw
install/po/sv.po
install/po/tr.po
install/po/uk.po
install/po/vi.po
install/po/zh_CN.po
install/po/zh_TW.po
install/steps/DatabaseSetupStep.class
lib/adodb/adodb-perf.inc.php
lib/adodb/drivers/adodb-oci8.inc.php
lib/bbcode/stringparser.class.php
lib/bbcode/stringparser_bbcode.class.php
lib/smarty/README
lib/smarty/Smarty_Compiler.class.php
lib/smarty/internals/core.process_compiled_include.php
lib/smarty/plugins/modifier.regex_replace.php
lib/smarty/plugins/outputfilter.trimwhitespace.php
lib/tools/po/GNUmakefile.inc
locale/bg/LC_MESSAGES/gallery2_install.mo
locale/bg/LC_MESSAGES/gallery2_upgrade.mo
locale/cs/LC_MESSAGES/gallery2_install.mo
locale/de/LC_MESSAGES/gallery2_install.mo
locale/de/LC_MESSAGES/gallery2_upgrade.mo
locale/el/LC_MESSAGES/gallery2_install.mo
locale/es/LC_MESSAGES/gallery2_install.mo
locale/es/LC_MESSAGES/gallery2_upgrade.mo
locale/fi/LC_MESSAGES/gallery2_install.mo
locale/fr/LC_MESSAGES/gallery2_install.mo
locale/fr/LC_MESSAGES/gallery2_upgrade.mo
locale/it/LC_MESSAGES/gallery2_install.mo
locale/it/LC_MESSAGES/gallery2_upgrade.mo
locale/ja/LC_MESSAGES/gallery2_install.mo
locale/ja/LC_MESSAGES/gallery2_upgrade.mo
locale/nl/LC_MESSAGES/gallery2_install.mo
locale/nl/LC_MESSAGES/gallery2_upgrade.mo
locale/no/LC_MESSAGES/gallery2_install.mo
locale/no/LC_MESSAGES/gallery2_upgrade.mo
locale/pl/LC_MESSAGES/gallery2_install.mo
locale/pl/LC_MESSAGES/gallery2_upgrade.mo
locale/ru/LC_MESSAGES/gallery2_install.mo
locale/ru/LC_MESSAGES/gallery2_upgrade.mo
locale/sr/LC_MESSAGES/gallery2_install.mo
locale/sv/LC_MESSAGES/gallery2_install.mo
locale/sv/LC_MESSAGES/gallery2_upgrade.mo
locale/tr/LC_MESSAGES/gallery2_install.mo
locale/uk/LC_MESSAGES/gallery2_install.mo
upgrade/po/af.po
upgrade/po/ar.po
upgrade/po/bg.po
upgrade/po/ca.po
upgrade/po/cs.po
upgrade/po/da.po
upgrade/po/de.po
upgrade/po/el.po
upgrade/po/en_GB.po
upgrade/po/es.po
upgrade/po/eu.po
upgrade/po/fi.po
upgrade/po/fr.po
upgrade/po/hu.po
upgrade/po/it.po
upgrade/po/ja.po
upgrade/po/ko.po
upgrade/po/lt.po
upgrade/po/lv.po
upgrade/po/nl.po
upgrade/po/no.po
upgrade/po/pl.po
upgrade/po/ro.po
upgrade/po/ru.po
upgrade/po/sk.po
upgrade/po/sr.po
upgrade/po/strings.raw
upgrade/po/sv.po
upgrade/po/tr.po
upgrade/po/uk.po
upgrade/po/vi.po
upgrade/po/zh_CN.po
upgrade/po/zh_TW.po
upgrade/steps/SystemChecksStep.class
upgrade/steps/WelcomeStep.class
upgrade/templates/Welcome.html

At this point, I'm wiling to do anything, like migrate to the Gallery 3 beta - but I don't want to lose my descriptions, titles and summaries. And I can't import anything to Gallery 3 without a working Gallery 2.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Fri, 2009-07-03 19:34

G3 isn't ready for prime time yet. Don't do that.

Quote:
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Looking at your phpinfo again, looks like session.save_path doesn't have any value. Make sure that's set to a temp directory that your PHP process has read/write access to.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Fri, 2009-07-03 20:37

Thanks, nivekiam - I'm looking into that now.

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Mon, 2009-07-06 07:41

OK, that took awhile, but I upgraded to PHP 5.2.9 and did some other server house-cleaning as well. I edited php.ini to set session.save_path to /tmp.

However, the problem still persists.

From some of the other threads of people with a similar problem, they were told they had a problem with the guest user, and had to re-enter it into the proper tables for users and groups and the mapping between them. I looked and that seems to be setup properly for me, but I am willing to look at that further if anyone has any suggestions.

In addition, I have another site on the same server that has been dumping files into the /tmp directory and not deleting them. At one point, the /tmp directory even filled up. I have had to go into the /tmp directory and delete thousands of files that are named something like "4670.inc0AUIN9" and contain text similar to this example:

Quote:
modules/core/classes/GalleryDerivativeImage.class|O:22:"GalleryDerivativeImage":21:{s:5:"width";i:150;s:6:"height";i:100;s:18:"derivativeSourceId";i:4669;s:20:"derivativeOperations";s:1s";s:13:"thumbnail|150";s:15:"derivativeOrder";i:0;s:14:
"derivativeSize";i:5555;s:14:"derivativeType";i:1;s:8:"mimeType";s:10:"image/jpeg";s:20:"postFilterOperations";N;s:8:"isBroken";i:0;s:8:"parentId";i:4669;s:2:
"id";i:4670;s:17:"creationTimestamp";i:1229398594;s:10:"isLinkable";i:0;s:6:"linkId";N;s:12:"linkedEntity";N;s:21:"modificationTimestamp";i:1229398594;s:12:
"serialNumber";i:2;s:10:"entityType";s:22:"GalleryDerivativeImage";s:14:"onLoadHandlers";N;s:17:"_persistentStatus";a:2:{s:5:"flags";i:0;s:13:"originalValue";a:19:
{s:5:"width";i:150;s:6:"height";i:100;s:18:"derivativeSourceId";i:4669;s:20:"derivativeOperations";s:13:"thumbnail|150";s:15:"derivativeOrder";i:0;s:14:
"derivativeSize";i:5555;s:14:"derivativeType";i:1;s:8:"mimeType";s:10:"image/jpeg";s:20:"postFilterOperations";N;s:8:"isBroken";i:0;s:8:"parentId";i:4669;s:2:
"id";i:4670;s:17:"creationTimestamp";i:1229398594;s:10:"isLinkable";i:0;s:6:"linkId";N;s:21:"modificationTimestamp";i:1229398594;s:12:"serialNumber";i:2;s:10:
"entityType";s:22:"GalleryDerivativeImage";s:14:"onLoadHandlers";N;}}}

The version dumping the files in the /tmp folder is 2.2.2 - but I'm afraid to upgrade it to 2.3 until I fix this first problem.

Thanks.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Mon, 2009-07-06 19:36

Are you able to log in manually now?

Can you PM me login details so I can try taking a closer look?
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Mon, 2009-07-06 19:53

When I tried to login manually, I got this error

Quote:
Your change cannot be completed due to a loss of session data. Please try again. If it still doesn't work, try logging out and logging back in.

Back to the Gallery
Error Detail -
Error (ERROR_REQUEST_FORGED)

* in modules/core/classes/GalleryController.class at line 239 (GalleryCoreApi::error)
* in main.php at line 243 (GalleryController::assertIsGenuineRequest)
* in main.php at line 104
* in main.php at line 88

However, I could login when I used an old bookmark to a page in the site admin, and I used the regular user login form. I can access the admin section, but the gallery still errors out the same if I'm logged in or not.

I've sent you most of this in the PM, along with the login and password, but I wanted to update the thread if other people come upon it later with the same problem.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Mon, 2009-07-06 20:09

Digging around it looks like you may have to dig into the database to fix this:
http://www.google.com/search?domains=gallery.menalto.com&sitesearch=gallery.menalto.com&q=ERROR_MISSING_OBJECT

http://gallery.menalto.com/node/38916

http://gallery.menalto.com/node/32741

ItemID 7 isn't there or something is corrupt in the database.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Mon, 2009-07-06 21:18

Thanks!

ItemID 7 appears to be the root gallery itself - where did you see that 7 was the part causing the error? I've skimmed through the debugging a few times and nothing ever popped out at me.

Anyway, I'm poking around the DB to see if I can see what went wrong.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Mon, 2009-07-06 21:28

It's in the debug and I was able to login manually and go to Site Admin > Event Log
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Mon, 2009-07-06 21:38

Wow - I can't believe I missed that. I never checked the Event Logs, which would have helped immeasurably. Thanks for pointing me in the right direction. I'll post again when I figure this out or I hit another wall.

Login or register to post comments
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 9281
Posted: Mon, 2009-07-06 21:45

Just make a backup of your DB before editing it :D
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here

Login or register to post comments
boylan

Joined: 2009-07-03
Posts: 8
Posted: Tue, 2009-07-07 00:51

Found it and fixed it! Thanks, nivekiam! Basically, the user that was the owner of the main gallery and some other items got deleted somehow. If this happens for someone else, you can try this MySQL query:

SELECT *
FROM `g2_Item`
WHERE g_ownerId NOT IN (
SELECT g_id
FROM `g2_User`
)

which I found here: http://gallery.menalto.com/node/84670

If that query is run, it will display all items that have an owner that doesn't exist in the user table. From there, I just had to modify those returned items to make my admin user the owner of them on phpMyAdmin, and everything is back to normal!

Again, much thanks to you, nivekiam - for following this problem with me over the weekend and prodding me in the right direction. Your help was invaluable.

You can see the fixed gallery running at http://chrisboylan.com/gallery - I've reintegrated it into my Joomla installation.

Login or register to post comments