Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Rejected] php 7.2 count(): Parameter must be an array or an object that implements Countable
#3
I guess this line initializes the variables as empty arrays and should prevent exactly this error. But when this file is included by the plugin an error is generated here:

if(!is_array($attachments) && count($aid_list) > 0)


which means that $aid_list is somehow not initialized at that moment. Maybe the plugin somehow resets the initialized arrays. But the only mention of aid_list in the plugin code is this:

global $uid_list, $aid_list, $pid_list, $tid_list, $fid_list, $ann_list, $eid_list, $plugins, $user, $parameters;


But my PHP knowledge is not very good. I have sent bug report to Tapatalk.
Reply


Messages In This Thread
RE: php 7.2 count(): Parameter must be an array or an object that implements Countable - by panayot - 2019-09-11, 08:13 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)