Support » Fixing WordPress » akismet error “warning: fwrite, fgets, feof….”

  • so, i haven’t found a post mentioning the same problem i have.
    so, i got my api key already, but everytime i try to enter my api key, the configuration site tells me:
    “Warning: fwrite(): supplied argument is not a valid stream resource in /usr/export/www/vhosts/funnetwork/hosting/lunchboxxx/wp-content/plugins/akismet/akismet.php on line 105
    Warning: feof(): supplied argument is not a valid stream resource in /usr/export/www/vhosts/funnetwork/hosting/lunchboxxx/wp-content/plugins/akismet/akismet.php on line 107

    Warning: fgets(): supplied argument is not a valid stream resource in /usr/export/www/vhosts/funnetwork/hosting/lunchboxxx/wp-content/plugins/akismet/akismet.php on line 108

    what does that mean?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Make sure you have the latest copy of the Akismet plugin (1.15) from akismet.com.

    And the file functions will only work for web streams if allow_url_fopen is turned on in your server’s PHP configuration. If it isn’t, then akismet (and lots of other things) probably won’t work for you.

    If you have access to your PHP.INI file (aka it’s your own server), find allow_url_fopen in it and turn it on. If you’re hosted, and your host won’t enable it, then you’re screwed. Sorry.

    Thread Starter lunchboxxx

    (@lunchboxxx)

    Great. I downloaded the latest copy of Akismet, so it must be the configuration thing. I’m hosted for free on funpic.de, where you get mysql and php along with it for free also. but pretty much everything else works, i.e. message boards, guestbooks, wordpress. i should try and ask if it is possible to turn it on in the php configuration.

    I am getting the same error, but I have version 1.15 of Akismet and I have checked with the server and allow_url_fopen is turned on. My error messages are slightly different
    Warning: fgets(): supplied argument is not a valid stream resource in …/wp-content/plugins/akismet/akismet.php on line 111
    Warning: feof(): supplied argument is not a valid stream resource in …/wp-content/plugins/akismet/akismet.php on line 110
    I didn’t get the fwrite() error
    I have turned off all my other plug-ins just in case they were interfering (which was unlikely) but this didn’t work.
    Any help will be gratefully received.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘akismet error “warning: fwrite, fgets, feof….”’ is closed to new replies.