Hi, Im getting this error,
Notice: Undefined index: FeedsXPathParserXML in FeedsSource->getConfigFor() (line 577 of [redacted]/sites/all/modules/feeds/includes/FeedsSource.inc).
when ever I run cron. Im using feeds xpath parser, and i posted this issue there, but the error mentions the feedssource.inc which is in feeds. Does anyone know what this means? Everything seems to be working correctly, but an error is an error and I don't feel right having one. Thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tvan’s picture

Same problem, any news on this?

emackn’s picture

Status: Active » Postponed (maintainer needs more info)

Could you do a little bit more debugging and post back what you find. This is also a php Notice, so the execution didn't stop. It's probably a bad row of data from your import.

emilcarpenter’s picture

I got rid of the line 577 error by the workaround I posted at http://drupal.org/node/1267374. After that workaround, I don't get the 577 error when I run Cron either anymore, aswell as I also don't get it at a single node import.

When I run Cron, I still get these three errors:

Notice: Indirect modification of overloaded property FeedsSource::$state has no effect in FeedsSource->import() (line 334 of drupal79\sites\all\modules\feeds\includes\FeedsSource.inc).
Notice: Indirect modification of overloaded property FeedsSource::$state has no effect in FeedsSource->import() (line 341 of drupal79\sites\all\modules\feeds\includes\FeedsSource.inc).
Notice: Undefined index: start_time in FeedsSource->import() (line 361 of drupal79\sites\all\modules\feeds\includes\FeedsSource.inc).

I have two different importers working both with the XPath Parser.

Now when I run Cron, I got the above errors for one of the importers. I think that there is nothing wrong with the importer itself.

So it seems like that I should set the $state and start_time myself programmatically to get around these errors? Anyone know how to do this?

So, in this one case I got the above three errors three times. The Feeds log looked like this:

2012-02-01 13:30:12 2012-02-01 13:29:38 Updated 1 node. info XML first NODE importer
2012-02-01 13:30:12 2012-02-01 13:29:38 Imported in 1328099412 s info XML first NODE importer
2012-02-01 13:30:09 2012-02-01 13:29:38 Updated 1 node. info XML first NODE importer
2012-02-01 13:30:09 2012-02-01 13:29:38 Imported in 1328099409 s info XML first NODE importer
2012-02-01 13:30:06 2012-02-01 13:29:38 Updated 1 node. info XML second NODE importer
2012-02-01 13:30:06 2012-02-01 13:29:38 Imported in 1328099406 s info XML second NODE importer
2012-02-01 13:30:03 2012-02-01 13:29:38 Updated 1 node. info XML second NODE importer
2012-02-01 13:30:03 2012-02-01 13:29:38 Imported in 13 s info XML second NODE importer
2012-02-01 13:29:46 2012-02-01 13:29:38 Updated 1 node. info XML first NODE importer
2012-02-01 13:29:46 2012-02-01 13:29:38 Imported in 3 s info XML first NODE importer
// Started Cron here.
2012-02-01 12:43:25 2012-02-01 12:43:23 Created 1 node. info XML first NODE importer
2012-02-01 12:43:25 2012-02-01 12:43:23 Imported in 1 s info XML first NODE importer

Seems like the current time is being set as the importing duration.

Anyone know a fix or workaround for this? Would help out a lot! Thanks!

FrancescoUK’s picture

I'm getting the same but with FeedsSQLParser:

Notice: Undefined index: FeedsSQLParser in FeedsSource->getConfigFor() (line 577 of //sites/all/modules/feeds/includes/FeedsSource.inc).

checker’s picture

I'm using feeds with commerce_feeds via csv and found this message in watchdog:
Notice: Undefined index: start_time in FeedsSource->import() (Zeile 368 von /feeds/includes/FeedsSource.inc).

hommesreponse’s picture

I'm getting this error on import using FeedsSQLParser:

Notice: Undefined index: FeedsSQLParser in FeedsSource->getConfigFor() (line 584 of /var/www/vhosts/realestate.openworks.ca/httpdocs/sites/all/modules/feeds/includes/FeedsSource.inc).

It imports one node (out of a total of 46) and says that the rest of them are updated but they're not showing up in the content list. Been searching for a few hours still no luck figuring this error out.

timmay’s picture

+1

twistor’s picture

Version: 7.x-2.0-alpha4 » 7.x-2.x-dev
Assigned: Unassigned » twistor
Status: Postponed (maintainer needs more info) » Needs review
FileSize
520 bytes

Can you try this?

timmay’s picture

Thanks twistor
Your patch helped clear up the undefined index error in cron, but unfortunately my data is still not importing.

vinmassaro’s picture

I had the same issue with the Feeds JSONPath Parser after nodes were created when using the importer UI (not running cron yet):

Notice: Undefined index: FeedsJSONPathParser in FeedsSource->getConfigFor() (line 584 of /sandbox/d7/sites/all/modules/contrib/feeds/includes/FeedsSource.inc).

This patch fixed the issue, no more errors after import. Thanks.

seren10pity’s picture

Version: 7.x-2.x-dev » 7.x-2.0-alpha5

Hi, I'm having the same problem :

Notice: Undefined index: FeedsXPathParserXML in FeedsSource->getConfigFor() (line 584 of [...]\modules\feeds\includes\FeedsSource.inc).
I get this error on each cron run.

I'm using Feeds XPath Parser (7.x-1.0-beta3+7-dev) to parse a xml file, and create/update nodes.

When I try to import nodes from submission, I can't because the form validator expects the Title field not to be empty, when I expect it to be filled with feeds... So, for testing, I've set manually a Title and, on submit, I get my test node, and the ones genrated from feeds well created/updated. Then, on cron run, it updates well (even if I get the error above) BUT, as soon as I delete the test node, the corredponding feed import row in the "job_schedule" table of the database is deleted, and so I can't get anything at cron run anymore... no action, no updates, no error ^^
Why is that job schedule depending from a dummy node and not from the "Process in background" option in the settings ?

What I would like is just checking "Process in background", and then my nodes update automatically on each cron run from my xml file...
Did I misundestood something ? Shouldn't it be the logical behavior of the module ?

Thanks for your help ;)

twistor’s picture

#11 That is the expected behavior. "Feed nodes" create "feed items". If you delete the feed node, you delete the feed. If you only have one feed to import, then you can select "Use standalone form" under "Attach to content type." Your feed will then be under /import.

twistor’s picture

Version: 7.x-2.0-alpha5 » 7.x-2.x-dev
seren10pity’s picture

Thank you Twistor !
I didn't understood the use of "Use standalone form". I thought that this option was the link with the node type, and so, I didn't try it, but it's what I needed.
Now I can import manually the nodes via import, without creating dummy node, and the updates are working on cron run.
I don't know if it's related to, but it seems I don't have the error Notice: Undefined index: FeedsXPathParserXML in FeedsSource->getConfigFor() (line 577 of [redacted]/sites/all/modules/feeds/includes/FeedsSource.inc). on cron run anymore ;)

PatchRanger’s picture

Status: Needs review » Reviewed & tested by the community

Patch works, thanks twistor.
I had this problem with XPath Parser module.
Thank you once more.

I think it is time to mark it as 'reviewed & tested by the community'.

twistor’s picture

Status: Reviewed & tested by the community » Fixed
twistor’s picture

Version: 7.x-2.x-dev » 6.x-1.x-dev
Status: Fixed » Patch (to be ported)
twistor’s picture

Assigned: twistor » Unassigned
Status: Patch (to be ported) » Fixed

Status: Fixed » Closed (fixed)

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

domidc’s picture

Title: Im getting an error when I run cron » Notice: Undefined index: FeedsXPathParserXML in FeedsSource->getConfigFor() when running cron

Just changed title so people can find this issue more easly