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

Warning: count(): Parameter must be an array or an object that implements Countable in /home/satechh/public_html/qa-include/qa-base.php(720) : eval()'d code on line 110

Q2A version: 1.8.4
by

1 Answer

0 votes
by
edited by

Hi Thom,

There are several forks of this plugin out there but what worked for me is editing layer.php and replacing:

if(count(@$this->content['navigation']['cat']) && qa_opt('useo_cat_title_nav_enable')){

with:

if(isset($this->content['navigation']['cat']) && count($this->content['navigation']['cat']) && qa_opt('useo_cat_title_nav_enable')){

and replacing

if (count(@$useo_tag_desc_list)) {

with

if (is_array(@$useo_tag_desc_list) && count($useo_tag_desc_list)) {

wherever they occur.

I hope it also works out for you. :-)

by
+1
I have changed the code in the same way that you have asked me to change the code in answer to this question. But even then the error comes.
by
I can try to help only if I have the information I asked.
by
You can do one thing. You can modify the plugin and give me the plugin. Then the easiest is
by
+2
I've done that before for other community members with terrible results so I won't do that; I learned this lesson the hard way.

But you have some other options:
* Report this issue to the plugin developer
* Ask a developer to fix these issues for you
* Wait for another community member to post an answer that works for you.
...