Testing 3.07 to resolve Guest and/or ERROR_MISSING_OBJECT issues in WPG2 3.05/6

ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-05-06 23:58

For everyone is has been experiencing the following:

Here's the error from G2: Error (ERROR_MISSING_OBJECT) or Guest security errors..

If you are experiencing these problems please download the 3.07 build

NOTE: 3.07 be released, when the roadmap is finished..

Should you continue to have errors can you please install the Debug Log Viewer and post the log (or PM me it if you want)
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
risky1

Joined: 2005-03-23
Posts: 14
Posted: Wed, 2008-05-21 22:06

Hello,

I have followed all of the instruction and have uploaded and activated the 3.07 build and still have the same issues. I am running WP 2.5.1

here is what I get on the front page of my wordpress once i activate the WPG2 plugin.

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)
in /home/jared/www/jaredminnick/wp-content/plugins/wpg2/wpg2embed.inc at line 468 (GalleryCoreApi::error)
in /home/jared/www/jaredminnick/wp-content/plugins/wpg2/wpg2embed.inc at line 231
in /home/jared/www/jaredminnick/wp-content/plugins/wpg2/wpg2embed.inc at line 111
in /home/jared/www/jaredminnick/wp-content/plugins/wpg2/wpg2functions.inc at line 523
in ??? at line 0
in /home/jared/www/jaredminnick/wp-includes/plugin.php at line 311
in /home/jared/www/jaredminnick/wp-includes/general-template.php at line 866
in /home/jared/www/jaredminnick/wp-content/themes/paalam-11/header.php at line 17
in /home/jared/www/jaredminnick/wp-includes/theme.php at line 472
in /home/jared/www/jaredminnick/wp-includes/general-template.php at line 8
in /home/jared/www/jaredminnick/wp-content/themes/paalam-11/index.php at line 1
in /home/jared/www/jaredminnick/wp-includes/template-loader.php at line 24
in /home/jared/www/jaredminnick/wp-blog-header.php at line 20
in /home/jared/www/jaredminnick/index.php at line 4

I get similar errors in the configuartion settings under G2 rewrite" "WPG3 Tags" and "sidebar block". I do not have any issues with going to my gallery install and looking at usres as others have suggested.

when i install the debug plugin as discussed above for some reason the only plugins that are available after i activate the bluetrait event viewer are are the askimet and the event viewer itself, so i cant get the event logs.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-05-22 03:11

Hiya risky1,

Thanks for that, I should not be exposing an error message when WPG2 is looking for users by email addresses.. I would and could return nothing.. Will fix that up shortly..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-05-25 03:22

I believe I have fixed this, the issue turned out to be a little more complex that I thought.. Just download the updated version from the top of this thread..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ptwiggens

Joined: 2008-05-20
Posts: 4
Posted: Mon, 2008-05-26 21:13

Using the new one:

Quote:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)
in /home/xxxxxxxx/public_html/xxxxxx/wp-content/plugins/wpg2/wpg2embed.inc at line 472 (gallerycoreapi::error)
in /home/xxxxxxxx/public_html/xxxxxx/wp-content/plugins/wpg2/wpg2embed.inc at line 231
in /home/xxxxxxxx/public_html/xxxxxx/wp-content/plugins/wpg2/wpg2embed.inc at line 110
in /home/xxxxxxxx/public_html/xxxxxx/wp-content/plugins/wpg2/wpg2functions.inc at line 523
in ??? at line 0
in /home/xxxxxxxx/public_html/xxxxxx/wp-includes/plugin.php at line 311
in /home/xxxxxxxx/public_html/xxxxxx/wp-includes/general-template.php at line 866
in /home/xxxxxxxx/public_html/xxxxxx/wp-content/themes/mandigo/header.php at line 122
in /home/xxxxxxxx/public_html/xxxxxx/wp-includes/theme.php at line 472
in /home/xxxxxxxx/public_html/xxxxxx/wp-includes/general-template.php at line 8
in /home/xxxxxxxx/public_html/xxxxxx/wp-content/themes/mandigo/index.php at line 4
in /home/xxxxxxxx/public_html/xxxxxx/wp-includes/template-loader.php at line 24
in /home/xxxxxxxx/public_html/xxxxxx/wp-blog-header.php at line 20
in /home/xxxxxxxx/public_html/xxxxxx/index.php at line 4

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-05-27 06:47

Is your email address blank? Because that would be the only way this would fail like that..
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tchaouwww

Joined: 2008-05-26
Posts: 1
Posted: Tue, 2008-05-27 12:35

I got exactly the same errors messages with WPG2 3.07 and Wordpress 2.5.1 :-(

Which email address do you mention above ?

Regards.

 
ptwiggens

Joined: 2008-05-20
Posts: 4
Posted: Tue, 2008-05-27 22:58
ozgreg wrote:
Is your email address blank? Because that would be the only way this would fail like that...

No... I've tried on multiple accounts and all of them have email addresses.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-05-28 03:06

Sorry but I just cannot reproduce this issue, the code works flawlessly when looking up email accounts.. The issue has to be in the way your email accounts are being setup in Wordpress..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
joeboy

Joined: 2008-04-06
Posts: 7
Posted: Tue, 2008-06-03 19:15

I have the same problem after installing 2.51 and 3.07.

Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)
in /home/hunterju/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 472 (GalleryCoreApi::error)
in /home/hunterju/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 231
in /home/hunterju/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 110
in /home/hunterju/public_html/wp-content/plugins/wpg2/wpg2functions.inc at line 523
in ??? at line 0
in /home/hunterju/public_html/wp-includes/plugin.php at line 311
in /home/hunterju/public_html/wp-includes/general-template.php at line 866
in /home/hunterju/public_html/wp-content/themes/revolution_sports-20/header.php at line 49
in /home/hunterju/public_html/wp-includes/theme.php at line 472
in /home/hunterju/public_html/wp-includes/general-template.php at line 8
in /home/hunterju/public_html/wp-content/themes/revolution_sports-20/home.php at line 1
in /home/hunterju/public_html/wp-includes/template-loader.php at line 24
in /home/hunterju/public_html/wp-blog-header.php at line 20
in /home/hunterju/public_html/index.php at line 4

The problem occurs when an existing Wordpress User, who was a user prior to Gallery2 being installed, attempts to login. I checked the Wordpress DB and all of the emails are fine. No email exists in the Gallery2 DB, since that DB was only recently installed.

New users who register have no problem with the login and can access both DBs. Is this a design problem with WPG2? or should it work??. Since I have over 3,000 users in this category, I am having a problem here. I can correct the login by manually adding the user to Gallery2, but I don't think I can last through thousands. Any suggestions?

Help

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-06-03 22:32

All,

Anyone getting, wpg2embed.inc at line 472 (GalleryCoreApi::error).. The issue is your email addresses has special characters, typically a + or something like that which must be treated a special way. Depending on time I may just detect special characters and not do the secondary lookup by email address (most likely for 3.07) and see if I can apply a broader fix for WPG2 3.10 to encode the special characters in such a way that I can still use the email address to search with..

normal plain email address do not have this issue which is why I cannot reproduce this..

For now change line 231 of wpg2embed.inc so it looks like // list ($ret, $g2user ) = g2_fetchUserByUserEmail($usercap->user_email);

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
joeboy

Joined: 2008-04-06
Posts: 7
Posted: Wed, 2008-06-04 01:33

Hi Ozreg:

The following error occurs with Wordpress 2.51 and WPG2 3.07 when you try and add a user to Wordpress using the Admin user function.

Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)
in /home/hunterju/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 472 (GalleryCoreApi::error)
in /home/hunterju/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 231
in ??? at line 0
in /home/hunterju/public_html/wp-includes/plugin.php at line 311
in /home/hunterju/public_html/wp-includes/registration.php at line 201
in /home/hunterju/public_html/wp-admin/includes/user.php at line 135
in /home/hunterju/public_html/wp-admin/includes/user.php at line 17
in /home/hunterju/public_html/wp-admin/admin-ajax.php at line 439

The user is added to Wordpress but not to Gallery2.

Thoughts???

 
joeboy

Joined: 2008-04-06
Posts: 7
Posted: Wed, 2008-06-04 01:52

[For now change line 229 of wpg2embed.inc so it looks like // list ($ret, $g2user ) = GalleryCoreApi::fetchUserByUsername($usercap->user_login);

]

That is what it reads now wheb I get the error

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Wed, 2008-06-04 01:59

Actually it is line 231 -> // list ($ret, $g2user ) = g2_fetchUserByUserEmail($usercap->user_email); You must have seen the other post before I changed it...
____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
tbille

Joined: 2008-06-05
Posts: 4
Posted: Thu, 2008-06-05 16:12

I do have the same problem with an upgraded WP 2.51 / WGP2 3.07 installation (with the fix you mentioned above). This used to work before the upgrade from 2.33. The problem is directly related to

Themed Login and Register 1.1
This plugin creates custom login and register pages to replace the wp-login and wp-register pages. This plugin writes a few options to your database, if you’d like to remove this data, check the appropriate box in the "Login Register Options" menu above before deactivating this plugin. By James Kelly.

deactivating this plugin solves the issue ?! I would still like to know how fix it ....

 
qwik3r

Joined: 2007-08-20
Posts: 60
Posted: Thu, 2008-06-05 16:53

I am getting an ERROR_MISSING_OBJECT when attempting to add a user via the admin area. The user still adds but I get this error and it appears that the user is then incompatible with the g2 login. However if I add the same users via the user front end registration it works fine.

Quote:
Here's the error from G2: Error (ERROR_MISSING_OBJECT)
in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
in modules/core/classes/GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName)
in /home/psyrek1/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 199 (GalleryCoreApi::fetchUserByUserName)
in ??? at line 0
in /home/psyrek1/public_html/wp-includes/plugin.php at line 311
in /home/psyrek1/public_html/wp-includes/registration.php at line 201
in /home/psyrek1/public_html/wp-admin/includes/user.php at line 135
in /home/psyrek1/public_html/wp-admin/includes/user.php at line 17
in /home/psyrek1/public_html/wp-admin/admin-ajax.php at line 439

 
tbille

Joined: 2008-06-05
Posts: 4
Posted: Thu, 2008-06-05 18:40

Seems like a different statement causes this error, i get it on both locations (admin interface and user reg.) at line 472, like stated above.

 
tbille

Joined: 2008-06-05
Posts: 4
Posted: Thu, 2008-06-05 18:53

"Should you continue to have errors can you please install the Debug Log Viewer and post the log (or PM me it if you want)"
With this plugin activated the error goes away and eveything works, deactivate Event Viewer and the error comes again (with themed login in activated) - reproducable.
*sigh* Any other ideas ?

 
qwik3r

Joined: 2007-08-20
Posts: 60
Posted: Thu, 2008-06-05 18:56

the amount of problems I have encountered with gallery2 thus far depresses me.

 
tbille

Joined: 2008-06-05
Posts: 4
Posted: Thu, 2008-06-05 19:29

this is a wpg2 problem and not gallery2 and usually it works quite well for me. That said - wordpress code is a mess, poorly documented and whats documented is usually outdated ... i guess when wordpress 2.5 is half a year old the minor quirks with the plugins will be gone again.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Fri, 2008-06-06 03:10

All,

If you comment out the line like I posted several posts above you will not be getting in modules/core/classes/GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName) errors because the function will not be called..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-06-10 00:45

I have commented out the function in the latest development build. The Gallery2 team have also finished correcting the two concerns so fingers crossed I should be able to release 3.07 in the next week or two..

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
americo83

Joined: 2008-06-12
Posts: 4
Posted: Thu, 2008-06-12 14:56

Hello, i have a problem with WPG2 3.0.7, Gallery 2.2.5 and Wordpress 2.5.1

Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (gallerycoreapi::error)
* in modules/core/classes/GalleryCoreApi.class at line 533 (galleryuserhelper_medium::fetchuserbyusername)
* in /home/content/a/m/e/americo83/html/wp-content/plugins/wpg2/wpg2embed.inc at line 229 (gallerycoreapi::fetchuserbyusername)
* in /home/content/a/m/e/americo83/html/wp-content/plugins/wpg2/wpg2embed.inc at line 110
* in /home/content/a/m/e/americo83/html/wp-content/plugins/wpg2/wpg2functions.inc at line 523
* in ??? at line 0
* in /home/content/a/m/e/americo83/html/wp-includes/plugin.php at line 311
* in /home/content/a/m/e/americo83/html/wp-includes/general-template.php at line 866
* in /home/content/a/m/e/americo83/html/wp-content/themes/sexyround/header.php at line 28
* in /home/content/a/m/e/americo83/html/wp-includes/theme.php at line 472
* in /home/content/a/m/e/americo83/html/wp-includes/general-template.php at line 8
* in /home/content/a/m/e/americo83/html/wp-content/themes/sexyround/index.php at line 1
* in /home/content/a/m/e/americo83/html/wp-includes/template-loader.php at line 24
* in /home/content/a/m/e/americo83/html/wp-blog-header.php at line 20
* in /home/content/a/m/e/americo83/html/index.php at line 4

How can I fix? I thank you

Sorry, I resolved. Thank you

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-06-22 05:59

I presume from the lack of additional posts in this thread while I have been away that noone else is getting Missing Object messages?

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ShellBryson

Joined: 2008-06-24
Posts: 3
Posted: Tue, 2008-06-24 00:42

Unfortunately, I just did my first installed and I'm having all the issues above :( I tried 3.07 and I get the same errors everyone else has reported. I also get the following message on the main WordPress page:

Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT)

* in modules\core\classes\helpers\GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
* in modules\core\classes\GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName)
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-content\plugins\wpg2\wpg2embed.inc at line 229 (GalleryCoreApi::fetchUserByUserName)
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-content\plugins\wpg2\wpg2embed.inc at line 110
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-content\plugins\wpg2\wpg2functions.inc at line 523
* in ??? at line 0
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-includes\plugin.php at line 311
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-includes\general-template.php at line 866
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-content\themes\default\header.php at line 26
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-includes\theme.php at line 472
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-includes\general-template.php at line 8
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-content\themes\default\index.php at line 1
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-includes\template-loader.php at line 24
* in D:\Clients\ShellAndSirin\ShellAndSirin\wp-blog-header.php at line 20
* in D:\Clients\ShellAndSirin\ShellAndSirin\index.php at line 4

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-06-24 03:30

ShellBryson,

* in modules\core\classes\GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName) <- This function does not exist in the latest build..

Please grab the latest WPG2 build and replace ALL your WPG2 files as it does not appear you have done so..

Thanks

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
gtgeorge
gtgeorge's picture

Joined: 2004-03-12
Posts: 6
Posted: Tue, 2008-06-24 11:15

I too have just tried to install WPG2 with the same errors. I have then grabbed the latest build from the lonk at the top when finding this post to still have these errors.

Quote:
Here's the error from G2: Error (ERROR_MISSING_OBJECT)

* in modules/core/classes/helpers/GalleryUserHelper_medium.class at line 143 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 533 (GalleryUserHelper_medium::fetchUserByUserName)
* in /home/crossfit/public_html/wp_blog/wp-content/plugins/wpg2/wpg2embed.inc at line 229 (GalleryCoreApi::fetchUserByUserName)
* in /home/crossfit/public_html/wp_blog/wp-content/plugins/wpg2/wpg2embed.inc at line 110
* in /home/crossfit/public_html/wp_blog/wp-content/plugins/wpg2/wpg2template.inc at line 46
* in ??? at line 0
* in /home/crossfit/public_html/wp_blog/wp-includes/plugin.php at line 311
* in /home/crossfit/public_html/wp_blog/wp-includes/template-loader.php at line 7
* in /home/crossfit/public_html/wp_blog/wp-blog-header.php at line 20
* in /home/crossfit/public_html/index.php at line 4

regards,
George

 
gtgeorge
gtgeorge's picture

Joined: 2004-03-12
Posts: 6
Posted: Tue, 2008-06-24 11:26

This issue resolved itself upon installing the Debug Log Viewer mentioned along with the latest version. I had tried repeatedly to get this to work and the errors disappeared as soon as the additional Log Viewer plugin was installed? Hope this helps anyone else having this trouble.

regards,
George

 
ShellBryson

Joined: 2008-06-24
Posts: 3
Posted: Tue, 2008-06-24 18:46

Hm, WP was reporting that 3.07 was installed... cached maybe? Anyway I cleared the gallery cache (found elsewhere in this forum) and installed the debugger log thingy. First visit to the clients site reported something about not being valid, but then after I went into the options and clicked on the paths tab, saved (without making changes) everything now *touch wood* appears to be working fine.

In what seems to be a very moanie thread, I'd like to just add; you guys are doing great work! Thank you so much.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-06-24 22:37

Hmm could be a build cache issue on Wordpress Plugins. I have double checked the code, the two lines making the call have been commented out and will remain commented out until 3.1 when I will add some extra code to handle special characters in email addresses.

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-06-24 22:46
ShellBryson wrote:
In what seems to be a very moanie thread, I'd like to just add; you guys are doing great work! Thank you so much.

Thanks :-)

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
Gaiwecoor

Joined: 2008-06-25
Posts: 1
Posted: Wed, 2008-06-25 20:01

Hello, all!

[Major edit]

Previously, this post had a bunch of information about how I was still getting the same errors. This morning, I noticed that I hadn't installed the Debug Log Viewer (as noted in the original post). Putting that in seems to have wondrously fixed all my problems.

Anyhow, thanks for all the great work! I'm glad this is up and running again.

 
CGosein

Joined: 2008-07-04
Posts: 1
Posted: Fri, 2008-07-04 16:31

Thanks for the continued support and work ozgreg,
I had the same issue with 3.06 upgraded to 3.07 that did not work but installing the Debug Log Viewer did the trick.

I really appreciate all the hard work!

Current installation

WP wordpress-2.5.1
Gallery gallery-2.2.5
WPG2 3.0.7 21:46 9/06/2008
Bluetrait Event Viewer 1.8.1

 
honvl

Joined: 2007-04-26
Posts: 17
Posted: Sun, 2008-08-31 21:50

Wow! The bluetrait event viewer fixed my issue too.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Tue, 2008-09-02 02:11

You know I keep on seeing posts like this and pretty confused why installing the bluetrait event viewer resolves anything, all the viewer does is captures the WPG2 debug messages. But hey if it resolves issues I am not going to complain ;)

____________________________________
Wordpress / Gallery2 (WPG2) Plugin, , WPG2 Documentation, WPG2 Demo

 
thepit

Joined: 2008-10-12
Posts: 1
Posted: Sun, 2008-10-12 04:12

Joined just to post: I solved the problem by just logging out / clearing my cookies and logging in again.

 
CyrixInstead
CyrixInstead's picture

Joined: 2009-09-30
Posts: 1
Posted: Wed, 2009-09-30 21:32

For the record, this issue has been solved at http://biohazard.seattle.wa.us/spew/2009/02/wpg2-error-from-g2-error_missing_object. It is because the admin usernames in both Gallery2 and WP need to match. For me I have a WordPress and bbPress installation with integrated user logins and I was logged in with a test user with admin privileges. This user is different to the normal admin user I have within WordPress (I only have the one in Gallery2) and so whilst logged in with the test user this error occurred.

As soon as I logged out from the test user's account my WordPress install started working again.

~Cyrix

 
symptom

Joined: 2010-03-25
Posts: 1
Posted: Thu, 2010-03-25 13:00

Bluetrait event viewer plugin really fixed this:))))
I've even manually deleted all the wpg2 files from plugin directory, placed them from a clean install, logged out, cleared cookies...
Just this plugin helped^)