Keyword

Disqus plugin return Server error 500

  • caexsar
  • caexsar's Avatar Topic Author
  • Offline
  • New Member
More
1 week 1 day ago - 1 week 23 hours ago #166592 by caexsar
caexsar created the topic: Disqus plugin return Server error 500
Hi,
i've an issue with my Joomla Disqus plugin installation.
Google search console give me an alert on error 500 from server.
I've started a support request to my hosting provider to investigate and they say the error is a PHP error due to Disqus plugin file :
[11-Feb-2018 18:07:29 Europe/Rome] PHP Fatal error: Call to a member function get() on string in /home/studioxs/public_html/plugins/content/jw_disqus/jw_disqus.php on line 108

Joomla 3.8.5 (multillang site) / Disqus Plugin 3.6.0 / PHP 5.6.33 / Web Server Apache

Actually i've disabled it renaming the folder but how can i solve this ?
Any help will be appreciated and sorry for the bad English.
Cheers
Last Edit: 1 week 23 hours ago by caexsar.

Please Log in or Create an account to join the conversation.

More
1 week 15 hours ago #166636 by Krikor
Krikor replied the topic: Disqus plugin return Server error 500
Hello,

Are you trying to show the plugin in a module?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

More
1 week 14 hours ago #166642 by Quy Ton
Quy Ton replied the topic: Disqus plugin return Server error 500
This issue has been reported at Joomla Github: github.com/joomla/joomla-cms/issues/19487

Please Log in or Create an account to join the conversation.

More
6 days 17 hours ago #166673 by Krikor
Krikor replied the topic: Disqus plugin return Server error 500
3.8.5 is out, can you try again?

IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

---
JoomlaWorks
www.joomlaworks.net/

Please Log in or Create an account to join the conversation.

More
6 days 17 hours ago #166677 by Fiona Coulter
Fiona Coulter replied the topic: Disqus plugin return Server error 500
I experienced the same issue with Joomla 3.8.5

The problem is this line 108
$parsedInModule = $params->get('parsedInModule');

in plugins/content/jw_disqus/jw_disqus.php.

It happens because the $params are passed by com_tags as a string, you just need to test for this and convert to JRegistry object if neccessary, I found this worked:
		if (!$params)
		{
			$params = version_compare(JVERSION, '1.6.0', 'lt') ? new JParameter(null) : new JRegistry(null);
		}
		elseif(is_string($params))
		{
			$params = new JRegistry($params);
		}
		$parsedInModule = $params->get('parsedInModule');

Please Log in or Create an account to join the conversation.

More
6 days 17 hours ago #166680 by Fiona Coulter
Fiona Coulter replied the topic: Disqus plugin return Server error 500
Or possibly it could be argued that this is a Joomla bug after all, since presumably it would make more sense for the params to be passed by com_tags as a JRegistry object anyway.

Please Log in or Create an account to join the conversation.