• Resolved Mike

    (@mchlsync)


    Hello, I am getting this error below. I tried to google it but I don’t see much information. My website is created recently. So I got the WP 6.1 and Yoast 20.4. It is running on IIS 10 (Windows VM Azure ) and Php 7.4.

    Error Summary

    • PHP Fatal error: Uncaught Error: Class ‘Yoast_Notification’ not found
    • PHP Notice: Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false.
    • PHP Notice: Trying to get property ‘taxonomy’ of non-object in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\src\presentations\indexable-term-archive-presentation.php

    Error Log

    [30-Mar-2023 07:48:36 UTC] PHP Fatal error:  Uncaught Error: Class 'Yoast_Notification' not found in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php:171
    Stack trace:
    #0 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php(125): WPSEO_Product_Upsell_Notice->get_notification()
    #1 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php(47): WPSEO_Product_Upsell_Notice->remove_notification()
    #2 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-admin.php(358): WPSEO_Product_Upsell_Notice->initialize()
    #3 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-admin.php(80): WPSEO_Admin->set_upsell_notice()
    #4 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-admin-init.php(31): WPSEO_Admin->__construct()
    #5 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\wp-seo-main.php(383): WPSEO_Admin_Init->__construct()
    #6 C:\inetpub\wwwroot\wp-includes\class-wp-hook.php(308): wpseo_admin_init('')
    #7 C:\inetpub\wwwroot\w in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php on line 171
    [30-Mar-2023 07:48:36 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\inetpub\wwwroot\wp-includes\functions.php on line 5835
    [30-Mar-2023 07:48:36 UTC] PHP Notice:  Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\inetpub\wwwroot\wp-includes\functions.php on line 5835
    [30-Mar-2023 07:48:48 UTC] PHP Fatal error:  Uncaught Error: Class 'Yoast_Notification' not found in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php:171
    Stack trace:
    #0 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php(125): WPSEO_Product_Upsell_Notice->get_notification()
    #1 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php(47): WPSEO_Product_Upsell_Notice->remove_notification()
    #2 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-admin.php(358): WPSEO_Product_Upsell_Notice->initialize()
    #3 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-admin.php(80): WPSEO_Admin->set_upsell_notice()
    #4 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-admin-init.php(31): WPSEO_Admin->__construct()
    #5 C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\wp-seo-main.php(383): WPSEO_Admin_Init->__construct()
    #6 C:\inetpub\wwwroot\wp-includes\class-wp-hook.php(308): wpseo_admin_init('')
    #7 C:\inetpub\wwwroot\w in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\admin\class-product-upsell-notice.php on line 171
    [30-Mar-2023 07:48:48 UTC] PHP Notice:  Function is_embed was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\inetpub\wwwroot\wp-includes\functions.php on line 5835
    [30-Mar-2023 07:48:48 UTC] PHP Notice:  Function is_search was called <strong>incorrectly</strong>. Conditional query tags do not work before the query is run. Before then, they always return false. Please see <a href="https://www.ads-software.com/support/article/debugging-in-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 3.1.0.) in C:\inetpub\wwwroot\wp-includes\functions.php on line 5835
    [30-Mar-2023 07:56:20 UTC] PHP Notice:  Trying to get property 'taxonomy' of non-object in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\src\presentations\indexable-term-archive-presentation.php on line 163
    [30-Mar-2023 07:56:20 UTC] PHP Notice:  Trying to get property 'taxonomy' of non-object in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\src\presentations\indexable-term-archive-presentation.php on line 188
    [30-Mar-2023 07:56:20 UTC] PHP Notice:  Trying to get property 'taxonomy' of non-object in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\src\presentations\indexable-term-archive-presentation.php on line 194
    [30-Mar-2023 07:56:20 UTC] PHP Notice:  Trying to get property 'taxonomy' of non-object in C:\inetpub\wwwroot\wp-content\plugins\wordpress-seo\src\presentations\indexable-term-archive-presentation.php on line 222
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @mchlsync

    Thanks for reaching out about that error. Please try the following:

    1. Install & activate the Yoast Test Helper plugin
    2. Go to Tools > Yoast Test
    3. Locate the Yoast SEO section and click on the ‘Reset indexables tables & migrations‘, ‘Reset Prominent words calculation‘, and ‘Reset Internal link counter‘ buttons. After each click, the page will reload to confirm that the specific reset was successful.
    4. Go to SEO > Tools, and under SEO data, click the “Start SEO data optimization” button to allow Yoast to rescan your content.

    Please let us know if the reported issue remains after resetting the optimized data.

    This thread was marked resolved due to a lack of activity, but you’re always welcome to re-open the topic. Please read this post before opening a new request.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘PHP Fatal error: Uncaught Error: Class ‘Yoast_Notification’ not found’ is closed to new replies.