Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joomla 3.9.10 PHP 7.2 #9

Open
Graemezee opened this issue Jul 22, 2019 · 2 comments
Open

Joomla 3.9.10 PHP 7.2 #9

Graemezee opened this issue Jul 22, 2019 · 2 comments

Comments

@Graemezee
Copy link

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

@echterhoff
Copy link
Owner

echterhoff commented Jul 23, 2019

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

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)
image
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

@Graemezee
Copy link
Author

Graemezee commented Jul 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants