Page 1 of 1

FrontEndUsers errormessage with php 7.2

Posted: Tue Nov 13, 2018 7:39 am
by almustone
Hi!

I have had zero problems with FEU and old php 5.6. I upgraded php version to 7.2 and now after login there is error message below welcome text.

Warning: count(): Parameter must be an array or an object that implements Countable in .../modules/FrontEndUsers/lib/class.feu_user_cache.php on line 161

Line 161 code is: if( count($fprops) && $rec['userid'] != $prev_uid && $prev_uid != null) {

I have updated to latest FEU version, but it's not working.

Is there any fix with that? I must update my website php version in a month.

Best regards

- Aleksi

Re: FrontEndUsers errormessage with php 7.2

Posted: Tue Nov 13, 2018 4:01 pm
by DIGI3
Currently CMSMS supports PHP 7.1, as do most of the major modules. PHP 7.2 works for the most part, but won't be officially supported by the core until 2.3.

You can still file a bug report for the module if there isn't one already, and perhaps just disable PHP warnings on the production site if the module still functions alright otherwise.

Re: FrontEndUsers errormessage with php 7.2

Posted: Wed Nov 14, 2018 6:41 am
by almustone
Thanks for the reply! How I can disable php warnings? I tried with .htaccess and with php.ini, but with no luck. Warning message is still showing.

I tried .htaccess with code: php_flag display_errors off
And php.ini with: error_reporting(0);

Best regards

Aleksi