Errors after Activation

6.79K viewsIssues
1

Pls temme the solution for following issues :

Warning: in_array() expects parameter 2 to be array, boolean given in anspress-question-answer/includes/hooks.php on line 467

Warning: in_array() expects parameter 2 to be array, boolean given in anspress-question-answer/includes/hooks.php on line 490

0

I have the same error in den functions.php on line 1702 and 1711 on a new installation.

I cleared it out with making sure that the array cannot be empty but should be fixed.

 

e.g. if ( !empty($menu->classes) { …

0

I’ve just downloaded a fresh copy..installed again, After activation ..  still getting the same errors.

:

Warning: in_array() expects parameter 2 to be array, boolean given in anspress-question-answer/includes/hooks.php on line 467

Warning: in_array() expects parameter 2 to be array, boolean given in anspress-question-answer/includes/hooks.php on line 490

edited comment on answer
0

Can you please tell me the solution ? Its been 1 week .. I’m trying to contact anspress for support, first via email .. now through this support forum.

commented on answer

Please update to latest commit, its already been fixed.

0

Do you run your WP with Debug Enabled ?

That error for V3 is fixed at Github a few days ago.