Disqus Comment System
Trying to get property of non-object disqus.php on line 656 (7 posts)

  1. salubrio
    Posted 3 years ago #

    OS: OSX 10.7.5
    Disqus plugin: 2.74
    Wordpress: 3.5.1
    All other plugins disabled, using stock theme

    Steps to reproduce

    1. Go to pages list
    2. "quick edit" a page and set its parent to a different page
    3. Click 'update'

    Expected behavior
    That page's info should 'slide closed' and info on that line should not change

    Actual behavior
    Page's info slides closed; the following text is displayed to the left of the checkbox:

    Notice: Trying to get property of non-object in /opt/local/apache2/htdocs/wordpress/wp-content/plugins/disqus-comment-system/disqus.php on line 656

    Additional Information
    Changing line 656 from

    update_post_meta($post->ID, 'dsq_thread_id', $response->id);


    if( isset( $repsonse->id ) ) {
      update_post_meta($post->ID, 'dsq_thread_id', $response->id);

    prevents the error from occurring (not sure what effect that has on the comments).

  2. TPJaveton
    Posted 2 years ago #

    Hi salubrio,

    I just encountered an error with similar language on my site at http://webmarketingtips4u.net, although not in file disqus.php but rather in capabilities.php file in the following message:

    "Trying to get property of non-object in /home/jaxxxxxw/public_html/wp-includes/capabilities.php on line 1078."

    This is the first time I've ever seen an error message like this, and it's repeated about 80 times on the same page. Any ideas what's going on here? Thanks in advance for your input.


  3. workinclasshero
    Posted 2 years ago #

    Im getting the same error from the Disqus plugin, not sure what to do with it....

  4. TPJaveton
    Posted 2 years ago #

    Hey workinclasshero,

    In my case the problem was followed by a series of spam messages from "Paulajete" containing a full page string of URS. I haven't seen anything like this until the recent 3.6 WP update.

    I'm not sure what to do with it either, so I'm in the process of restoring my site from an earlier backup which I have to do manually since the auto upload feature in WP admin area is also affected. Anyway, good luck!

  5. salubrio
    Posted 2 years ago #


    Look at line 1078 of capabilities.php.

    My guess is that line contains a function that is being passed an unset variable; you can try checking to see if your variable is set and only calling the function on line 1078 if it is.

  6. salubrio
    Posted 2 years ago #

    @workingclasshero - Check if there's an update to the Disqus plugin; maybe that fixes it.

    If not, apply my fix above and the error will go away -- understand there might be unintended consequences, though!

  7. TPJaveton
    Posted 2 years ago #

    Thanks for that suggestion Salubrio!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Disqus Comment System
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic