WordPress.org

Support

Support » Plugins and Hacks » WordPress Stats – Error from last API Key attempt: parse error. not well formed

WordPress Stats – Error from last API Key attempt: parse error. not well formed

  • I’ve tried to find a solution in the web, but unfortunately I wasn’t able to find a solution… 🙁

    I’ve installed the WP Stats plugin… I also have an API KEY (Akismet is working fine), but when I enter my API key into the WP Stats plugin to activate it, it doesn’t work and gives me the following error message:

    Error from last API Key attempt:

    parse error. not well formed

    The API key is definitely correct… Akismet is working fine with this key.

    I’m using the following versions:

    WP: 2.8.2
    WPSTATS: 1.5

    I’ve followed all the installation steps and so on… but it does NOT work… 🙁

    Do you guys have any idea what the problem might be?

    Thank you very much in advance,

    regards,

    Sascha

Viewing 8 replies - 1 through 8 (of 8 total)
  • I have exactly the same issue.

    Solved. Andy Skelton will release a new version, meanwhile you can edit the source of the plugin, replacing the line:

    ‘description’ => get_option(‘blogdescription’),

    with:

    ‘description’ => utf8_encode(get_option(‘blogdescription’)),

    Unfortunately that does not work for me. I’ve tried the solution you’ve proposed and then also replaced almost every line deliver UTF8-encoded values… no chance. Now I really need to debug that. 🙁

    Ok, I’ve debugged it a little – no chance. The error code returned is 32700 – not well-formed. 🙁

    I had a look at all array values… Didn’t see a problem. I’ve also put an “A” into all fields… still the same issue. Andy should definitely have a look into this thread.

    mastix

    Illegitima

    @illegitima

    Here I keep having the same problem.

    Error from last API Key attempt:

    parse error. not well formed

    Any idea about how to fix it?

    Same problem here, had it for 9 months, no one seems to know the answer.

    same issue.

    ANY BODY READING THIS ISSUE OR NOT

    Just thought I’d chime in. The problem for me was similar to what oreixa described.

    Basically anywhere in the function stats_get_blog, the array will have a bunch of get_option() calls. Wrap those in utf_encode() and it can solve the parse error.

    I’m guessing that the plugin is sending an XML request in UTF8 but if your blog isn’t set to UTF8 (like mine wasn’t – I’m ISO8559-1, I believe), then it would end up as crap characters and would essentially look like a parse error.

    Doing this will force everything to be UTF8 and everything should just work.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WordPress Stats – Error from last API Key attempt: parse error. not well formed’ is closed to new replies.