Tagged: fatal error, PHP 8
Hi,
we have an issue here, this is happening both on php 8.0 and 8.2, with the newest update of the theme:
Fatal error: Uncaught TypeError: avia_accessibility_body_class(): Argument #1 ($classes) must be of type array, null given, called in /home/2/l/lynn/www/wp/wp-includes/class-wp-hook.php on line 310 and defined in /home/2/l/lynn/www/wp/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php:2877 Stack trace: #0 /home/2/l/lynn/www/wp/wp-includes/class-wp-hook.php(310): avia_accessibility_body_class(NULL) #1 /home/2/l/lynn/www/wp/wp-includes/plugin.php(205): WP_Hook->apply_filters(NULL, Array) #2 /home/2/l/lynn/www/wp/wp-includes/post-template.php(853): apply_filters('body_class', Array, Array) #3 /home/2/l/lynn/www/wp/wp-includes/post-template.php(612): get_body_class(Array) #4 /home/2/l/lynn/www/wp/wp-content/themes/enfold/header.php(239): body_class('stretched rtl_c...') #5 /home/2/l/lynn/www/wp/wp-includes/template.php(783): require_once('/home/2/l/lynn/...') #6 /home/2/l/lynn/www/wp/wp-includes/template.php(718): load_template('/home/2/l/lynn/...', true, Array) #7 /home/2/l/lynn/www/wp/wp-includes/general-template.php(48): locate_template(Array, true, true, Array) #8 /home/2/l/lynn/www/wp/wp-content/themes/enfold/template-builder.php(15): get_header() #9 /home/2/l/lynn/www/wp/wp-includes/template-loader.php(106): include('/home/2/l/lynn/...') #10 /home/2/l/lynn/www/wp/wp-blog-header.php(19): require_once('/home/2/l/lynn/...') #11 /home/2/l/lynn/www/index.php(17): require('/home/2/l/lynn/...') #12 {main} thrown in /home/2/l/lynn/www/wp/wp-content/themes/enfold/framework/php/function-set-avia-frontend.php on line 2877