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.

CommentFileSizeAuthor
#1 mail_logger_mimemail.patch1.31 KBcreaoy
mail_logger-2.patch1.86 KBcreaoy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

creaoy’s picture

FileSize
1.31 KB

Sorry, this one against latest dev.

litwol’s picture

Status: Patch (to be ported) » Needs review
ckng’s picture

Status: Needs review » Reviewed & tested by the community

looks good.

fizk’s picture

Category: Bug report » Feature request
Issue summary: View changes
fizk’s picture

Status: Reviewed & tested by the community » Closed (cannot reproduce)

I can't reproduce this. If you still see this issue, please reopen this issue and include steps on how to reproduce the error.

michaellenahan’s picture

I 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".

drupal_mail('module_name', 'key_name', $mail, $params);

When I provided the language, everything was fine and the new entry was written to the mail_logger table:

drupal_mail('module_name', 'key_name', $mail, language_default(), $params);