Database Error: Column ‘mail_id’ cannot be null
-
Hello,
two days ago, WP Mail Logging stopped logging any new Mail sent by our website. I did some testing and got these messages in my debug.log file:
WordPress Database Error Column 'mail_id' cannot be null for query INSERT INTO 'wp_wpml_mails ('mail_id', 'timestamp', 'host', 'receiver', 'subject','message', 'headers', 'attachments', 'error', 'plugin_version') VALUES (NULL, '2019-01-10 13:50:03', [...]It appears that the value for ‘mail_id’ gets lost somewhere before attempting to insert the logged mail into the database.
On our staging environment, I have tried switching to default themes (Twenty Nineteen and Twenty Fifteen) and deactivating all plugins except for WP Mail Logging, WP Mail SMTP and Check Email (to generate test mails). The issue persists.
The only thing that changed around the time as the logging stopped was that I updates WPML (Worpress Multilingual) to its latest version, but the error occurs even when WPML is deactivated.
The site runs on WordPress 5.0.3 (5.0.2 at the time logging stopped working) and the latest version of all plugins mentioned above.
Regards,
Rafael- This topic was modified 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by . Reason: Formatting
- This topic was modified 7 years, 4 months ago by .
- This topic was modified 7 years, 4 months ago by . Reason: Formatting again, the ` symbol within the code messes it all up
- This topic was modified 7 years, 4 months ago by .
The topic ‘Database Error: Column ‘mail_id’ cannot be null’ is closed to new replies.