I received the following errors after updating the module to the latest version:
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\wamp\www\training\sites\all\modules\feeds\includes\FeedsConfigurable.inc on line 124.
* warning: array_intersect_key() [function.array-intersect-key]: Argument #1 is not an array in C:\wamp\www\training\sites\all\modules\feeds\includes\FeedsConfigurable.inc on line 126.
* warning: fopen(C:\wamp\www\training) [function.fopen]: failed to open stream: Permission denied in C:\wamp\www\training\sites\all\modules\feeds\libraries\ParserCSV.inc on line 20.
* warning: Invalid argument supplied for foreach() in C:\wamp\www\training\sites\all\modules\feeds\plugins\FeedsCSVParser.inc on line 26.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 858684-9_check_file_exists.patch | 1.52 KB | alex_b |
Comments
Comment #1
alex_b commentedFrom which version did you upgrade?
Comment #2
alex_b commentedComment #3
vip_sa commentedfrom beta 2 to beta 3 and I did run update.php
Comment #4
alex_b commentedCan you post your importer configuration (export it on the admin/build/feeds page).
Comment #5
vip_sa commented$feeds_importer = new stdClass;
$feeds_importer->disabled = FALSE; /* Edit this to true to make a default feeds_importer disabled initially */
$feeds_importer->api_version = 1;
$feeds_importer->id = 'node';
$feeds_importer->config = array(
'name' => 'Node import',
'description' => 'Import nodes from CSV file.',
'fetcher' => array(
'plugin_key' => 'FeedsFileFetcher',
'config' => array(
'direct' => FALSE,
),
),
'parser' => array(
'plugin_key' => 'FeedsCSVParser',
'config' => array(
'delimiter' => ',',
),
),
'processor' => array(
'plugin_key' => 'FeedsNodeProcessor',
'config' => array(
'content_type' => 'messages',
'update_existing' => '0',
'expire' => '-1',
'mappings' => array(
'0' => array(
'source' => 'title',
'target' => 'title',
'unique' => FALSE,
),
'1' => array(
'source' => 'body',
'target' => 'body',
'unique' => FALSE,
),
'2' => array(
'source' => 'published',
'target' => 'created',
'unique' => FALSE,
),
'3' => array(
'source' => 'guid',
'target' => 'guid',
'unique' => 1,
),
),
'input_format' => '0',
'author' => 0,
),
),
'content_type' => 'messages',
'update' => 0,
'import_period' => '-1',
'expire_period' => 3600,
'import_on_create' => 1,
);
Comment #6
alex_b commentedThank you. Doesn't seem to be anything wrong with it.
However, rereading the debug backtrace, this piece is interesting:
It looks like you have an importer pointed to a non existing C:\wamp\www\training.
Comment #7
alex_b commentedIndeed, I can reproduce this error. Will roll a patch.
Comment #8
alex_b commentedHit send to quick: I can only reproduce
warning: Invalid argument supplied for foreach() in /opt/local/apache2/htdocs/feeds/profiles/feeds_test/modules/feeds/plugins/FeedsCSVParser.inc on line 26.Comment #9
alex_b commentedDoes this patch help you? Please let me know. Will run tests now, if they pass, I will commit soon.
Comment #10
alex_b commentedThis is committed now, thank you.
The error you are experiencing should at least change slightly now. Please report back on a separate issue if the problem persists.
Comment #11
dafederI was getting that error even before setting up any importers; the patch fixed it.
Comment #12
dafederScratch that, I am still getting those two errors.