FrontEndUsers errormessage with php 7.2

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
almustone
Forum Members
Forum Members
Posts: 43
Joined: Wed Oct 22, 2014 7:04 pm

FrontEndUsers errormessage with php 7.2

Post 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
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1609
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: FrontEndUsers errormessage with php 7.2

Post 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.
Not getting the answer you need? CMSMS support options
almustone
Forum Members
Forum Members
Posts: 43
Joined: Wed Oct 22, 2014 7:04 pm

Re: FrontEndUsers errormessage with php 7.2

Post 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
Post Reply

Return to “Modules/Add-Ons”