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.
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
Comment | File | Size | Author |
---|---|---|---|
#2 | feeds-1149226-2-feeds_log_array.patch | 1.24 KB | jamsilver |
#2 | feeds-1149226-2-feeds_log_array-drush_make.patch | 916 bytes | jamsilver |
Comments
Comment #1
JeschMB CreditAttribution: JeschMB commentedComment #2
jamsilver CreditAttribution: jamsilver commentedA simple solution is attached as a patch.
Comment #3
sachbearbeiter CreditAttribution: sachbearbeiter commentedsubscribe
Comment #4
Jelle_Ssubscribe
Comment #5
Dave ReidActually http://drupalcode.org/project/feeds.git/commit/b5c3fc9 was the proper fix, but thank you for reporting and patching this issue.