• Resolved wordpresspresser

    (@wordpresspresser)


    Hi,

    “Oops, something has gone wrong and we couldn’t complete the optimization of your SEO data. Please click the button again to re-start the process.”

    I followed these instructions:
    1. Install & activate the Yoast Test Helper plugin
    2. Go to Tools -> Yoast Test
    3. Hit the “Reset Indexables & Migrations” button
    4. Under SEO ? Tools, click the “Click here to speed up your site now” button.

    Error log in WordPress root:
    [13-Feb-2021 23:28:10 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 /home/mywproot/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php on line 176 and defined in /home/mywproot/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php:340
    Stack trace:
    #0 /home/mywproot/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php(176): Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder->is_invalid_ancestor(false, 55, Array)
    #1 /home/mywproot/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php(112): Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder->add_ancestors_for_post(55, 710, Array)
    #2 /home/mywproot/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-builder.php(198): Yoast\WP\SEO\Builders\Indexable_Hierarc in /home/mywproot/public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-hierarchy-builder.php on line 340

    After running the Yoast Test Helper, this appears in the wp-admin subdir:
    [13-Feb-2021 23:29:43 UTC] WordPress database error Table ‘mywproot_myprefixwp.qldma_yoast_prominent_words’ doesn’t exist for query TRUNCATE TABLE qldma_yoast_prominent_words made by do_action(‘admin_post_wordpress-seo-feature-reset’), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\Test_Helper\WordPress_Plugin_Features->handle_reset_feature, Yoast\WP\Test_Helper\WordPress_Plugin_Features->reset_feature, Yoast\WP\Test_Helper\WordPress_Plugins\Yoast_SEO->reset_feature, Yoast\WP\Test_Helper\WordPress_Plugins\Yoast_SEO->reset_indexables, Yoast\WP\Test_Helper\WordPress_Plugins\Yoast_SEO->reset_prominent_words_calculation

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @wordpresspresser,

    We’re sorry to hear that this process isn’t working for you and resetting the Yoast data didn’t solve the problem.

    Just to be sure there aren’t any errors or conflicts, we’d like to get the following information:

    1. Are all your plugins and themes updated? Can you confirm that you’re using Yoast SEO 15.8? If you’re still seeing errors, please download and reinstall the latest version of Yoast SEO manually.

    2. Can you confirm that your version of WordPress and the server meets the plugin’s minimum requirements?

    3. Can you go to SEO > Tools and check for JavaScript errors in the console while you run the SEO data optimization?

    4. Are you able to run the optimization if all plugins are deactivated except for Yoast SEO? You can do this without affecting visitors to your site by using the Health Check plugin. See more details in our guide for How to check for conflicts.

    Thread Starter wordpresspresser

    (@wordpresspresser)

    Thanks, Priscilla! I skipped right to #4, and that worked perfectly.

    Thanks for reminding me about Health Check and for fixing my problem!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can’t perform the initial optimization step’ is closed to new replies.