Notice: trying to get property of non-object
-
With WP_DEBUG on, this notice is echoed on post update, causing “headers already sent”. The notice occurs due to line 931 of search-everything.php:
$status = json_decode($zemanta_response['body'])->status;
I’ve attempted to quiet the notice by changing line 930 to:
if (!is_wp_error($zemanta_response) && is_array($zemanta_response)) {
As always, I hate editing plugins directly. Hopefully the cause of this can be addressed in a coming update.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Notice: trying to get property of non-object’ is closed to new replies.