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.

CommentFileSizeAuthor
#9 858684-9_check_file_exists.patch1.52 KBalex_b

Comments

alex_b’s picture

From which version did you upgrade?

alex_b’s picture

Status: Active » Postponed (maintainer needs more info)
vip_sa’s picture

from beta 2 to beta 3 and I did run update.php

alex_b’s picture

Can you post your importer configuration (export it on the admin/build/feeds page).

vip_sa’s picture

$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,
);

alex_b’s picture

Thank you. Doesn't seem to be anything wrong with it.

However, rereading the debug backtrace, this piece is interesting:

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.

It looks like you have an importer pointed to a non existing C:\wamp\www\training.

alex_b’s picture

Version: 6.x-1.0-beta3 » 6.x-1.x-dev
Assigned: Unassigned » alex_b
Status: Postponed (maintainer needs more info) » Active

Indeed, I can reproduce this error. Will roll a patch.

alex_b’s picture

Hit 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.

alex_b’s picture

Status: Active » Needs review
StatusFileSize
new1.52 KB

Does this patch help you? Please let me know. Will run tests now, if they pass, I will commit soon.

alex_b’s picture

Title: I get the following error after upgrading » Fix notices when file not found
Assigned: alex_b » Unassigned
Status: Needs review » Fixed

This 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.

dafeder’s picture

I was getting that error even before setting up any importers; the patch fixed it.

dafeder’s picture

Scratch that, I am still getting those two errors.

Status: Fixed » Closed (fixed)

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