• Resolved Newt Labs

    (@newtlabs)


    Hi I keep encountering these warnings when using WP CLI, this is when using the latest version of your plugin:

    PHP Warning: file_put_contents(/wp-content/uploads/doofinder-logs/updates.log): Failed to open stream: Permission denied in /wp-content/plugins/doofinder-for-woocommerce/includes/class-log.php on line 78
    Warning: file_put_contents(/wp-content/uploads/doofinder-logs/updates.log): Failed to open stream: Permission denied in /wp-content/plugins/doofinder-for-woocommerce/includes/class-log.php on line 78

    I checked the file permissions and ownerships and they are all fine.

    When I open the log file it’s just full of these:

    1 May 24, 12:49
    ‘Check updates from 2.2.6 to 2.2.19’

    1 May 24, 12:49
    ‘Check updates from 2.2.6 to 2.2.19’

    1 May 24, 12:49
    ‘Check updates from 2.2.6 to 2.2.19’

Viewing 1 replies (of 1 total)
  • Plugin Author Doofinder

    (@doofinder)

    Hello, thank you for contacting us.
    We have created a new version that fixes the creation of those logs in an excessive way.
    Regarding the problem you have with the permissions, it is possible that the logs that appear to you have been registered before, without using wp-cli.
    Could you please ensure that the user running wp-cli has write permissions on the log path: ‘/wp-content/uploads/doofinder-logs/updates.log’?


    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Warning: file_put_contents’ is closed to new replies.