Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
3.0k views
in Q2A Core by
edited by

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

by
what is the version of q2a, php and mysql?

1 Answer

0 votes
by

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.

...