Forums

akismet error "warning: fwrite, fgets, feof...." (4 posts)

  1. lunchboxxx
    Member
    Posted 3 years ago #

    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?

  2. Otto42
    Moderator
    Posted 3 years ago #

    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.

  3. lunchboxxx
    Member
    Posted 3 years ago #

    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.

  4. paularman
    Member
    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags