Gallery works OK standalone, but blows up WP when embedded via WPG2

gdanmitchell

Joined: 2008-03-30
Posts: 16
Posted: Fri, 2008-12-05 05:05

My wp blog and gallery2 were installed at my former host. I moved to a new host. I recreated the wp setup by moving files (plugins and themes, in particular) but did not import the old DB - instead used the wp import function to bring in old posts/resources to a new wp install.

For gallery2 I moved the g2data folder to the new site and also replaced the gallery DB with the DB from my old site.

Everything seems to work fine.

I install the WPG2 plugin (v. 3.0.7) and configure, turning on gallery2 rewrites. Gallery now works correctly embedded into my wp site at http://www.hostname.com/wpg2.

In wp I go to the WPG2 plugin settings and everything is still fine.

Now I go to the Users panel in wp and then click the "Gallery2 Users Link." At this point I get the following error:

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 /home8/gdanmitc/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 229 (GalleryCoreApi::fetchUserByUserName)
in /home8/gdanmitc/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 110
in /home8/gdanmitc/public_html/wp-content/plugins/wpg2/wpg2usersadmin.php at line 37
in /home8/gdanmitc/public_html/wp-admin/admin.php at line 69
in /home8/gdanmitc/public_html/wp-admin/users.php at line 2

AND, now when I visit the main wp site (e.g. www.hostname.com) on the home page, only see only:

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 /home8/gdanmitc/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 229 (GalleryCoreApi::fetchUserByUserName)
in /home8/gdanmitc/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 110
in /home8/gdanmitc/public_html/wp-content/plugins/wpg2/wpg2functions.inc at line 523
in ??? at line 0
in /home8/gdanmitc/public_html/wp-includes/plugin.php at line 311
in /home8/gdanmitc/public_html/wp-includes/general-template.php at line 883
in /home8/gdanmitc/public_html/wp-content/themes/justsimple-10/header.php at line 53
in /home8/gdanmitc/public_html/wp-includes/theme.php at line 472
in /home8/gdanmitc/public_html/wp-includes/general-template.php at line 8
in /home8/gdanmitc/public_html/wp-content/themes/justsimple-10/index.php at line 1
in /home8/gdanmitc/public_html/wp-includes/template-loader.php at line 27
in /home8/gdanmitc/public_html/wp-blog-header.php at line 16
in /home8/gdanmitc/public_html/index.php at line 17

When I delete the WPG2 plugin the wp site and the Gallery2 site (at www.hostname.com/gallery) both work fine as long as they are independent and not linked by WPG2.

If I reenable the plugin there is no immediate return of the problem - e.g. the embedded version of gallery site works again. But if I click the WPG2 link in wp and go to the page to activite gallery2 rewrite I get the errors again.

Help?

Dan

Gallery URL = http://gdanmitchell.com/gallery/main.php
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.6 cgi-fcgi
Webserver = Apache/2.2.10 (Unix) mod_ssl/2.2.10 OpenSSL/0.9.8i DAV/2 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
Database = mysqlt 5.0.67-community-log, lock.system=flock
Toolkits = ArchiveUpload, Exif, Getid3, LinkItemToolkit, Thumbnail, Gd, NetPBM, ImageMagick
Acceleration = full/3600, partial/3600
Operating system = Linux box475.bluehost.com 2.6.27-6_1.intel.BHsmp #1 SMP Thu Nov 13 15:27:29 MST 2008 x86_64
Default theme = siriux
gettext = enabled
Locale = en_US
Browser = Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_5; en-us) AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1
Rows in GalleryAccessMap table = 50
Rows in GalleryAccessSubscriberMap table = 725
Rows in GalleryUser table = 12
Rows in GalleryItem table = 723
Rows in GalleryAlbumItem table = 73
Rows in GalleryCacheMap table = 2467