Title: Fatal error: Uncaught TypeError
Last modified: March 4, 2021

---

# Fatal error: Uncaught TypeError

 *  Resolved [mainedogmag](https://wordpress.org/support/users/mainedogmag/)
 * (@mainedogmag)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/)
 * **When trying to view posts on my Website I’m getting the following 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/sunstoneconsult.
   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/sunstoneconsult.
   com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.
   php(168): array_map(Object(Closure), Array) #2 /home/customer/www/sunstoneconsult.
   com/public_html/wp-content/plugins/wordpress-seo/src/presentations/indexable-
   presentation.php(665): Yoast\WP\SEO\Generators\Breadcrumbs_Generator->generate(
   Object(Yoast\WP\SEO\Context\Meta_Tags_Context)) #3 /home/customer/www/sunstoneconsult.
   com/public_html/wp-content/plugins/wordpress-seo/src/presentations/abstract-presentation.
   php(64): Yoast\WP\SEO\Presentations\Index in /home/customer/www/sunstoneconsult.
   com/public_html/wp-content/plugins/wordpress-seo/src/generators/breadcrumbs-generator.
   php on line 141
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ffatal-error-uncaught-typeerror-7%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14135728)
 * We are sorry to see that you’re having trouble with our plugin. To investigate
   the issue further, we’d like you to please perform a conflict check first by 
   disabling all the 3rd party plugins except Yoast SEO and switching the theme 
   to the default 2021 to see whether you can find the exact cause of the issue.
   You can find the relevant conflict check guide here [https://yoast.com/help/how-to-check-for-plugin-conflicts/](https://yoast.com/help/how-to-check-for-plugin-conflicts/).
 *  Thread Starter [mainedogmag](https://wordpress.org/support/users/mainedogmag/)
 * (@mainedogmag)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14135776)
 * It’s definitely the Yoast plugin itself. I activated troubleshooting mode on 
   my site so that it was like I just installed Wordopress for the first time and
   I also disabled all of the plugins except for Yoast and I still get the error.
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14135799)
 * Thanks for your confirmation. That’s very odd as we haven’t received such a report
   from anyone else before. In this case, can you please try reinstalling the Yoast
   SEO plugin to see whether it resolves it?
 * If not, can you please try resetting the Yoast SEO Indexables tables and migrations
   by following the steps given below to see if it resolves it for you?
    - Install and activate [Yoast Test Helper](https://wordpress.org/plugins/yoast-test-helper/)
      plugin;
    - Go to Tools → Yoast Test → Yoast SEO → Reset indexables tables & migrations
      options to reset it;
    - Run SEO data optimization from the SEO → Tools page.
 * Let us know whether the issue persists after performing the above steps.
 *  Thread Starter [mainedogmag](https://wordpress.org/support/users/mainedogmag/)
 * (@mainedogmag)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14136016)
 * Still didn’t fix anything…
 *  Plugin Support [Michael Tiña](https://wordpress.org/support/users/mikes41720/)
 * (@mikes41720)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14137003)
 * Hi,
 * We’re sorry to hear that the issue is still occurring. Just to clarify, you’ve
   attempted to reinstall the plugin (please do try to [update to the latest version manually via FTP](https://yoast.com/help/how-can-i-update-my-premium-plugin/#ftp)),
   and then even after reinstalling/updating, and then enabling troubleshooting 
   mode with just a default WordPress theme such as TwentyTwentyOne and only the
   Yoast SEO v15.9.1 plugin enabled, the fatal error still occurs on [http://sunstoneconsult.com/press-release/](http://sunstoneconsult.com/press-release/)?
 * Are you using the Yoast SEO breadcrumbs on your website? Did you add the code
   in order to implement the breadcrumbs — [https://yoast.com/help/implement-wordpress-seo-breadcrumbs/](https://yoast.com/help/implement-wordpress-seo-breadcrumbs/)
 *  Thread Starter [mainedogmag](https://wordpress.org/support/users/mainedogmag/)
 * (@mainedogmag)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14139239)
 * Correct, after trying those things I still get the error.
    No, I have breadcrumbs
   turned off and have not added any code.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14140199)
 * [@mainedogmag](https://wordpress.org/support/users/mainedogmag/) We understand
   that you previously tried disabling other plugin and that the error still occurred.
   Can you please confirm whether the issue still occurs when using a default theme
   such as TwentyTwenty and only the Yoast SEO plugin active?
 *  [gstar](https://wordpress.org/support/users/gstar/)
 * (@gstar)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14142434)
 * Following for updates.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14144177)
 * [@gstar](https://wordpress.org/support/users/gstar/) Are you also receiving the
   error or ‘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’ as well?
 * If so, per the [forum guidelines](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too),
   we ask that you please create a separate topic for the issue you are experiencing.
 * That way it’s easier to track issues and provide assistance on your specific 
   concerns on your specific site. Plus, you will get your own alerts for the issue
   rather than someone else’s. You may make a new topic here: [https://wordpress.org/support/plugin/wordpress-seo/#new-post](https://wordpress.org/support/plugin/wordpress-seo/#new-post).
 *  Thread Starter [mainedogmag](https://wordpress.org/support/users/mainedogmag/)
 * (@mainedogmag)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14146391)
 * [@devnihil](https://wordpress.org/support/users/devnihil/) – yes, I still get
   the error when using the default theme.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14147354)
 * [@mainedogmag](https://wordpress.org/support/users/mainedogmag/) Thanks for your
   reply and for confirming.
 * Based on the information you provided, we expect this to be a bug. We’re actively
   using the bug tracking on our GitHub repository so your best next step would 
   be to create a new issue for our developers at [https://github.com/Yoast/wordpress-seo/issues/new](https://github.com/Yoast/wordpress-seo/issues/new).
   You will need an account to create a new issue. If this is your first bug report,
   please check out: [https://yoast.com/help/how-to-write-a-good-bug-report/](https://yoast.com/help/how-to-write-a-good-bug-report/).
 *  [Justin Freid](https://wordpress.org/support/users/justinfreid/)
 * (@justinfreid)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14150912)
 * I have the same error.
 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14151276)
 * Hi [@justinfreid](https://wordpress.org/support/users/justinfreid/)!
 * We are happy to take a closer look at this issue! If so, [per the forum guidelines](https://wordpress.org/support/forum-user-guide/faq/#i-have-the-same-problem-can-i-just-reply-to-someone-elses-post-with-me-too),
   we ask that you please create a separate topic for the issue you are experiencing.
 * That way it’s easier to track issues and provide assistance on your specific 
   concerns on your specific site. Plus, you will get your own alerts for the issue
   rather than someone else’s. You may make a new topic here: [https://wordpress.org/support/plugin/wordpress-seo/#new-post](https://wordpress.org/support/plugin/wordpress-seo/#new-post).
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14181137)
 * 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 14 replies - 1 through 14 (of 14 total)

The topic ‘Fatal error: Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

 * 14 replies
 * 7 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/fatal-error-uncaught-typeerror-7/#post-14181137)
 * Status: resolved