Title: PHP Error
Last modified: August 31, 2016

---

# PHP Error

 *  [John Huebner](https://wordpress.org/support/users/hube2/)
 * (@hube2)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/php-error-156/)
 * I get the following error
 * Trying to get property of non-object in …/wp-content/plugins/disqus-comment-system/
   disqus.php on line 807
 * I am using a custom plugin that modifies the post slug based on values entered
   into custom fields. I cannot remove the other plugin. This plugin also adds posts
   to a custom post type when a post is save, so this might be related to using `
   wp_insert_post()`
 * This plugin should be checking to make sure that
 * `$post = get_post($post_id);` on line 724
 * and
 * `$post = get_post($post_id);` on 1243
 * actually return post objects instead of assuming that it does.
 * [https://wordpress.org/plugins/disqus-comment-system/](https://wordpress.org/plugins/disqus-comment-system/)

The topic ‘PHP Error’ is closed to new replies.

 * ![](https://ps.w.org/disqus-comment-system/assets/icon.svg?rev=1636350)
 * [Disqus Comment System](https://wordpress.org/plugins/disqus-comment-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/disqus-comment-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/disqus-comment-system/)
 * [Active Topics](https://wordpress.org/support/plugin/disqus-comment-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/disqus-comment-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/disqus-comment-system/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 0 replies
 * 1 participant
 * Last reply from: [John Huebner](https://wordpress.org/support/users/hube2/)
 * Last activity: [10 years, 5 months ago](https://wordpress.org/support/topic/php-error-156/)
 * Status: not resolved