WordPress 2.6 errors

archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Tue, 2008-07-15 19:22

Anybody else getting errors with their WP 2.6 upgrade?
I had no problems on archshrk.com but photojulia.com doesn't want to use the embeded gallery header/footer and returns a 404 error instead.
-
www.archshrk.com
www.photojulia.com

 
briancarnell

Joined: 2008-07-16
Posts: 3
Posted: Wed, 2008-07-16 22:04

yes, i'm having problems with WPG2 3.06 and Wordpress 2.6 upgrade. I see this error message in the paths section of the WPG2 plugin in Wordpress admin area:

Possible Validation Problem with Gallery2 URL:http://brian.carnell.com/gallery2/embed.php returned HTTP/1.1 406 Not Acceptable

My main gallery page (http://brian.carnell.com/wpg2) works, but the links there are missing the /wpg2/ part so they look like this:

http://brian.carnell.com/?g2_itemId=18

This installation worked fine under WP 2.5.1 and WPG2 3.06

 
briancarnell

Joined: 2008-07-16
Posts: 3
Posted: Wed, 2008-07-16 22:57

Actually mine doesn't work at all now. It appeared to work because the wpg2 page was cached.

I did some searching and some folks saw problems before with mod_sec and getting that 406 area, but I don't have mod_sec loaded on Apache.

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Thu, 2008-07-17 00:22

I have 1and1 hosting so I'll probably never get the answer but I can do some digging.
One pattern I've seen is that the sidebar image shows up but the link returns a 404 error page.
BUT, if I turn Gallery2 Rewrites ON, I get a blank page and have to deactivate WPG2 to turn rewrites back off.
Also, http://photojulia.com/wpg2 comes up blank.
-
www.archshrk.com
www.photojulia.com

 
briancarnell

Joined: 2008-07-16
Posts: 3
Posted: Thu, 2008-07-17 00:07

Nevermind. Found the problem. Had nothing to do with WP 2.6

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-07-17 03:58

:-) I not had a chance to upgrade to WP 2.6 myself so I hope everything is working 100%

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

 
archshrk
archshrk's picture

Joined: 2005-04-29
Posts: 45
Posted: Fri, 2008-07-18 05:59

Since I use 1and1 hosting, I can't access their error logs. But they do offer this solution...

Quote:
Creating own error logs for debugging PHP scripts.

Since we don't provide access to Apache error logs on shared hosting packages for
technical reasons, you can create your own error logs for debugging PHP Scripts.

Please insert the following code in your PHP script (or create separate file and
and add the code in it. Include the file using "include()")

error_reporting(0);
$old_error_handler = set_error_handler("userErrorHandler");

function userErrorHandler ($errno, $errmsg, $filename, $linenum, $vars)
{
$time=date("d M Y H:i:s");
// Get the error type from the error number
$errortype = array (1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024 => "User Notice");
$errlevel=$errortype[$errno];

//Write error to log file (CSV format)
$errfile=fopen("errors.csv","a");
fputs($errfile,"\"$time\",\"$filename:
$linenum\",\"($errlevel) $errmsg\"\r\n");
fclose($errfile);

if($errno!=2 && $errno!=8) {
//Terminate script if fatal error
die("A fatal error has occurred. Script execution has been aborted");
}
}

But I don't know where to add it. Any thoughts?

-
www.archshrk.com
www.photojulia.com

 
superguido
superguido's picture

Joined: 2007-07-27
Posts: 3
Posted: Thu, 2008-07-24 10:05

My major problem is WPG2 won't accept the settings I'm putting in the WPG2 paths page. It keeps telling me it can't find embed.php.

WP and G2 are installed into different directories though there is a subdomain setup. G2 works fine it's just WPG2 that won't activate properly ever since the WP 2.6 upgrade. Starting to become rather problematic.

Anyone getting this same error?
file [EDITED]/embed.php does not exist

Christophor Rick
Business Manager
http://www.generationgamerz.com
News. Reviews. Culture. Insight. By Gamerz. For Gamerz.
[img]http://feeds.feedburner.com/GenerationGamerz.3.gif[/img]

 
ozgreg
ozgreg's picture

Joined: 2003-10-18
Posts: 1378
Posted: Thu, 2008-07-24 10:46

As part of the WPG2 validation, the file embed.php is verified if it is exists in the file path specified. If you feel the file path is correct then the most likely issue would be a file permission error, that is WPG2 does not have permissions to read the Gallery2 files..

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