Note that there are some explanatory texts on larger screens.

plurals
  1. PODisqus throws JS error and doesn't work when logged in
    primarykey
    data
    text
    <p>I'm at my wits end with this one, hopefully you can help me.</p> <p>I have a website running Wordpress (latest version, everything is up-to-date) with my own custom theme. </p> <p>I am trying to add Disqus comments to it. I have installed the Disqus plugin for WP and have done all the setup. However, I am experiencing an error whenever someone is logged into Disqus. When the iframe loads a JS error is thrown on the console stating (From Chromes console)</p> <pre><code>Uncaught TypeError: Cannot call method 'insertBefore' of null client.js:106 (anonymous function) client.js:106 Backbone.View.extend.updateDom client.js:144 Backbone.View.extend.updateDom client.js:168 u.alert client.js:106 n.extend._alertMustVerify client.js:191 n.extend.render client.js:190 n.extend.redraw client.js:187 B lib.ender.js:128 f.Events.trigger lib.ender.js:126 a.extend.set lib.ender.js:131 d._request.DISQUS.api.call.success client.js:86 (anonymous function) lib.ender.js:49 (anonymous function) lib.ender.js:50 (anonymous function) lib.ender.js:45 </code></pre> <p>From this and the equivalent error in FireFox's console I have narrowed the problem to line 106 in Disqus' Client.js where the variable <code>parentNode</code> equals null. </p> <pre><code>this.updateDom(function(){ this.el.parentNode.insertBefore(b.render().el,this.el) },this); </code></pre> <p>This problem only occurs though when someone is logged into Disqus to comment. If the user is commenting as a guest there is no error. </p> <p>Due to this error being thrown the entire Disqus iframe does not work and becomes unresponsive. </p> <p>Here is a link to my site so you can see the error yourself <a href="http://l2program.co.uk/361/a-better-bi-directional-path-tracer" rel="nofollow">link: l2program.co.uk</a></p> <p>Cheers in advanced for anyone who responds. This has been driving me mad all day! :(</p> <p><strong>Edit:</strong> I should clarify I mean when the user is logged into discuss by any means. Not just Disqus login but also login through Google/Facebook/ect. The problem persists through all. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload