Dear Samuel Silva,
I’m also experiencing issues as soon as I upgrade from PHP 7.4. to PHP 8.0 or above.
When WP_DEBUG
is set to true, I can see the following warning when using PHP 7.4:
Warning: in_array() expects parameter 2 to be array, bool given in /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/plugins/animated-fullscreen-menu/frontend-animatedfsmenu.php on line 121
However, as soon as I upgrade to 8.0 or later, the warning will become a fatal error, resulting in the following stack trace:
Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, bool given in /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/plugins/animated-fullscreen-menu/frontend-animatedfsmenu.php:121 Stack trace: #0 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/plugins/animated-fullscreen-menu/frontend-animatedfsmenu.php(121): in_array() #1 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/class-wp-hook.php(308): render_animatedfsmenu_nav() #2 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters() #3 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/plugin.php(517): WP_Hook->do_action() #4 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/general-template.php(3043): do_action() #5 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/themes/virtue_premium/templates/head.php(7): wp_head() #6 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/template.php(785): require('...') #7 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/template.php(718): load_template() #8 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/general-template.php(204): locate_template() #9 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/themes/virtue_premium/header.php(18): get_template_part() #10 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/template.php(783): require_once('...') #11 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/template.php(718): load_template() #12 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/general-template.php(48): locate_template() #13 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/themes/virtue_premium/base.php(10): get_header() #14 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-includes/template-loader.php(106): include('...') #15 /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-blog-header.php(19): require_once('...') #16 /mnt/web121/a1/54/51251354/htdocs/archbase-production/index.php(17): require('...') #17 {main} thrown in /mnt/web121/a1/54/51251354/htdocs/archbase-production/wp-content/plugins/animated-fullscreen-menu/frontend-animatedfsmenu.php on line 121
Many thanks in advance for your help and kind regards,
Christian