Title: Yoast causing WordPress database error Duplicate entry
Last modified: March 16, 2022

---

# Yoast causing WordPress database error Duplicate entry

 *  Resolved [adampoly](https://wordpress.org/support/users/adampoly/)
 * (@adampoly)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/yoast-causing-wordpress-database-error-duplicate-entry/)
 * This error appears to have started after we updated to Yoast 18.3. It is getting
   logged quite often in our error_log file. How can we resolve and what actually
   does it mean?
 * `[15-Mar-2022 08:12:30 UTC] WordPress database error Duplicate entry '1305-0'
   for key 'PRIMARY' for query INSERT INTO`wp_yoast_indexable_hierarchy`(`indexable_id`,`
   ancestor_id`,`depth`,`blog_id`) VALUES ('1305', '0', '0', '1') made by require('
   wp-blog-header.php'), wp, WP->main, WP->parse_request, do_action_ref_array('parse_request'),
   WP_Hook->do_action, WP_Hook->apply_filters, rest_api_loaded, WP_REST_Server->
   serve_request, WP_REST_Server->dispatch, WP_REST_Server->respond_to_request, 
   WP_REST_Posts_Controller->get_item, WP_REST_Attachments_Controller->prepare_item_for_response,
   WP_REST_Posts_Controller->prepare_item_for_response, WP_REST_Controller->add_additional_fields_to_object,
   Yoast\WP\SEO\Routes\Yoast_Head_REST_Field->for_post, Yoast\WP\SEO\Actions\Indexables\
   Indexable_Head_Action->for_post, Yoast\WP\SEO\Actions\Indexables\Indexable_Head_Action-
   >with_404_fallback, Yoast\WP\SEO\Surfaces\Values\Meta->get_head, Yoast\WP\SEO\
   Surfaces\Values\Meta->create_html_presentation, Yoast\WP\SEO\Presenters\Schema_Presenter-
   >present, Yoast\WP\SEO\Presenters\Schema_Presenter->get, Yoast\WP\SEO\Presentations\
   Abstract_Presentation->__get, Yoast\WP\SEO\Presentations\Indexable_Presentation-
   >generate_schema, Yoast\WP\SEO\Generators\Schema_Generator->generate, Yoast\WP\
   SEO\Generators\Schema_Generator->generate_graph, Yoast\WP\SEO\Generators\Schema\
   Breadcrumb->generate, Yoast\WP\SEO\Presentations\Abstract_Presentation->__get,
   Yoast\WP\SEO\Presentations\Indexable_Presentation->generate_breadcrumbs, Yoast\
   WP\SEO\Generators\Breadcrumbs_Generator->generate, Yoast\WP\SEO\Repositories\
   Indexable_Repository->get_ancestors, Yoast\WP\SEO\Repositories\Indexable_Hierarchy_Repository-
   >find_ancestors, 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::execute`

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

 *  Thread Starter [adampoly](https://wordpress.org/support/users/adampoly/)
 * (@adampoly)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/yoast-causing-wordpress-database-error-duplicate-entry/#post-15464480)
 * Hi, We’ve got some extra info. Each time this error appears, we can correlate
   the time in the log, [15-Mar-2022 08:12:30 UTC] to exactly when we published 
   a new post. Running a test now on a few sites with different themes and Yoast
   18.3, publishing a new post with a description and page title causes this error.
 *  Plugin Support [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * (@maybellyne)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/yoast-causing-wordpress-database-error-duplicate-entry/#post-15464528)
 * Hello Adam,
 * I have responded to the same topic at [https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-15/#post-15464526](https://wordpress.org/support/topic/wordpress-database-error-duplicate-entry-15/#post-15464526)
 * You can reply on that thread. I will now mark this as resolved

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

The topic ‘Yoast causing WordPress database error Duplicate entry’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Maybellyne](https://wordpress.org/support/users/maybellyne/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/yoast-causing-wordpress-database-error-duplicate-entry/#post-15464528)
 * Status: resolved