Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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.
Comment | File | Size | Author |
---|---|---|---|
#8 | feeds-undefined-getConfigFor-1271502-8.patch | 520 bytes | twistor |
Comments
Comment #1
tvan CreditAttribution: tvan commentedSame problem, any news on this?
Comment #2
emackn CreditAttribution: emackn commentedCould 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.
Comment #3
emilcarpenter CreditAttribution: emilcarpenter commentedI 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!
Comment #4
FrancescoUK CreditAttribution: FrancescoUK commentedI'm getting the same but with FeedsSQLParser:
Notice: Undefined index: FeedsSQLParser in FeedsSource->getConfigFor() (line 577 of //sites/all/modules/feeds/includes/FeedsSource.inc).
Comment #5
checker CreditAttribution: checker commentedI'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).
Comment #6
hommesreponse CreditAttribution: hommesreponse commentedI'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.
Comment #7
timmay CreditAttribution: timmay commented+1
Comment #8
twistor CreditAttribution: twistor commentedCan you try this?
Comment #9
timmay CreditAttribution: timmay commentedThanks twistor
Your patch helped clear up the undefined index error in cron, but unfortunately my data is still not importing.
Comment #10
vinmassaro CreditAttribution: vinmassaro commentedI had the same issue with the Feeds JSONPath Parser after nodes were created when using the importer UI (not running cron yet):
This patch fixed the issue, no more errors after import. Thanks.
Comment #11
seren10pity CreditAttribution: seren10pity commentedHi, 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 ;)
Comment #12
twistor CreditAttribution: twistor commented#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.
Comment #13
twistor CreditAttribution: twistor commentedComment #14
seren10pity CreditAttribution: seren10pity commentedThank 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 ;)Comment #15
PatchRanger CreditAttribution: PatchRanger commentedPatch 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'.
Comment #16
twistor CreditAttribution: twistor commented7.x
http://drupalcode.org/project/feeds.git/commit/1d81fc8
Comment #17
twistor CreditAttribution: twistor commentedComment #18
twistor CreditAttribution: twistor commented6.x
http://drupalcode.org/project/feeds.git/commit/c118a77
Comment #20
domidc CreditAttribution: domidc commentedJust changed title so people can find this issue more easly