• Resolved amantica

    (@amantica)


    Added the free yoast plugin to my site and Yoast won’t work. Instead I get a message that there’s a critical error on my website. I then receive the error below via email. I have gone into troubleshooting mode and disabled all plugins except for Yoast and the issue persists. I also made sure to use a default theme (twenty-twenty) with all plugins disabled except for Yoast and the issue still persisted.

    Error Details
    =============
    An error of type E_ERROR was caused in line 39 of the file /www/wp-content/plugins/wordpress-seo/admin/tracking/class-tracking-server-data.php. Error message: Uncaught Error: Call to undefined function php_uname() in /www/wp-content/plugins/wordpress-seo/admin/tracking/class-tracking-server-data.php:39
    Stack trace:
    #0 /www/wp-content/plugins/wordpress-seo/admin/tracking/class-tracking-server-data.php(20): WPSEO_Tracking_Server_Data->get_server_data()
    #1 /www/wp-content/plugins/wordpress-seo/src/integrations/admin/helpscout-beacon.php(237): WPSEO_Tracking_Server_Data->get()
    #2 /www/wp-content/plugins/wordpress-seo/src/integrations/admin/helpscout-beacon.php(201): Yoast\WP\SEO\Integrations\Admin\HelpScout_Beacon->get_server_info()
    #3 /www/wp-content/plugins/wordpress-seo/src/integrations/admin/helpscout-beacon.php(156): Yoast\WP\SEO\Integrations\Admin\HelpScout_Beacon->get_session_data()
    #4 /wordpress/wp-includes/class-wp-hook.php(307): Yoast\WP\SEO\Integrations\Admin\HelpScout_Beacon->output_beacon_js(”)
    #5 /wordpress/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters(NULL, Array)
    #6 /wordpress/wp-includes/plugin.php(476): WP_Hook->do_action(Array)
    #7 /wordpress/wp-admin/admin-footer.php(78): do_action(‘admin_footer’, ”)
    #8 /wordpress/wp-admin/admin.php(297): require_once(‘/wordpress/wp-a…’)
    #9 {main}
    thrown`

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @amantica,

    Thank you for reaching out to us.

    Looking at the error stack, I assume you are using a very recent PHP version like 8.0.x or 8.1.x, is that correct? Can you please downgrade to PHP 7.4 and see if you can reproduce the issue? Please know that we continue to improve our compatibility with the latest PHP versions, but errors can still happen, especially with 8.1.x. Also, WordPress core itself is also still in ‘beta’ compatibility with PHP 8.0, let alone 8.1.

    Thread Starter amantica

    (@amantica)

    Thank you so much. I had our hosting provider downgrade PHP and the plugin is working as expected. I am not sure how the PHP was even upgraded to 8 because that has to be done manually.

    I am all set now. Thanks again!

    Nice, thank you for letting us know. I’ll mark the topic as resolved.

    Sami S

    (@sami-sanpakkila)

    Hi

    I just had this happen although Im running

    WordPress version 6.1.1
    Current plugin: Yoast SEO (version 19.10)
    PHP version 7.4.32

    Any advice?

    Sami

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress caught an error with one of your plugins, Yoast SEO.’ is closed to new replies.