Keyword

Disqus plugin return Server error 500

  • caexsar
  • caexsar's Avatar Topic Author
  • Offline
  • New Member
More
6 years 9 months ago - 6 years 9 months ago #166592 by caexsar
Disqus plugin return Server error 500 was created by caexsar
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: 6 years 9 months ago by caexsar.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 9 months ago #166636 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disqus plugin return Server error 500
Hello,

Are you trying to show the plugin in a module?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 9 months ago #166642 by Quy Ton
Replied by Quy Ton on 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.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 9 months ago #166673 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disqus plugin return Server error 500
3.8.5 is out, can you try again?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 9 months ago #166677 by Fiona Coulter
Replied by Fiona Coulter on 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 years 9 months ago #166680 by Fiona Coulter
Replied by Fiona Coulter on 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.

More
6 years 6 months ago - 6 years 6 months ago #167703 by Néstor Acevedo
Replied by Néstor Acevedo on topic Disqus plugin return Server error 500
This error continues still on Joomla 3.8.7.
[EDIT]
Local environment:
/home/nestor/public_html/joomla3/plugins/content/jw_disqus/jw_disqus.php:108
[/EDIT]

If I have enabled the plugin, I got the error as shown in the first attached image:


If I dissable the plugin, this error just dissapear showing the list of articles with the same tag, as in the second attached image:


Bassically, is the same error, so I think is not related with Joomla, but else with the plugin itself.

My environment:
Joomla 3.8.7
PHP 7.0
MySQL 5.6.35
Attachments:
Last edit: 6 years 6 months ago by Néstor Acevedo. Reason: Adding infor.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 6 months ago #167706 by Krikor Boghossian
Replied by Krikor Boghossian on topic Disqus plugin return Server error 500

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

More
6 years 4 months ago #168312 by Giuseppe
Replied by Giuseppe on topic Disqus plugin return Server error 500
Good morning, I have the same problem too. Currently I had to disable the component to make the tags work. Did you manage to solve?

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

More
6 years 4 months ago #168314 by Giuseppe
Replied by Giuseppe on topic Disqus plugin return Server error 500
News ?

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


Powered by Kunena Forum