Support » Plugin: Search Everything » Warning: Cannot modify header information – headers already… (Solved already!)

  • MASSERRA

    (@masserra)


    Just to help anyone having the same problem and also to notify whoever (Zemanta?) wrote the plugin about the issue.

    After installing the plugin I went to write a post and when I was saving it thist message appeared:

    Notice: Trying to get property of non-object in /…/…/…/…/wp-content/plugins/search-everything/search-everything.php on line 925

    Warning: Cannot modify header information – headers already sent by (output started at /…/…/…/…/wp-content/plugins/search-everything/search-everything.php:925) in /…/…/…/…/wp-admin/post.php on line 197

    Warning: Cannot modify header information – headers already sent by (output started at /…/…/…/…/wp-content/plugins/search-everything/search-everything.php:925) in /…/…/…/…/wp-includes/pluggable.php on line 1228) in /Users/Masserra/Desktop/wrong/wp-includes/pluggable.php on line 1228

    I solved it going to the specified line (925) on the plugin’s main file and switched this:
    $status = json_decode($zemanta_response['body'])->status;
    to this:
    $status = json_decode($zemanta_response['body'])['status'];

    Hope it solves problems to whomever comes after, and hope it gets included in the plugin so that people can update it.

    CHeers!

    https://wordpress.org/plugins/search-everything/

  • The topic ‘Warning: Cannot modify header information – headers already… (Solved already!)’ is closed to new replies.