WPG2 validation

the_man_stephen

Joined: 2005-09-19
Posts: 19
Posted: Sun, 2008-08-03 00:09

Hi,

I'm running the most recent version of WP, WPG2 and G2.

When I click the WPG2 tab in the admin section of wordpress the process seems to run for a while, then time out.

The errors shown in the btev viewer are:

Quote:
36692 2008-08-03 00:57:29 NOTICE /wp-content/plugins/wpg2/wpg2embed.inc 1 87.194.39.131 WPG2 FAILED TO LOCATE G2 AT URL http://blog.uninvisible.co.uk/gallery2/
36689 2008-08-03 00:57:01 NOTICE /wp-content/plugins/wpg2/wpg2embed.inc 1 87.194.39.131 WPG2 FAILED TO LOCATE G2 AT URL http://blog.uninvisible.co.uk/photos/
36686 2008-08-03 00:57:01 NOTICE /wp-content/plugins/wpg2/wpg2embed.inc 1 87.194.39.131 WPG2 FAILED TO LOCATE G2 AT URL http://blog.uninvisible.co.uk/gallery/
36683 2008-08-03 00:56:59 NOTICE /wp-content/plugins/wpg2/wpg2embed.inc 1 87.194.39.131 WPG2 FAILED TO LOCATE G2 AT URL http://blog.uninvisible.co.uk/gallery2/

It seems that WPG2 is trying to autolocate my gallery2 directory, with no luck.

WP is installed at http://blog.uninvisible.co.uk and gallery2 is at http://gallery.uninvisible.co.uk

They are both in my /public_html/ as sub-directories blog and gallery respectivly.

Is there anyway to solve this. I have a feeling it may be a memory limit issue, but my host don't let me set the memory_limit option in the .htaccess (returns a server 500 error).

I could add an ini_set line to my files, but I wouldn't know which one to do.

Any ideas?

XX

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-08-03 00:23

the_man_stephen,

Navigate to Wordpress -> WPG2 -> Paths and correct the G2 URL to http://gallery.uninvisible.co.uk

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

 
the_man_stephen

Joined: 2005-09-19
Posts: 19
Posted: Sun, 2008-08-03 00:29

Sorry, I should have been more clear - when I click WPG2 in the Wordpress admin section it tries to load then just loads a blank page, so I'm not able to amend them myself

 
the_man_stephen

Joined: 2005-09-19
Posts: 19
Posted: Sun, 2008-08-03 08:53

I've managed to solve this by some manual fiddling
I added the following block of code to the wpg2_simple_find_paths() fuction in wpg2functions.inc

Quote:
if ($ret) {
$g2url = 'http://gallery.uninvisible.co.uk';
$ret = wpg2_validateg2url($g2url,$wpg2relpath);
}

essentially forcing it a URL that wasn't one of the 'simple' ones given.

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Sun, 2008-08-03 22:50

That is seriously odd.. Would you be comfortable setting me up a Wordpress Admin account and installing the BTEV Debugging plugin so I can have a look at what is being found and being set?

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