Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

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

0 votes
58 views
asked Apr 9 in Q2A Core by Luis74
edited Apr 14 by Scott

mod_fcgid: stderr: PHP Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/httpdocs/qa-include/qa-base.php(725) : eval()'d code on line 86,

&

mod_fcgid: stderr: PHP Notice: Undefined index: userid in /var/www/vhosts/httpdocs/qa-include/qa-base.php(725) : eval()'d code on line 24,

Thaks for you help

commented Apr 9 by ProThoughts
what is the version of q2a, php and mysql?

1 Answer

0 votes
answered Apr 14 by Scott

Errors about "eval()'d code" stem from plugins or themes (long story short: Q2A rewrites theme code and layer plugins on the fly so they can all work together).

So try disabling plugins one by one until the warning goes away and that will be the culprit. After that look for uses of the count() function, probably something like count(@$var...)

If you're unable to debug it yourself, report it to the plugin developer.

...