CMS Made Simple Forums
https://forum.cmsmadesimple.org/

FrontEndUsers errormessage with php 7.2
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=79381
Page 1 of 1

Author:  almustone [ Tue Nov 13, 2018 7:39 am ]
Post subject:  FrontEndUsers errormessage with php 7.2

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

Author:  DIGI3 [ Tue Nov 13, 2018 4:01 pm ]
Post subject:  Re: FrontEndUsers errormessage with php 7.2

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.

Author:  almustone [ Wed Nov 14, 2018 6:41 am ]
Post subject:  Re: FrontEndUsers errormessage with php 7.2

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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/