Title: Getting WordPress database error for Yoast
Last modified: January 28, 2021

---

# Getting WordPress database error for Yoast

 *  Resolved [sandeep2408](https://wordpress.org/support/users/sandeep2408/)
 * (@sandeep2408)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/getting-wordpress-database-error-for-yoast/)
 * Hi Team,
 * I have Multisite WordPress site and my WordPress and Yoast are upgraded. I am
   getting “PHP message: WordPress database error Field ‘target_post_id’ doesn’t
   have a default value for query INSERT INTO `wp_yoast_seo_links` (`url`, `type`,`
   indexable_id`, `post_id`) VALUES (‘uploads/sites/10/2020/11/SF00500019010.MAIN_-
   1-300×318.jpeg’, ‘image-ex’, ‘16096’, ‘27407’) made by Yoast\WP\Lib\ORM::execute”
   in server error log.
 * Please help to fix above error

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

 *  [Md Mazedul Islam Khan](https://wordpress.org/support/users/mazedulislamkhan/)
 * (@mazedulislamkhan)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/getting-wordpress-database-error-for-yoast/#post-13971309)
 * We are sorry to hear that you’re having trouble with our plugin. It looks like
   the `target_post_id` database table field has no value and as such, you’re experiencing
   the issue.
 * So, we’d like you to please perform the following steps to see whether this resolves
   the issue for you.
    - Install and activate [Yoast Test Helper](https://wordpress.org/plugins/yoast-test-helper/)
      plugin;
    - Go to Tools → Yoast Test → Yoast SEO → Reset indexables tables & migrations
      options to reset it;
    - Run SEO data optimization from the SEO → Tools page.
 * Let us know whether the issue persists.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/getting-wordpress-database-error-for-yoast/#post-14003484)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.

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

The topic ‘Getting WordPress database error for Yoast’ 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
 * 3 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/getting-wordpress-database-error-for-yoast/#post-14003484)
 * Status: resolved