• Resolved marikane

    (@marikane)


    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

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi, marikane, I am another Yoast SEO user.

    I believe that this is an issue with the latest version of the plugin, as you can see in this other support topic: https://www.ads-software.com/support/topic/wpseo_frontend-not-found-on-version-17-8/

    You could always install the previous version of the plugin to temporarily have that issue resolved until they release a new plugin update that fixes the issue (keeping in mind to make sure that you have a site back up before doing this, just to be safe): https://downloads.www.ads-software.com/plugin/wordpress-seo.17.7.1.zip

    Thread Starter marikane

    (@marikane)

    Hi Ian-

    Thanks for the advice. Yeah, I would rather not revert to an old version, knowing Yoast will probably put out an update soon to fix this. So for now I have deactivated Yoast to make the directory display. I hope that does not affect our traffic.

    Hi @marikane,

    The WPSEO_Frontend class has been deprecated since version 14.0 of our plugin. In version 17.8, we completely removed it. If any code tries to access that class, it will throw a fatal error.

    Looking at your error message, it looks like you have a plugin called w2dc, which, I guess, is the “Web 2.0 Directory plugin for WordPress”. This plugin seems to be calling this removed code and causing these errors.

    To prevent this error, you will have to disable that plugin and / or reach out to the maintainers of that plugin to make them aware of this issue. You can also provide them with this link with the current alternatives for the WPSEO_Frontend class.

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error in Directory pages: Uncaught Error: Class ‘WPSEO_Frontend’’ is closed to new replies.