Title: PHP notices when posting
Last modified: August 22, 2016

---

# PHP notices when posting

 *  [jorgeorpinel](https://wordpress.org/support/users/jorgeorpinel/)
 * (@jorgeorpinel)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-notices-when-posting/)
 * I had to disable this plugin after updating to wp 4.0.1 because it’s breaking
   when I POST to post.php with the following notices
 * Notice: Trying to get property of non-object in …/wp-content/plugins/search-everything/
   search-everything.php on line 931
 * when making a new post, and
 * Notice: Undefined index: post_status in …/wp-content/plugins/search-everything/
   search-everything.php on line 919
 * when restoring a post revision.
 * – the processes do complete but since I have DEBUG on, I don’t get redirected
   after the PHP notices.
 * [https://wordpress.org/plugins/search-everything/](https://wordpress.org/plugins/search-everything/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [dev-usmangroup](https://wordpress.org/support/users/dev-usmangroup/)
 * (@dev-usmangroup)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503275)
 * I’m having the same issue, please fix.
 *  [dledet](https://wordpress.org/support/users/dledet/)
 * (@dledet)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503329)
 * Also having the same issue and am not able to publish posts. Please fix. Thank
   you.
 *  [PetraP](https://wordpress.org/support/users/petrap/)
 * (@petrap)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503373)
 * Hey,
 * thanks for reaching out and sorry for the unintentional silence. Unfortunately
   I can’t replicate this on my side – would you be so kind and tell me your PHP
   version and also plugin version?
 * Looking forward to your reply,
    Petra
 *  [luckyfella73](https://wordpress.org/support/users/luckyfella73/)
 * (@luckyfella73)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503446)
 * Hey Petra,
 * my WP throws 2 notices when doing a quickedit (posts). Here the notices (path
   shortened):
 *     ```
       Notice: Undefined index: original_post_status in /.../plugins/search-everything/search-everything.php on line 919
       ```
   
 *     ```
       Notice: Trying to get property of non-object in /.../plugins/search-everything/search-everything.php on line 931
       ```
   
 * My PHP Version: 5.5.14
    WP Version: 4.3.1
 * Hope you find the error – best regards,
    Luckyfella
 * Edit: It seems that the Input Data (when doing quickedit) is send by GET-method.
   Your Code line 919 is looking for $_POST vars. Mayby you can check if $_GET or
   $_POST index is available first?
 *  [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503447)
 * Same problem here. And there was a thread one year ago which is closed:
    [https://encrypted.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CBwQFjAAahUKEwiHk4CCgb3IAhVEjywKHcqRBow&url=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnotice-trying-to-get-property-of-non-object-6&usg=AFQjCNGSztxO49a90vMs75hGMu8YqvriHw&sig2=Myhv3_3iIMp5_e0FAwgPmw&cad=rja](https://encrypted.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CBwQFjAAahUKEwiHk4CCgb3IAhVEjywKHcqRBow&url=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fnotice-trying-to-get-property-of-non-object-6&usg=AFQjCNGSztxO49a90vMs75hGMu8YqvriHw&sig2=Myhv3_3iIMp5_e0FAwgPmw&cad=rja)
 * Enable WP Debug mode and save/create a post. then you get this error:
    [12-Oct-
   2015 13:05:05 UTC] PHP Notice: Trying to get property of non-object in /www/htdocs/
   w00885cf/top10pranks/wp-content/plugins/search-everything/search-everything.php
   on line 931
 *  [nicmare](https://wordpress.org/support/users/nicmare/)
 * (@nicmare)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503448)
 * i dont think you can use json_decode($zemanta_response[‘body’])->status here.
   because json_decode is a function and you are trying to get a property of an 
   object. as i said the function is no object. so just remove “->status” here

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘PHP notices when posting’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/search-everything_242529.svg)
 * [Search Everything](https://wordpress.org/plugins/search-everything/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/search-everything/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/search-everything/)
 * [Active Topics](https://wordpress.org/support/plugin/search-everything/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/search-everything/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/search-everything/reviews/)

## Tags

 * [-posting](https://wordpress.org/support/topic-tag/posting/)
 * [PHP Notice](https://wordpress.org/support/topic-tag/php-notice/)

 * 6 replies
 * 6 participants
 * Last reply from: [nicmare](https://wordpress.org/support/users/nicmare/)
 * Last activity: [10 years, 7 months ago](https://wordpress.org/support/topic/php-notices-when-posting/#post-5503448)
 * Status: not resolved