Title: &#039;wp_posts.post_excerpt&#039; cannot be null
Last modified: August 31, 2016

---

# 'wp_posts.post_excerpt' cannot be null

 *  Resolved [rambillo](https://wordpress.org/support/users/rambillo/)
 * (@rambillo)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/wp_postspost_excerpt-cannot-be-null/)
 * In order to make the plugin work for me, I had to temporarily change the structure
   of ‘wp_posts’ table such that ‘post_excerpt’ would ALLOW NULL.
 * Before that, imports would throw many errors complaining of a null entry trying
   to be inserted. Result was import would complete successfully, but upon closer
   review, most if not all images were not imported and this error message (in debug
   mode) was oft-repeated.
 * Setting ‘wp_posts.post_excerpt’ to allow nulls for the duration of the import
   resolved the issue. After import, ‘wp_posts.post_excerpt’ was set back to not
   allow nulls.
 * Perhaps this issue is specific to the Blogger data I was importing, so please
   disregard if it was content specific.
 * [https://wordpress.org/plugins/blogger-importer/](https://wordpress.org/plugins/blogger-importer/)

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

 *  [ryanthisis](https://wordpress.org/support/users/ryanthisis/)
 * (@ryanthisis)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/wp_postspost_excerpt-cannot-be-null/#post-7011540)
 * This Worked for me.
 * Thanks
 *  Plugin Contributor [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 1 month ago](https://wordpress.org/support/topic/wp_postspost_excerpt-cannot-be-null/#post-7011541)
 * Try changing line 668 from this:
 *     ```
       $att_id = media_handle_sideload($file_array, $post_id, $description, array('post_excerpt' => $description));
       ```
   
 * To this:
 *     ```
       $att_id = media_handle_sideload($file_array, $post_id, $description);
       ```
   
 * Does that also fix the problem?

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

The topic ‘'wp_posts.post_excerpt' cannot be null’ is closed to new replies.

 * ![](https://ps.w.org/blogger-importer/assets/icon.svg?rev=2828582)
 * [Blogger Importer](https://wordpress.org/plugins/blogger-importer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/blogger-importer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/blogger-importer/)
 * [Active Topics](https://wordpress.org/support/plugin/blogger-importer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/blogger-importer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/blogger-importer/reviews/)

## Tags

 * [images](https://wordpress.org/support/topic-tag/images/)
 * [NULL](https://wordpress.org/support/topic-tag/null/)
 * [post_excerpt](https://wordpress.org/support/topic-tag/post_excerpt/)
 * [wp_posts](https://wordpress.org/support/topic-tag/wp_posts/)

 * 2 replies
 * 3 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/wp_postspost_excerpt-cannot-be-null/#post-7011541)
 * Status: resolved