echterhoff / plg-globalvariables

Joomla Plugin GlobalVariables (plg-globalvariables)
2 stars 2 forks source link

Joomla 3.7 crash by activating the plugin #5

Open FionNoir opened 7 years ago

FionNoir commented 7 years ago

Hi, thanks for your plugin! But I'm sorry, I don't get this plugin to run. After activating the plugin I'm not able to load the frontend of the website. The following error is shown: Fatal error: Cannot declare class JDocumentHTML, because the name is already in use in /mnt/web108/a2/75/5511575/htdocs/Joomla3.x/libraries/joomla/document/html/html.php on line 701

I'm not deep enough in Joomla for this I think. Would you please help me? Any idea?

echterhoff commented 7 years ago

Hi @FionNoir, sure! Hope I can help you.

Technically, PHP has encountered a conflict with a class name. For any reason it tries to redeclare "JDocumentHTML". Since I do not use JDocumentHTML within my plugin, it seem kind of odd.

I need some more information: Have you just installed "Global Variables" or did it break after an update or at any other time like installing another module/component/plugin/whatever...? Do you use any other framework within Joomla like a templating engine? Have you tried to switch to another template? Do you use any other replace plugins, such as plugins that "magically" turn short commands into larger html chunks. Have you tweaked any setting from "Variable Settings"? Some off them have the potential to screw everything.

My first guess on this issue is, you have some how managed to make the render engine recurse, but I can't think off how this could have happend. Maybe you can try to set the "Overall replacement limit" to 1... but thats also just worth a try.

I really need some more different errors or hints.

FionNoir commented 7 years ago

Hello @echterhoff , thanks for your help. I'll try to give you some more information about my setup and the issue.

If you want, you can contact me privat and I give you access to the system. Maybe this is the fastest way.