WordPress database error Column 'attachment_status' cannot be null
-
Contact Form by BestWebSoft – Version 3.96
Contact Form to DB by BestWebSoft – Version 1.5.1I have Contact Form installed alone but it wasn’t sending emails, there were no errors and SMTP etc didn’t fix it.
So I installed CF to DB to see if it would save and this error came up in the error logs:
DOMAIN.com [Sat Dec 19 18:57:48 2015] [error] [client xxx.xxx.xxx.xxx:xxxxx] AH01215: WordPress database error Column 'attachment_status' cannot be null for query INSERT INTOtablepre_cntctfrmtdb_message(from_user,user_email,subject,message_text,sent,dispatch_counter,was_read,status_id,attachment_status) VALUES ('TestName', '[email protected]', 'Testing 17', 'qweghfqejwbgf', '1', '1', '0', '1', NULL) made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, cntctfrm_init, cntctfrm_check_and_send, cntctfrm_check_form, do_action('cntctfrm_check_dispatch'), call_user_func_array, cntctfrmtdb_check_dispatch, cntctfrmtdb_save_message, cntctfrmtdb_save_new_message: /home/sites/DOMAIN.com/public_html/index.phpI enabled the Attachment Block for the form (it was disabled), and then attached an image when I sent the form. This time the form saved to the DB *and* sent the email as expected.
This isn’t a required field and wasn’t even enabled on the form. Is this a plugin bug?
Thanks,
Hayley
The topic ‘WordPress database error Column 'attachment_status' cannot be null’ is closed to new replies.