Why does my API Key not work?

  • Unknown's avatar

    Hello,
    i am running a wordpress blog (current stable version) on phpnet.us (free hosting). To use akismet, i just registered here. I now tried to use the “API-Key” i got in the welcome Email to make Akismet working. Akismet got me the error that my api-key seems to be wrong. I exactly copy&paste’ed this Key from my welcome Email like also from my wordpress.com profile. What am i doing wrong?

  • Unknown's avatar

    Depends. What’s the specific error?

    You may also want to search the forums for that error as it’s probably been covered before.

  • Unknown's avatar

    The error is just that akismet tells me that my api-key seems to be wrong. No sql-error or something.
    Also, i dindt found anything alike using the search

  • Unknown's avatar

    Need the specific error please, not in your own words.

  • Unknown's avatar
  • Unknown's avatar
    thistimethisspace · Member ·

    Excuse me but sometimes simple things work. Have you tried typing in the key instead of copying and pasting? This is what the Akismet FAQs says to do.

  • Unknown's avatar

    Copied from elsewhere in the forum – and also mainly in the Akismet faq:

    Your key will be correct.

    The error message is because Akismet cannot access the Akismet server. The problem is one of three things:

    – either Akismet is being denied access to the internet if you are hosted locally behind a firewall, or

    – the server you are on lacks the ‘fopen’ function which Akismet needs or

    – your host might need to know that the default-installed SELinux security precautions (on Fedora4) causes this problem. With SELinux disabled, it works.

    Talk to your host.

  • Unknown's avatar

    Didn’t need a picture. Just needed the specific error.

  • Unknown's avatar

    I recently had trouble with my akismet API Key on http://www.omino.com/blog. I debugged it by adding a display line during the verification request:

    //!!! dvb
        print "<h1> dvb akismet_http_post( key=$key&blog=$blog ,  rest.akismet.com ,  /1.1/verify-key , $akismet_api_port) </h1>";
        //!!! dvb
        $response = akismet_http_post("key=$key&blog=$blog", 'rest.akismet.com', '/1.1/verify-key', $akismet_api_port);

    And I saw — in great big h1 text during “save options” — that my $blog variable was a broken URL. I’d manually changed the database to be just /blog instead of the full URL at some point, in wp_options table, and forgotten about it.

    Anyway, perhaps the debug-by-displaying tactic will prove helpful for someone else, someday, so it is here posted for posterity.

  • The topic ‘Why does my API Key not work?’ is closed to new replies.