WordPress import plugin for blogger fix….

Home / Blogger / WordPress import plugin for blogger fix….

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
Content-Length: 167
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-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block

Server: GSE

<HTML>
<HEAD>
<TITLE>Invalid AuthSub token.</TITLE>
</HEAD>
<BODY BGCOLOR=”#FFFFFF” TEXT=”#000000″>
<H1>Invalid AuthSub token.</H1>

<H2>Error 403</H2>
</BODY>
</HTML>

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'] );
NEW: $token = preg_replace( '/[^%-_0-9a-zA-Z]/', '', $_GET['token'] );
Note: % sign added in the regex portion.

2) Line 108:OLD: preg_match( '/token=([-_0-9a-z]+)/i', $response, $matches );
NEW: preg_match( '/token=([%-_0-9a-z]+)/i', $response, $matches );
Note: % sign added in the regex portion.

Hopefully this will help you get going…..

3 Comments

  • Many

    Thanks Debbie,

    I think someone grabbed it from the blog already…..I'm in the middle of DNS hell right now…..so hopefully people will take it easy on the old blogspot site while DNS updates. New wordpress site is ready as soon as DNS kicks in…..

    TTYL
    Many

Leave a Reply