PHP Error on hooks.php

5.94K viewsIssues
0

Hello,

I just installed the plugin and gave me these errors on header of all pages, how can I fix it? Do I need to change the code?

Warning: in_array() expects parameter 2 to be array, boolean given in /srv/users/blabla/apps/domain/public/wp-content/plugins/anspress-question-answer/includes/hooks.php on line 556

Warning: in_array() expects parameter 2 to be array, boolean given in /srv/users/blabla/apps/domain/public/wp-content/plugins/anspress-question-answer/includes/hooks.php on line 564

0

Don’t we enable disable Debug from wp-config.php? I never touched that it was false, its a fresh wp installation and I didn’t install any of extensions…

 

commented on answer

Right. Then i have no ideas, probably some conflict with some plugin or the theme.

Rahul could help more on this.

0

Ok, can you try to update the Tags and category extension as well (fron github) ?

And let us know …

0

It appears on header before the menu on all pages as below screenshot, I use the latest versionĀ 3.0.7 via WP Plugins.

 

commented on answer

I’m pretty sure you have Debug enabled. Can’t show that without it.

0

Not an error but just a warning, because you enabled WP debug.

While is should be fixed, doesn’t impact Anspress plugin or your WP.

edited comment on answer

I didn’t enable WP debug, I checked it now and it looks disabled, am I wrong?

define(‘WP_DEBUG’, false);

Where does that appear ? When browsing your site ? On the screen ? What version of Anspress ?