We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

i have this error in my log.file - Virtual Gifts | Forum

Onur
Onur Jun 16 '18
[Fri Jun 15 23:00:46 2018] [ow_core_log] [Warning] Message: count(): Parameter must be an array or an object that implements Countable File: /var/www/vhosts/ilkok.com/httpdocs/ow_plugins/virtual_gifts/bol/virtual_gifts_service.php Line:311
gami
gami Mar 4 '19

hi


have the same problem... oxwall probably doesn't really care...

dave Leader
dave Mar 10 '20
If you run php 7.2

if you get this message on virtual gifts

"count(): Parameter must be an array or an object that implements Countable"

edit  ow_plugins/virtual_gifts/bol/virtual_gifts_service.php  

line 313 change FROM

if(count($idList))

change TO

if(!empty($idList) && count($idList))

the problem is that if it is an null or empty array, it cant be counted, so we have to check for empty as well,  you can also use !is_null in place of

empty if you want to. like so


if(!is_null($idList) && count($idList))





You do not have permission to reply this topic