Title: DB errors
Last modified: November 30, 2017

---

# DB errors

 *  Resolved [Юрій](https://wordpress.org/support/users/yube/)
 * (@yube)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/db-errors-4/)
 * There are regular DB errors like this
 *     ```
       INSERT INTO wp_yoast_seo_meta (object_id, incoming_link_count) VALUES (2381, '0')
       Duplicate entry '2381' for key 'object_id'
       ```
   
 * Ver 5.8

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

 *  [Nile Flores](https://wordpress.org/support/users/blondishnet/)
 * (@blondishnet)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/db-errors-4/#post-9746238)
 * Are there any other lines of errors before or after that? If so, can you please
   share?
 *  Thread Starter [Юрій](https://wordpress.org/support/users/yube/)
 * (@yube)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/db-errors-4/#post-9747099)
 * Nothing more, like this only.
 *     ```
       INSERT INTO wp_yoast_seo_meta (object_id, incoming_link_count) VALUES (23200, '0')
       Duplicate entry '23200' for key 'object_id'
       ```
   
 * (I get errors on email. I wrote special plugin))))
 *  Thread Starter [Юрій](https://wordpress.org/support/users/yube/)
 * (@yube)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/db-errors-4/#post-9747431)
 * I think the source of errors is in the unconditional INSERT ($this->insert)
 *     ```
       	public function upsert( array $data, array $where, $format = null, $where_format = null ) {
       		$result = $this->insert( $data, $format );
   
       		if ( false === $result ) {
       			$result = $this->update( $data, $where, $format, $where_format );
       		}
   
       		return $result;
       	}
       ```
   
 * Maybe it’s better to use REPLACE or INSERT IGNORE?
 * The invisible (for most users) ERROR still remains an ERROR.
 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/db-errors-4/#post-9788946)
 * [@yube](https://wordpress.org/support/users/yube/) Thanks for your provided feedback.
   Can you please confirm whether the issue persists with the latest Yoast SEO v5.9.3
   and WordPress v4.9.1?
 * If yes, we expect this to be a bug. We’re actively using the bug tracking on 
   our GitHub repository so your best next step would be to create a new issue for
   our developers at [https://github.com/Yoast/wordpress-seo/issues/new](https://github.com/Yoast/wordpress-seo/issues/new).
   You will need an account to create a new issue. If this is your first bug report,
   please check out: [https://kb.yoast.com/kb/how-to-write-a-good-bug-report/](https://kb.yoast.com/kb/how-to-write-a-good-bug-report/).
 * Don’t forget to include the URL to this conversation in your bug report.
 *  Thread Starter [Юрій](https://wordpress.org/support/users/yube/)
 * (@yube)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/db-errors-4/#post-9788982)
 * > Can you please confirm whether the issue persists with the latest Yoast SEO
   > v5.9.3 and WordPress v4.9.1?
 * Yes. Errors can not fail to be, because it is in the algorithm. Look at my post
   above. Insert causes “Duplicate entry”, and you check **this error** by `if (
   false === $result)`.
 * > If yes, we expect this to be a bug.
 * It’s an **error in the algorithm**.
 * > so your best next step would be to create
 * I can simply turn off report about this kind of errors. I think that is enough
   that I reported the error here and indicated its cause.
 * Good luck, colleagues!

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

The topic ‘DB errors’ 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [Юрій](https://wordpress.org/support/users/yube/)
 * Last activity: [8 years, 5 months ago](https://wordpress.org/support/topic/db-errors-4/#post-9788982)
 * Status: resolved