WP & G2 installs worked fine with WPG2>>Moved WP from sub-domain >> WPG2 no longer displays>>WP defaults main.php w/o WP theme

mccaffery
mccaffery's picture

Joined: 2007-11-11
Posts: 8
Posted: Mon, 2007-11-12 06:41

I successfully installed the latest Wordpress and Gallery 2 releases last week and had WPG2 working just fine. I then decided to move the blog from a sub-domain to the primary domain (www.joemccaffery.com). After successfully moving the blog I was very pleased until I realized the embedded gallery was no longer displaying with the Wordpress theme.

I first tried manually replacing any references to the old URLs in the gallery DB (since that's what I had to do in the blog DB when I moved the blog). No luck.

I then spent the next few nights trying just about everything I could find on the discussion boards:

>> Deactived WPG2, reactivate. No luck.
>> Create a custom WP header. No luck.
>> Countless tweaks to various CSS and WP PHP files. No luck.
>> Changed WP theme. No luck.
>> Changed G2 theme. No luck.
>> Delete Gallery files, sub-domain and DB and reinstalled Gallery with different sub-domain. No luck.
>> Delteted both WP and Gallery, deleted both DBs and reinstalled, but this time in the same DB. No luck.

Quite frankly I'm stuck. I suspected there was some kind of reference from the original installs and the relationship between the original directories that I just couldn't figure out how to correct. That's why I thought doing a complete reinstall would ultimately resolve the issue. I thought wrong.

Here are the URLs in question:

>> WPG2 output: http://www.joemccaffery.com/photos
>> Gallery 2: http://photos.joemccaffery.com

If anyone can help, I'd be very greatful.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Mon, 2007-11-12 10:11

It looks to me that you have configured the WPG2 to point to your standalone Gallery2 (in the WPG2 Options - Output tab) - Switch this back to WPG2 output via Wordpress Page..

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

 
mccaffery
mccaffery's picture

Joined: 2007-11-11
Posts: 8
Posted: Mon, 2007-11-12 19:38

Hi Ozgreg -- Thanks for the quick reply. On the WPG2 Output tab, I have the "WPG2 Output via Wordpress Page" selected.

This was also part of the odd behavior that I couldn't figure out. I thought it may have been a permalink issue and may have figured it out.

Gallery is installed in a sub-directory called photos, so when the URL is re-written with the page slug "photos", it's identical to the directory structure and the main.php file in the photos directory is rendered.

I changed page slug to "pics" and it's now working fine.

Thanks again for your response.

 
capt_kirk

Joined: 2006-01-24
Posts: 492
Posted: Mon, 2007-11-12 20:57

You can't have the WPG2 output pageslug be the same as your Gallery2 directory name, because this will break rewrites.

Kirk
____________________________________
G2Image Documentation, G2Image Demo Page, My Family Website