Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Mail logger gives this error with enabled mimemail:
PDOException: SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1: INSERT INTO {mail_logger} (mailkey, mailto, subject, body, mailfrom, headers, date_sent, language) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4_name, :db_insert_placeholder_4_mail, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7);
Patch in attachment fixes this problem.
Comment | File | Size | Author |
---|---|---|---|
#1 | mail_logger_mimemail.patch | 1.31 KB | creaoy |
mail_logger-2.patch | 1.86 KB | creaoy |
Comments
Comment #1
creaoy CreditAttribution: creaoy commentedSorry, this one against latest dev.
Comment #2
litwol CreditAttribution: litwol commentedComment #3
cknglooks good.
Comment #4
fizk CreditAttribution: fizk commentedComment #5
fizk CreditAttribution: fizk commentedI can't reproduce this. If you still see this issue, please reopen this issue and include steps on how to reproduce the error.
Comment #6
michaellenahan CreditAttribution: michaellenahan at erdfisch commentedI got this error, but it was due to my calling drupal_mail() with one of the arguments missing.
Here, I forgot to supply the language, and got the error "Insert value list does not match column list".
When I provided the language, everything was fine and the new entry was written to the mail_logger table: