WordPress.org

Ready to get started?Download WordPress

Forums

WPBook
Still some fwrite warnings with the cron (4 posts)

  1. Olivier
    Member
    Posted 2 years ago #

    I see tons of these in my logs:
    PHP Warning: fwrite() expects parameter 1 to be resource, boolean given in /wp-content/plugins/wpbook/includes/wpbook_cron.php on line 147

    Let me know if you need more info.

  2. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    This is in the most recent version of WPBook?

  3. Olivier
    Member
    Posted 2 years ago #

    Indeed.
    The client has an IPv6 address so maybe that's the problem if you parse the IP?

  4. johneckman
    Member
    Plugin Author

    Posted 2 years ago #

    The fwrite shouldn't be parsing any IP - it is just trying to write to the local debug file, I think.

    Line 147 of wpbook_cron is just writing to a debug file, opened under the fopen call a few lines above.

    If that file handle passed into the call is a boolean rather than a file pointer, I think that means the file wasn't opened - maybe the file system there isn't writeable?

    Disabling debugging should make these go away

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags