Title: Database Error For Link Counter
Last modified: October 26, 2017

---

# Database Error For Link Counter

 *  Resolved [daniel27lt](https://wordpress.org/support/users/daniel27lt/)
 * (@daniel27lt)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/)
 * Since the last update, all my WordPress sites now show a database error from 
   the link counter (NOTE: This only shows when posting in backend):
 * Call Stack:
 *     ```
           WPSEO_Database_Proxy->insert()
           wp-content/plugins/wordpress-seo/admin/class-database-proxy.php:47
           get_default_post_to_edit()
           wp-admin/includes/post.php:607
           wp_insert_post()
           wp-includes/post.php:3510
           do_action('save_post')
           wp-includes/plugin.php:453
           WPSEO_Link_Watcher->save_post()
           wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php:52
           WPSEO_Link_Watcher->process()
           wp-content/plugins/wordpress-seo/admin/links/class-link-watcher.php:102
           WPSEO_Link_Content_Processor->process()
           wp-content/plugins/wordpress-seo/admin/links/class-link-content-processor.php:58
           WPSEO_Link_Content_Processor->update_link_counts()
           wp-content/plugins/wordpress-seo/admin/links/class-link-content-processor.php:70
           WPSEO_Link_Content_Processor->update_incoming_links()
           wp-content/plugins/wordpress-seo/admin/links/class-link-content-processor.php:119
           WPSEO_Meta_Storage->update_incoming_link_count()
           wp-content/plugins/wordpress-seo/admin/class-meta-storage.php:106
           WPSEO_Meta_Storage->save_meta_data()
           wp-content/plugins/wordpress-seo/admin/class-meta-storage.php:72
           WPSEO_Database_Proxy->upsert()
           wp-content/plugins/wordpress-seo/admin/class-database-proxy.php:87
       ```
   
 * Error: Duplicate entry ‘238675’ for key ‘object_id’
 * This have never shown before in the years I’ve been using Yoast SEO plugin. Can
   anyone help to as of why this is starting to show now?
 * Thanks

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

 *  [teknofilo](https://wordpress.org/support/users/teknofilo/)
 * (@teknofilo)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/#post-9624246)
 * Same here [https://wordpress.org/support/topic/duplicate-entry-for-key-object_id-in-wp_yoast_seo_meta/](https://wordpress.org/support/topic/duplicate-entry-for-key-object_id-in-wp_yoast_seo_meta/)
 *  [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * (@jerparx)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/#post-9624641)
 * [@daniel27lt](https://wordpress.org/support/users/daniel27lt/) A similar issue
   has already been reported in our Github repository: [https://github.com/Yoast/wordpress-seo/issues/7566](https://github.com/Yoast/wordpress-seo/issues/7566)
 * While we’re unable to confirm yet what might be the cause of this, we suggest
   you leave a comment on the Github post to let our developers know you are having
   the same problem.
 *  [teknofilo](https://wordpress.org/support/users/teknofilo/)
 * (@teknofilo)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/#post-9624748)
 * [@jerparx](https://wordpress.org/support/users/jerparx/), that issue you mention
   seems to be old (>2 months), but this problem seems to be caused by the latest
   update. Not sure it they are related though.
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/#post-9625796)
 * [@teknofilo](https://wordpress.org/support/users/teknofilo/) While the bug report
   was opened two months before, we can confirm the issue you’re experiencing is
   related to the relevant report. So, your issue will be resolved once the bug 
   is fixed.
 *  [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * (@jerparx)
 * [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/#post-9667476)
 * Closed due to inactivity.

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

The topic ‘Database Error For Link Counter’ 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/)

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)
 * [Yoast](https://wordpress.org/support/topic-tag/yoast/)

 * 5 replies
 * 4 participants
 * Last reply from: [Jerlyn](https://wordpress.org/support/users/jerparx/)
 * Last activity: [8 years, 7 months ago](https://wordpress.org/support/topic/database-error-for-link-counter/#post-9667476)
 * Status: resolved