Can't load Disqus JS files when logged in
-
Hello everyone,
we at CoinsSource.com have this strange problem: when an user is logged into the WordPress site and visits any news content or any subpage with Disqus commenting system, Disqus doesn’t load and opening the Chrome Dev Tools shows errors shown on the screenshot. After logging out from the WordPress site, Disqus magically works.
I’ve been debugging this issue for a while and here are my findings:
- when logged in the WordPress, Disqus tries to load
.js
and.css
files, which are404 NOT FOUND
(on the Disqus CDN) - when logged out the WordPress, Disqus tries to load different
.js
and.css
files, which are found on their servers so it works and loads properly
I haven’t looked into Disqus Plugin’s source code yet but I think it would take me plenty of time to find the code that enqueues the
.js
and.css
files and even if I found the place, it would probably not help me resolve the issue.The other most notable plugins we are making use of are:
- W3 Total Cache
- WooCommerce
- UsersUltra
- …and some social sharing and seo plugins
I’ve tried disabling most of them and nothing changed. We are also using CloudFlare but I’ve paused the service too and still no effect.
I really don’t know how comes the Disqus Plugin loads a different
.js
and.css
file when logged in and logged out of the WordPress site. Shouldn’t they be the same files?Thanks for your time and help.
- when logged in the WordPress, Disqus tries to load
- The topic ‘Can't load Disqus JS files when logged in’ is closed to new replies.