Simple mentions

Not compatible with PHP 7.2 - Simple mentions

Not compatible with PHP 7.2

by vfrblue » Sun Jan 21, 2018 2:03 pm

I use Simple mentions Ver 1.0.2 with phpBB 3.2.2 on PHP 7.2.1 and get this Error-Message
[phpBB Debug] PHP Warning: in file [ROOT]/ext/paul999/mention/event/main_listener.php on line 381: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 1836: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3268)
vfrblue
Registered User
Posts: 10
Joined: Sun Sep 17, 2017 3:06 pm
Contact:

Re: Not compatible with PHP 7.2

by Yolo99999 » Tue Mar 20, 2018 10:43 pm

Hello vfrblue & Paul,

The solution is fairly easy. Just go to [ROOT]/ext/paul999/mention/event/main_listener.php on line 381 and replace "sizeof" with "isset". Empty your boards cache if you must and try again, the debug warning is gone.

I hope Paul will release 1.0.3 soon.
Yolo99999
Registered User
Posts: 1
Joined: Tue Mar 20, 2018 10:39 pm
Contact:

Re: Not compatible with PHP 7.2

by enter a valid email » Fri Oct 19, 2018 2:41 pm

How about now? I will make an clean install and would chance to an higher php Version.
Joomla is or will be compatible soon and may require an higher php version.
enter a valid email
Registered User
Posts: 322
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact: