Version 0.2 of the blogger plugin for wordpress 3.x has a small little bug in it that produces the following error:
Something went wrong. If the problem persists, send this info to support:
HTTP/1.0 403 Invalid AuthSub token.
Content-Type: text/html; charset=UTF-8
Date: Fri, 06 Aug 2010 20:16:35 GMT
Expires: Fri, 06 Aug 2010 20:16:35 GMT
Cache-Control: private, max-age=0
X-XSS-Protection: 1; mode=block
<TITLE>Invalid AuthSub token.</TITLE>
<BODY BGCOLOR=”#FFFFFF” TEXT=”#000000″>
<H1>Invalid AuthSub token.</H1>
I’ve been banging my head against the wall trying to figure out what’s wrong with their code and I think I’ve found a fix (atleast until version 0.3 of the plugin comes out at which time this fix will not apply anymore…..hopefully).
The problem is with the regex code in the auth() function of the blogger-importer.php plugin. So edit this file and make the following changes:
1) Line 99:
OLD: $token = preg_replace( '/[^-_0-9a-zA-Z]/', '', $_GET['token'] );Note: % sign added in the regex portion.
NEW: $token = preg_replace( '/[^%-_0-9a-zA-Z]/', '', $_GET['token'] );
2) Line 108:
OLD: preg_match( '/token=([-_0-9a-z]+)/i', $response, $matches );Note: % sign added in the regex portion.
NEW: preg_match( '/token=([%-_0-9a-z]+)/i', $response, $matches );
Hopefully this will help you get going…..