WordPress.org

Forums

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

  1. O Ofutur
    Member
    Posted 3 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. John Eckman
    Member
    Plugin Author

    Posted 3 years ago #

    This is in the most recent version of WPBook?

  3. O Ofutur
    Member
    Posted 3 years ago #

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

  4. John Eckman
    Member
    Plugin Author

    Posted 3 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

  • WPBook
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags