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 - It was originally embedded in Joomla 1.5, but now I can't even get it work as a standalone.
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 |

Posts: 9281
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
Posts: 8
Thanks.
When I try to manually login, I get this error:
Here is my list of modified files:
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.
Posts: 9281
G3 isn't ready for prime time yet. Don't do that.
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
Posts: 8
Thanks, nivekiam - I'm looking into that now.
Posts: 8
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:
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.
Posts: 9281
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
Posts: 8
When I tried to login manually, I got this error
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.
Posts: 9281
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
Posts: 8
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.
Posts: 9281
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
Posts: 8
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.
Posts: 9281
Just make a backup of your DB before editing it :D
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 8
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.