• Since running the most recent update I am seeing a lot of warnings in my logs…

    [23-Feb-2019 19:11:32 UTC] PHP Warning: First parameter must either be an object or the name of an existing class in /home1/xxxxxxxx/public_html/wp-content/plugins/sucuri-scanner/src/hook.lib.php on line 673

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello @7thcircle ,

    Thank you for the bug report.

    The code seems to be failing here [1] while trying to report a change in the status of a post. WordPress doesn’t seems to be sending the correct data to this function, instead of a WP_Post object, it is sending Null. The PHP function “ property_exists” is expecting something different than a Null, and that’s why it logs the error.

    I think @ycampo may have an insight on this bug, there were a lot of changes in the code in the last update, but I didn’t have the opportunity to test them all, only the ones I submitted. There’s also the possibility that the latest version of the code is not compatible with your version of WordPress.

    [1] https://github.com/Sucuri/sucuri-wordpress-plugin/blob/111363e/src/hook.lib.php#L673-L675

    Thread Starter 7thcircle

    (@7thcircle)

    I’m running WP 5.1 now, was running 5.0.3 and PHP 7.1.24 if it helps. I was also seeing this on sites running WooCommerce 3.5.5

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘First parameter must either be an object….’ is closed to new replies.