Topic-icon PHP 7.1 problem?

Active Subscriptions:

None
6 years 11 months ago #61864 by StefanSchoch
Hi there,

I just switched from PHP 7.0 (with OPcache) to 7.1 (OPcache) and got the following error:
Warning: Parameter 2 to modChrome_artnostyle() expected to be a reference, value given in /var/www/web28672334/html/dia/templates/dia_9/html/modules.php on line 39

on this page:
dia-seminare.org/kontakt/login.html

When I switch back to PHP 7.0 OPcache (what I did) no error occurs.

Any tip what to do?

Thx!

Stefan
The topic has been locked.
Support Specialist
6 years 11 months ago #61866 by mel
Replied by mel on topic PHP 7.1 problem?
I'm confused from that error message without seeing that modules.php file. Just from the message, it seems like it's from a different module - modChrome_artnostyle. Could you provide more details on you think this is related to JFBConnect / SCLogin?

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 years 11 months ago #61869 by StefanSchoch
Replied by StefanSchoch on topic PHP 7.1 problem?
Hi Mel,

the module seems to be SCLogin.
The problem occurs on several sites (namely 2).

What they have in common is that we changed the CSS (see our other tickets). could this be related?

Stefan
The topic has been locked.
Support Specialist
6 years 11 months ago #61873 by alzander
Replied by alzander on topic PHP 7.1 problem?
Changing the CSS by itself shouldn't be able to create any sort of PHP error since the CSS files are sent directly to a user's browser. There's no PHP processing of those files before they get sent.

If you did a module override, then yes, it could cause those warnings. In that case, I'd recommend reverting back to our original code to see if the problem goes away. If so, then it could be many factors, including your template's compatibility with PHP7.1 and even Joomla itself.

Let us know what files you modified and if reverting those to the default SCLogin files fixes things and we can go from there.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
6 years 11 months ago #61902 by StefanSchoch
Replied by StefanSchoch on topic PHP 7.1 problem?
Hi Alex,

I'm sorry, but I can't even tell if there are any Module overrides. I'm too less an expert and usually ge t help by the support (i.e. yours). Sometimes such things as overriedes might be created, but without me really understanding what we're doing :-(

so how could I find out if there are any overrides?

Stefan
The topic has been locked.
Support Specialist
6 years 11 months ago #61904 by mel
Replied by mel on topic PHP 7.1 problem?
A module override for SCLogin would be found in /templates/YOUR_TEMPLATE_NAME/html/mod_sclogin folder. Check to see if this folder exists. If it does, you should be able to just rename the folder to something else. This will then load the view php files that come with the SCLogin module and you can see if the error clears up. Let us know what you find.
The topic has been locked.