wpg2 error: ERROR_MISSING_OBJECT

twodogs tell'em | Sun, 08 Feb 2009 02:07:28 -0800

I’m using Wordpress 2.7 and wpg2 3.0.7 and was having some difficulties enabling WPG2.  It wouldn’t fail, not until ran through the  ‘validation’.  I would receive:

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 606 (GalleryUserHelper_medium::fetchUserByUserName)
  • in /var/www/dragonfly.seattle.wa.us/htdocs/wp-content/plugins/wpg2/wpg2embed.inc at line 229 (GalleryCoreApi::fetchUserByUserName)

It turns out that the issue was that the admin usernames in both Gallery2 and WP needed to match.  Since wordpress specifically told me I could not change the username there, I chose to change it in Gallery2.  This posed no difficulties and it didn’t drop the user fromt he site admin group.  I had a difficult time tracking this one down, and just happened to figure out what was going on because I wasn’t having the issue on another vhost on the same machine… and those usernames matched.  So… there ya’ go.   I also made the passwords match but I doubt that had anything to do with the resolution of my issue.

One Response to “wpg2 error: ERROR_MISSING_OBJECT”

Greg Rowe wrote a comment on Wed, 08 Apr 2009 04:30:52 -0700

I just ran into the same problem. It turns out that the passwords DO have to match. In my case the usernames were the same but the passwords were different. Once I made the passwords between wordpress and gallery2 match everything worked fine.