Title: Migration problem &#8211; Invalid datetime format
Last modified: June 2, 2023

---

# Migration problem – Invalid datetime format

 *  Resolved [Easton Bavents](https://wordpress.org/support/users/microbe/)
 * (@microbe)
 * [3 years ago](https://wordpress.org/support/topic/migration-problem-invalid-datetime-format/)
 * Hi
 * I am having a problem where Mailpoet disappears from the dashboard and the following
   error message is displayed.
 * Migration “MailPoet\Migrations\Migration_20230503_210945” failed. Details: An
   exception occurred while executing ‘ALTER TABLE `wp_mailpoet_subscribers`
   ADD
   INDEX `first_name` (`first_name`(10))’:
 * SQLSTATE[22007]: Invalid datetime format: 1292 Incorrect datetime value: ‘0000-
   00-00 00:00:00’ for column ‘confirmed_at’ at row 13
 * FWIW the subscribers were imported from an existing list and no confirmed dates
   were available so I think they were imported as blanks.

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

 *  Plugin Support [Dani F. a11n](https://wordpress.org/support/users/danielinhou/)
 * (@danielinhou)
 * [3 years ago](https://wordpress.org/support/topic/migration-problem-invalid-datetime-format/#post-16804254)
 * Hi there [@microbe](https://wordpress.org/support/users/microbe/) 👋🏽!
 * Thank you for reaching out to MailPoet Support!
 * It seems indeed like a migration issue, but could you please update first to 
   the latest version of MailPoet and see if the issue disappears? I am asking because
   we’ve seen similar error messages in previous versions, just in case.
 * Looking forward to hearing back from you!
 * Cheers!
 *  Thread Starter [Easton Bavents](https://wordpress.org/support/users/microbe/)
 * (@microbe)
 * [3 years ago](https://wordpress.org/support/topic/migration-problem-invalid-datetime-format/#post-16804477)
 * Thanks – I had upgraded to the latest version of Mailpoet and it didn’t help.
   I fixed it by replacing running SQL to replace the ‘0000-00-00 00:00:00’ values
   with null.
 *  Plugin Support [Ojoma a11n](https://wordpress.org/support/users/geraltrivia/)
 * (@geraltrivia)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/migration-problem-invalid-datetime-format/#post-16815552)
 * Hello again [@microbe](https://wordpress.org/support/users/microbe/) ,
 * Thank you for getting back to us and letting us know you’ve been able to resolve
   this.
 * I’d be marking this as resolved now. Feel free to open a new thread if you need
   assistance with anything else.
 * Have a great day.

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

The topic ‘Migration problem – Invalid datetime format’ is closed to new replies.

 * ![](https://ps.w.org/mailpoet/assets/icon-256x256.png?rev=3284564)
 * [MailPoet - Newsletters, Email Marketing, and Automation](https://wordpress.org/plugins/mailpoet/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mailpoet/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mailpoet/)
 * [Active Topics](https://wordpress.org/support/plugin/mailpoet/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mailpoet/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mailpoet/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Ojoma a11n](https://wordpress.org/support/users/geraltrivia/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/migration-problem-invalid-datetime-format/#post-16815552)
 * Status: resolved