When uploading a file and a line contains an error, feeds produces a message

Line 184 plugins/FeedsProcessor.inc :

...
if ($state->failed) {
      $messages[] = array(
       'message' => format_plural(
          $state->failed,
          'Failed importing @number @entity',
          'Failed importing @number @entities',
          array('@number' => $state->failed) + $tokens
        ),
        'level' => WATCHDOG_ERROR,
      );
}
...

The message array causes an array when log query is executed at feeds.module line 726.

Error:
SQLSTATE[21S01]: Insert value list does not match column list: 1136 Column count doesn't match value count at row 1

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

JeschMB’s picture

Title: If log message is an array, feeds_log produces error: » If log message is an array, feeds_log produces error: SQLSTATE[21S01]
jamsilver’s picture

Status: Active » Needs review
FileSize
916 bytes
1.24 KB

A simple solution is attached as a patch.

sachbearbeiter’s picture

subscribe

Jelle_S’s picture

subscribe

Dave Reid’s picture

Status: Needs review » Fixed

Actually http://drupalcode.org/project/feeds.git/commit/b5c3fc9 was the proper fix, but thank you for reporting and patching this issue.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.