Tutor conflict with astra theme body_class
-
Hi,
We are having trouble with tutor plugin , it breaks our website when we update from version 1.9.7
This is the error it generates.[01-Feb-2022 17:46:03 UTC] PHP Fatal error: Uncaught Error: [] operator not supported for strings in /home/customer/www/staging23.example.com/public_html/wp-content/themes/astra/inc/markup-extras.php:82 Stack trace: #0 /home/customer/www/staging23.example.com/public_html/wp-includes/class-wp-hook.php(309): astra_body_classes('') #1 /home/customer/www/staging23.example.com/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters('', Array) #2 /home/customer/www/staging23.example.com/public_html/wp-includes/post-template.php(836): apply_filters('body_class', Array, Array) #3 /home/customer/www/staging23.example.com/public_html/wp-includes/post-template.php(595): get_body_class(Array) #4 /home/customer/www/staging23.example.com/public_html/wp-content/themes/fast/header.php(160): body_class() #5 /home/customer/www/staging23.example.com/public_html/wp-includes/template.php(770): require_once('/home/customer/...') #6 /home/customer/www/staging23.example.com/public_html/wp-includes/template.php(71 in /home/customer/www/staging23.example.com/public_html/wp-content/themes/astra/inc/markup-extras.php on line 82
If we comment out line number 52 in /wp-content/plugins/tutors/classes/Assets.php the error goes away and the website shows properly.
add_filter( 'body_class', array( $this, 'add_identifier_class_to_body' ) );
Can you please help.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Tutor conflict with astra theme body_class’ is closed to new replies.