Replies: 0
Greetings!
Suddenly we are getting a “There has been a critical error on this website” only on the site’s business directory.
PHP Fatal error: Uncaught Error: Class ‘WPSEO_Frontend’ not found in /home/canormlo/public_html/wp-content/plugins/w2dc/classes/shortcodes/directory_controller.php:749
Stack trace:
#0 /home/canormlo/public_html/wp-includes/class-wp-hook.php(305): w2dc_directory_controller->configure_seo_filters(NULL)
#1 /home/canormlo/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters('', Array)
#2 /home/canormlo/public_html/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#3 /home/canormlo/public_html/wp-includes/general-template.php(38): do_action('get_header', NULL, Array)
#4 /home/canormlo/public_html/wp-content/themes/generatepress/page.php(17): get_header()
#5 /home/canormlo/public_html/wp-includes/template-loader.php(106): include('/home/canormlo/...')
#6 /home/canormlo/public_html/wp-blog-header.php(19): require_once('/home/canormlo/...')
#7 /home/canormlo/public_html/index.php(17): require('/home/canormlo/...')
#8 {main}
Note that I have deactivated Yoast SEO and now the pages are working. But I want Yoast to work for us.
I tried deactivating certain plugins like Defender, WP Optimize while reinstalling Yoast 17.8, but the problem persists.
Please tell me what else I can do to fix this issue.
Thanks!
Mari