Closed (fixed)
Project:
Feeds XPath Parser
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jul 2010 at 23:27 UTC
Updated:
16 Jul 2011 at 05:56 UTC
I've created a feed attached to a story, and selected HTML, and specified my feed URL as http://www.theregister.co.uk/ and the context is: /html/body/div[2]/div[6] On clicking preview, I get the error message:
warning: Invalid argument supplied for foreach() in /public_html/sites/all/modules/feeds_xpathparser/FeedsXPathParserHTML.inc on line 54.
If I change the context from /html/body/div[2]/div[6] to /html/body/div[2], then I no longer get the warning message.
I'm getting the XPath using Firebug (useful!). I also get the message "Could not retrieve title from feed.", but I guess that's my incompetence at working out the correct XPath for the story titles.
Comments
Comment #1
twistor commentedI tried both queries on el reg and neither of them turned up anything. Try the XPath and XPather firefox extensions. They should be a big help. The no title issues is that you're not setting a title for the feed node itself. I've got it in the works to parse out the title for it when using only the HTML parser, but that'll be a few days.
Comment #2
iantresman commentedHere are the links to the Firefox add-ons, which look useful:
And some extra ones:
If and when you start a Drupal documentation page for your Feeds XPath Parser, this kind of information can go there.
Comment #3
twistor commentedThe message "Could not retrieve title from feed" is actually because you didn't set the title of the feed node. I have to make that feed mandatory. Are you still having trouble?
Comment #4
twistor commentedComment #5
twistor commentedComment #6
myregistration commentedsubscribe
Comment #7
twistor commented@myregistration,
What version are you using? Example XML/HTML and XPath queries? I need the information necessary to reproduce your error.
Comment #8
twistor commentedComment #9
twistor commented