• Resolved gaspar

    (@gaspar)


    I can not complete the command wp yoast index
    It is reaching the post index to 100% and keeps going.
    Not reaching the next step (terms)

    Exactly the same problem as described here (over 2 years ago):
    https://www.ads-software.com/support/topic/yoast-index-with-wp-cli/

    No cache is used. Number of posts over 100k.
    I even increased wpseo_post_indexation_limit (no dice).

    What is going on with this code -why doesn’t it reach to $progress->finish();

    	protected function run_indexation_action( $name, Indexation_Action_Interface $indexation_action, $interval ) {
    		$total = $indexation_action->get_total_unindexed();
    		if ( $total > 0 ) {
    			$limit    = $indexation_action->get_limit();
    			$progress = Utils\make_progress_bar( 'Indexing ' . $name . '(' . $limit . ')', $total );
    			do {
    				$indexables = $indexation_action->index();
    				$count      = \count( $indexables );
    				$progress->tick( $count );
    				\usleep( $interval );
    				Utils\wp_clear_object_cache();
    			} while ( $count >= $limit );
    			$progress->finish();
    		}
    	}
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Gaspar,

    I’m sorry you couldn’t complete the SEO data optimization. It seems the WP CLI indexation was never completed. Please check to see if the index command will run if all non-Yoast SEO plugins are deactivated. You can do this at the command line using the –skip-plugins argument.

    An example:

    wp yoast index –reindex –skip-plugins=wordpress-importer

    Also, I recommend checking that WordPress and other plugins are updated to the latest version and that your setup meets our plugin requirements

    • This reply was modified 2 years ago by Maybellyne.
    Thread Starter gaspar

    (@gaspar)

    This command doesn’t work:

    wp yoast index –reindex –skip-plugins=wordpress-importer
    Error: Too many positional arguments: –reindex –skip-plugins=wordpress-importer

    PHP 7.4.32 (memory_limit 1024M)
    MYSQL 10.4.26-MariaDB
    WP-CLI 2.6.0
    Wordpress 6.1.1
    wordpress-seo 19.10

    Plugin Support Maybellyne

    (@maybellyne)

    Do you have the WordPress Importer plugin active? That command checks if the source of the problem is an active plugin; in this case, WordPress importer is an example. So you have to replace with plugins you have active. Here is a documentation for further details – https://make.www.ads-software.com/cli/handbook/guides/identify-plugin-theme-conflict/

    Thread Starter gaspar

    (@gaspar)

    So i figured it out finally.

    The correct syntax is wp yoast index --reindex --skip-plugins=$PLUGIN_LIST

    $PLUGIN_LIST – substitute this with your plugin list, separated by comma, excluded wordpress-seo (Yoast plugin).

    This allows reindex all YOAST SEO data.

    Extra tip. You can also add --skip-themes to avoid problems with theme(s) code.

    • This reply was modified 2 years ago by gaspar.
    • This reply was modified 2 years ago by gaspar.
    • This reply was modified 2 years ago by gaspar.
    • This reply was modified 2 years ago by gaspar.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp yoast index goes beyond 100% and keep going’ is closed to new replies.