Open Graemezee opened 5 years ago
Hi,
first off: This plugin is out of service. I have not maintained it anymore due to (my own) lack of use.
First off all: This warning is caused by an joomla code. The ModuleHelper. A library that provides some access to joomla related things. I do load this Helper but I do not use the specific function that raises the warning. So the error might get raised due to some "scrambled" load orders. You might be able to resolve it by moving my plugin below or above other plugins on the plugin management.
The variable $attribs gets injected into the HelperFunction renderModule($module, $attribs = array()) expects an array. For some reasons it seems to get anything other than an array (probably an object). This causes the warning.
You can mute the warnings in the Joomla configuration (System > Configuration > Server > Error reporting = NONE) but this mutes all warnings and errors. Another think you could try is: Get rid of some code I used. (in plugins/content/globalvariables/globalvariables.php) Comment it with / and /, just like I did in the screenshot. The check if the plugin still works...
I hope this resolves your issues. Please let me know, so I can look further into it or update the plugin.
Lars
Hi Lars Thank you for your input very much appreciated
kind regards
Graeme
On Tue, 23 Jul 2019 at 12:26, Lars Echterhoff notifications@github.com wrote:
Hi,
first off: This plugin is out of service. I have not maintained it anymore due to (my own) lack of use.
First off all: This warning is caused by an joomla code. The ModuleHelper. A library that provides some access to joomla related things. I do load this Helper but I do not use the specific function that raises the warning. So the error might get raised due to some "scrambled" load orders. You might be able to resolve it by moving my plugin below or above other plugins on the plugin management.
[image: image] https://user-images.githubusercontent.com/985573/61703219-6fb31e80-ad41-11e9-9139-d3cb46d80e31.png
The variable $attribs gets injected into the HelperFunction renderModule($module, $attribs = array()) expects an array. For some reasons it seems to get anything other than an array (probably an object). This causes the warning.
You can mute the warnings in the Joomla configuration (System > Configuration > Server > Error reporting = NONE) but this mutes all warnings and errors. Another think you could try is: Get rid of some code I used. [image: image] https://user-images.githubusercontent.com/985573/61708233-9fb3ef00-ad4c-11e9-8d7d-10640d867779.png Comment it with / and /, just like I did in the screenshot. The check if the plugin still works...
I hope this resolves your issues. Please let me know, so I can look further into it or update the plugin.
Lars
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/echterhoff/plg-globalvariables/issues/9?email_source=notifications&email_token=AHSLILHUHXVRVDFE2YUWWDLQA3TFNA5CNFSM4IF6DX42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2SZW5I#issuecomment-514169717, or mute the thread https://github.com/notifications/unsubscribe-auth/AHSLILGW7ILP6GC3CUBKG3TQA3TFNANCNFSM4IF6DX4Q .
I have installed this plugin and get these error messages when I activate the plugin I Have turned error reporting off as this is an error I am getting with some modules But I still get this error when reporting is switched to none and the errors disappear when I turn off the plugin.
Warning: Illegal string offset 'style' in /home/root/htdocs/libraries/src/Helper/ModuleHelper.php on line 235
Warning: Illegal string offset 'style' in /home/root/htdocs/libraries/src/Helper/ModuleHelper.php on line 252
I have another site which has a similar setup but I was using your plugin prior to upgrading to PHP7.2 and although I had similar errors they disappeared when I turned of Error reporting.
Any thoughts