Continuous error in Error Log
-
This is a continuation of https://ww.wp.xz.cn/support/topic/wordpress-database-error-duplicate-entry-deadlock-found/ as it has not been resolved.
[24-Dec-2023 14:06:35 UTC] WordPress database error Duplicate entry ‘2-0’ for key ‘PRIMARY’ for query INSERT INTO
w4pw_yoast_indexable_hierarchy(indexable_id,ancestor_id,depth,blog_id) VALUES (‘2’, ‘0’, ‘0’, ‘1’) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, capitalize_tag_names, wp_update_term, do_action(‘edited_term’), WP_Hook->do_action, WP_Hook->apply_filters, Yoast\WP\SEO\Integrations\Watchers\Indexable_Term_Watcher->build_indexable, Yoast\WP\SEO\Builders\Indexable_Builder->build_for_id_and_type, Yoast\WP\SEO\Builders\Indexable_Builder->build, Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder->build, Yoast\WP\SEO\Builders\Indexable_Hierarchy_Builder->save_ancestors, Yoast\WP\SEO\Repositories\Indexable_Hierarchy_Repository->add_ancestor, Yoast\WP\Lib\Model->save, Yoast\WP\Lib\ORM->save, Yoast\WP\Lib\ORM::executeMy error log is spitting out the above error in mass amounts, which I believe could be leading to the slowness of my website.
I have already tried the following instructions, but they did not help at all:
— start previously provided instructions—
Can you retry resetting SEO data once again and retrying the optimization via the WP CLI approach? This has helped some users in the past. To reset the data, please follow these steps:
- Install & activate the Yoast Test Helper plugin
- Go to your WordPress admin dashboard > Tools (sidebar) > Yoast Test
- Locate the Yoast SEO section and click on the ‘Reset indexables tables & migrations’, ‘Reset Prominent words calculation, and ‘Reset Internal link counter’ buttons. After each click, the page will reload to confirm that each reset was successful.
Now that we have removed any previously stored data, use the WP-CLI commands. This requires access to your server through a terminal service. Your web host may be able to help. If you have a large site, we highly recommend this method.
— end previously provided instructions—
Can you please offer further assistance?
The page I need help with: [log in to see the link]
The topic ‘Continuous error in Error Log’ is closed to new replies.