Copyright © 2006 - 2026 JoomlaWorks Ltd.
JoomlaWorks Ltd. and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.
Undefined Property in jw_disqus plugin
Is there any way to get a fix/does anyone know of a fix for the following notice getting thrown from the jw_disqus plugin?
Notice: Undefined property: EasyBlogPost::$slug in /srv/users/serverpilot/apps/oppensourced/public/plugins/content/jw_disqus/jw_disqus.php on line 172
Line 172 from php is: $itemURL = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catid));
I'm getting this coming off EasyBlog posts (that I spot so far) but I've also seen it bleeding out on other sites from different Components (reference attachments).
This plug-in is obviously the gold standard/official option for Disqus on Joomla so any and all help is greatly appreciated.
Thx in advance!
It *may* work for components that follow a similar DB structure for content entities.
The undefined error you get occurs because the content plugin attempts to retrieve a non existing property from the EasyBlog article data object.
Right above line 165, add a var_dump() so I can see the data EasyBlog outputs, like this:
var_dump($row); exit; if (version_compare(JVERSION, '1.6.0', 'ge')) {Re-run the page, copy everything in a txt file and upload it somewhere so I can have a look. It may be easy to adapt the plugin to work with EasyBlog.
I should provide more detail as well:
the initial integration here was connecting it up to the Komento Comment component (from Stackideas, whom also develop EasyBlog): stackideas.com/docs/easyblog/administrators/comments/integrating-with-disqus
My setup on EasyBlog was to deploy Komento Commenting and then use the integration so that I could still use Disqus as well/as an option. But.... if we could get EasyBlog and Disqus on the same page (bad pun) then I would gladly just use Disqus as the standalone comment system there ; )
Let me get you the output you requested and I will post back - thx, Fotis!!!
Thx again!
Additionally, the link your referenced is not public.
I think it's more appropriate for StackIdeas (who make money from EasyBlog, unlike Disqus which is free) to contact us if they want to have Disqus play nicely with their extension. That's the polite thing to do either way...
I totally agree as to the appropriateness; my initial approach to this issue was directly with Stackideas, who recommended I contact you, the developer of this plugin. I'm not in the business of brokering relationships between developers - that's betwixt the two of you whether your two products want to play nicely (regardless of Paid vs Free). My opinion (which of course is irrelevant) was that this was a Stackideas issue, which is why I took the issue up with them directly to start. Beyond that and as it stands, I just won't use the plugin.
Regardless, as always and as mentioned, I do respect your time and work so thx again for the input.
In any case, if you want to troubleshoot the issue, as I mentioned, do a var_dump for $row so I can check the object's properties. The error you got indicates a syntax issue somewhere. It could be because of the "exit;" part I mentioned so remove it if you want and check again, that is, if you still want to use Disqus on your site.
teatv.ltd
Edited 4 years 9 months ago by liteemariee