Blank page after applying WPG2 3.0.7

pierre1974

Joined: 2008-05-25
Posts: 4
Posted: Sun, 2008-05-25 08:57

Hi,

I'm using Gallery 2.2.4 integrated in a Wordpress environment 2.5.1 with the plugin WPG2 3.0.7

Everything works fine as long as I'm logged in. If I log out then I'm unable to access the Wordpress page. The only thing I get is a blank page (the wp-admin url still works as expected). The "blank" page contains some source code but doesn't reach the end of the <head> tag and stops immediately after <meta name="generator" content="WordPress 2.5.1" />

If I deactivate the WPG2 plugin the Wordpress page will display as expected (everything but all what's related to the WPG2 plugin of course since it has been deactivated :)

The whole stuff is a clean fresh install from this morning (no hacks, no custom code). The Gallery itself works as expected.

The plugin Lightbox2 has been installed but the behavior of the page doesn't change if Lightbox is deactivated so I doubt it is the source of the issue.

Thanks a lot in advance for your help.

Pierre

 
ozgreg
ozgreg's picture

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

Which version of 3.07. Current as in posted a few hours (13:17 25/05/2008)? or older, if older, please update as I noticed I accidentally left a blank space down the bottom of wpg2template.inc which would lead to this behaviour in the older version..

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

 
pierre1974

Joined: 2008-05-25
Posts: 4
Posted: Sun, 2008-05-25 11:33

Hi,

Thanks for your quick reply.
The version I installed is the most recent one (3.0.7 13:17 25/05/2008).

Pierre

 
ozgreg
ozgreg's picture

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

edit wpg2embed.inc

Change line 134 to be $g2_session =&$gallery->getSession(); or wait about 20minutes for WP to rebuild the WPG2 Development Zip :)

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

 
pierre1974

Joined: 2008-05-25
Posts: 4
Posted: Sun, 2008-05-25 11:04

Great!
Thanks for the support!

I still have some vi skills :) will hack the code myself.