This is a confusing issue. I have my website hosted on http://denneysdimension.net and my gallery hosted on a subdomain, http://gallery.denneysdimension.net.
I'm using WordPress v2.3.3, Gallery2 v2.2.4 and WPG2 v3.0.2. I have installed WPG2 and everything validates fine. I've set the output page type to Gallery2. Both WordPress and Gallery2 work fine independently and URL rewrites for both WordPress and Gallery2 work.
I used G2Image to insert an image into a post. I selected the WPG2Tag insert method. Visiting the homepage, the image appears fine and the URL is correct. Nothing is wrong.
I then try to view the individual post and I receive an error like this:
Fatal G2 error
Here's the error from G2: Error (ERROR_MISSING_OBJECT) : Parent 12 path 26
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 98 (GalleryCoreApi::error)
* in modules/core/classes/GalleryCoreApi.class at line 1853 (GalleryFileSystemEntityHelper_simple::fetchChildIdByPathComponent)
* in modules/core/classes/helpers/GalleryFileSystemEntityHelper_simple.class at line 53 (GalleryCoreApi::fetchChildIdByPathComponent)
* in modules/core/classes/GalleryCoreApi.class at line 1804 (GalleryFileSystemEntityHelper_simple::fetchItemIdByPath)
* in modules/rewrite/classes/RewriteSimpleHelper.class at line 45 (GalleryCoreApi::fetchItemIdByPath)
* in ??? at line 0 (RewriteSimpleHelper::loadItemIdFromPath)
* in modules/rewrite/classes/RewriteUrlGenerator.class at line 103
* in modules/rewrite/classes/parsers/modrewrite/ModRewriteUrlGenerator.class at line 37 (RewriteUrlGenerator::_onLoad)
* in init.inc at line 147 (ModRewriteUrlGenerator::initNavigation)
* in modules/core/classes/GalleryEmbed.class at line 129
* in /home/mantras1/denneysdimension.net/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 47 (GalleryEmbed::init)
* in /home/mantras1/denneysdimension.net/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 89
* in /home/mantras1/denneysdimension.net/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 542
* in /home/mantras1/denneysdimension.net/public_html/wp-content/plugins/wpg2/wpg2embed.inc(946) : regexp code at line 1
* in /home/mantras1/denneysdimension.net/public_html/wp-content/plugins/wpg2/wpg2embed.inc at line 946
* in ??? at line 0
* in /home/mantras1/denneysdimension.net/public_html/wp-includes/plugin.php at line 59
* in /home/mantras1/denneysdimension.net/public_html/wp-includes/post-template.php at line 77
* in /home/mantras1/denneysdimension.net/public_html/wp-content/themes/a_new_dimension/single.php at line 24
* in /home/mantras1/denneysdimension.net/public_html/wp-includes/template-loader.php at line 28
* in /home/mantras1/denneysdimension.net/public_html/wp-blog-header.php at line 21
* in /home/mantras1/denneysdimension.net/public_html/index.php at line 4
The "parent" and "path" numbers change depending on which image I insert. This is frustrating because a development website at http://dev.mantrasoftware.net and gallery at http://dev.mantrasoftware.net/gallery works flawlessly without any errors with the EXACT same set-up (only thing different are the URL's).