WordPress.org

Support

Support » Plugins and Hacks » Disqus Comment System » Trying to get property of non-object disqus.php on line 656

Trying to get property of non-object disqus.php on line 656

  • Environment:
    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

    Edit:
    Additional Information
    Changing line 656 from

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

    to

    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).

Viewing 6 replies - 1 through 6 (of 6 total)
  • 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.

    TPJaveton-

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

    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!

    @tpjaveton

    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.

    @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!

    Thanks for that suggestion Salubrio!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Trying to get property of non-object disqus.php on line 656’ is closed to new replies.
Skip to toolbar