Title: Error running SEO data optimization
Last modified: February 24, 2021

---

# Error running SEO data optimization

 *  Resolved [artifexmedia](https://wordpress.org/support/users/artifexmedia/)
 * (@artifexmedia)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/)
 * Hi,
 * This topic is already been asked before in the past few days (please, this should
   let you know something is wrong!!) but here we go again as well:
 * Running SEO data optimization is causing the following error:
    `[24-Feb-2021 
   11:34:18 UTC] PHP Fatal error: Uncaught TypeError: Argument 1 passed to Yoast\
   WP\SEO\Builders\Indexable_Hierarchy_Builder::is_invalid_ancestor() must be an
   instance of Yoast\WP\SEO\Models\Indexable, bool given, called in /var/www/vhosts/#
   DOMAIN#/httpdocs/wp-content/plugins/wordpress-seo-premium/src/builders/indexable-
   hierarchy-builder.php on line 176 and defined in /var/www/vhosts/#DOMAIN/httpdocs/
   wp-content/plugins/wordpress-seo-premium/src/builders/indexable-hierarchy-builder.
   php:340`
 * Now, to verify before:
    – Yes, I did use the Health Check & Troubleshooting plug-
   in, isolated everything untill only Yoast was running and the issue persists.
   With everything isolated it runs about 50% and then still crashes. – Yes, I did
   use above mentioned plug-in with WordPress’ default theme. – Yes, I did deactive
   all plug-ins to see if that helps – Yes, I did deactive everything possible, 
   even the themes except the default WP theme – Yes, I did clear all caches – Yes,
   I ran every troubleshooting option there is available with WP, Yoast + addons
   from Yoast and/or WP
 * The issue perists on a clean install with ONLY Yoast SEO activated and also on
   an active install with Troubleshooting running only with Yoast SEO, for me but
   as well as others with the same topic and issues.
    -  This topic was modified 5 years, 3 months ago by [artifexmedia](https://wordpress.org/support/users/artifexmedia/).

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

 *  [Rumejan](https://wordpress.org/support/users/onlyincebu/)
 * (@onlyincebu)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14095560)
 * Hello!
 * Sorry for the trouble. First, we want to assure you that not performing the optimization
   process will not affect your site negatively in the search results. Additionally,
   even if you don’t perform the optimization process, it will still run silently
   in the background as content on your site gets traffic or modified. The optimization
   process though will make our plugin work more efficiently.
 * Can you please perform the following and see if it resolves the issue?
    1. Install & activate the [Yoast Test Helper plugin](https://wordpress.org/plugins/yoast-test-helper/).
    2. Go to your WordPress admin dashboard > Tools (sidebar) > Yoast Test.
    3. Locate the Yoast SEO section and select the ‘Reset Internal link counter’, ‘
       Reset Prominent words calculation’, and ‘Reset Indexables tables & migrations’
       buttons.
    4. After resetting, go to the WordPress admin dashboard > SEO (sidebar) > Tools
       section and click the ‘Start SEO data optimization’ button.
 * Does that resolve the issue?
 *  Thread Starter [artifexmedia](https://wordpress.org/support/users/artifexmedia/)
 * (@artifexmedia)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14096733)
 * Hi,
 * Thank you for the info, however – no luck.
    I did in fact already had the plugin
   installed and used all of those buttons before as well, but tried it again; no
   luck – same error 🙁
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14098409)
 * [@artifexmedia](https://wordpress.org/support/users/artifexmedia/) Thanks for
   your reply.
 * Can you please check if during the SEO optimization whether any JavaScript errors
   appear in the browser console? We have more information on this here: [https://yoast.com/help/how-to-find-javascript-errors-with-your-browsers-console/](https://yoast.com/help/how-to-find-javascript-errors-with-your-browsers-console/)
 *  Thread Starter [artifexmedia](https://wordpress.org/support/users/artifexmedia/)
 * (@artifexmedia)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14098414)
 * Hi,
 * There are no JS errors 🙁
 *  [Rumejan](https://wordpress.org/support/users/onlyincebu/)
 * (@onlyincebu)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14098894)
 * Hello [@artifexmedia](https://wordpress.org/support/users/artifexmedia/)!
 * We’re able to confirm this is a bug. There is a fix for this in the 16.0 release.
 *  Thread Starter [artifexmedia](https://wordpress.org/support/users/artifexmedia/)
 * (@artifexmedia)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14099536)
 * Hi,
 * Thank you, could you let me know when it’s estimated to be released?
 *  [Suwash Kunwar](https://wordpress.org/support/users/suascat_wp/)
 * (@suascat_wp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14099623)
 * Unfortunately, we do not have an estimated time for the release of this version.
   Please subscribe to our [newsletter](https://yoast.com/newsletter/) for announcements
   and updates.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14129456)
 * 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 8 replies - 1 through 8 (of 8 total)

The topic ‘Error running SEO data optimization’ 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/)

 * 8 replies
 * 4 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/error-running-seo-data-optimization/#post-14129456)
 * Status: resolved