• Resolved SimonePols

    (@simonepols)


    Hi there,

    Since a few days I have a problem with Yoast SEO Plugin.

    Every time I click on one of the two items (WooCommerce products) I get this error

    Fatal error: Uncaught TypeError: Argument 1 passed to Yoast\WP\SEO\Generators\Breadcrumbs_Generator::Yoast\WP\SEO\Generators\{closure}() must be an instance of Yoast\WP\SEO\Models\Indexable, bool given in /home/customer/www/simonepols.com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.php:141 Stack trace: #0 [internal function]: Yoast\WP\SEO\Generators\Breadcrumbs_Generator->Yoast\WP\SEO\Generators\{closure}(false) #1 /home/customer/www/simonepols.com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.php(168): array_map(Object(Closure), Array) #2 /home/customer/www/simonepols.com/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-presentation.php(765): Yoast\WP\SEO\Generators\Breadcrumbs_Generator->generate(Object(Yoast\WP\SEO\Context\Meta_Tags_Context)) #3 /home/customer/www/simonepols.com/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.php(64): Yoast\WP\SEO\Presentations\Indexable_Presentation->g in /home/customer/www/simonepols.com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.php on line 141

    The problem disappears if I deactivate Yoast SEO Plugin.

    I already tried to update all plugins to the latest version, as well as the website theme (and child theme too).

    I have found some other posts related to a similar error, and all of them were closed after a while for a lack of answer from the person that had opened them, unfortunately it didn’t help much.

    Any suggestion?

    Thanks a lot,
    Simone

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Simone,

    Thanks for reaching out about the fatal error. This is related to breadcrumbs and your PHP version. Can you confirm what version of PHP your server is on?

    We just released Yoast SEO v19.12 which includes lots of enhancements and bug fixes relating to this. More importantly, we have reduced noise from PHP 8.1 deprecations and improved compatibility with PHP 8.2.

    Please update your Yoast SEO and let us know if the problem persists.

    • This reply was modified 3 years, 6 months ago by Maybellyne.
    Thread Starter SimonePols

    (@simonepols)

    Great timing guys, with the new update it is working fine again. My php version is 7.4.33, would you recommend updating it just in case even if now it is working?

    Thanks a lot
    Simone

    Plugin Support Maybellyne

    (@maybellyne)

    Hello Simone,

    Thanks for the feedback, and glad to know the update resolved the problem. Support for PHP 7.4 ended 28th November 2022. So it would be best if you considered updating your PHP version.

    Thread Starter SimonePols

    (@simonepols)

    Updated, thanks again Maybellyne 🙂

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Fatal Error on YOAST Plugin’ is closed to new replies.