I have followed every example I can find, read every post I've seen 10 times. When I select XPath as my feed parser the only Source I have available under mappings is "Feed node: User ID". Surely I am missing something. Any help would be appreciated.

CommentFileSizeAuthor
mapping.png15.14 KBmatttrax-1
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

brycesenz’s picture

I just recently encounter this problem after upgradings from Feeds 6.x-1.0-beta4 to 6.x-1.0-beta5. I do not know in which module the error lies, but I have opened up an issue report in the Feeds queue #908862: Cannot name new sources.

matttrax-1’s picture

I downgraded Feeds to Beta4 and it is working like the tutorial describes. Thank you for getting back so quickly.

rbrownell’s picture

Priority: Normal » Critical

I can confirm the problem. Subscribing...

alex_b’s picture

Feeds XPath Parser needs to overwrite getMappingSources() and return FALSE to be compatible with beta5. Just added this to the release notes.

Thank you for reporting.

twistor’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » twistor
Status: Active » Fixed

Thanks, committed.

brycesenz’s picture

Status: Fixed » Active

Actually, I don't think that this has been completely resolved. The latest Feeds XPath Dev version fixes one problem, but now there is not the Feeds functionality to let the feed items inherit taxonomy terms from the parent node.

Is there any way to allow fields to be imported to come EITHER from an XPath/REGEX/HTML query string OR to be inherited? Technically, that was possible before this fix, albeit with a very awkward user interface.

rbrownell’s picture

I concure, though this is probably a Feeds issue and not a xPath Parser issue. They should design it similar to CCK's "use existing fields or create new ones".

This should be started as a new issue for Feeds.

twistor’s picture

Status: Active » Fixed

At this time, it seems that inheritance is in compatible with this module. The fact that it was showing up at all was because of this bug. Opening a new issue for that.

brycesenz’s picture

Thanks twistor. For community reference, the new issue is here #911618: Add support for field inheritance..

fereira’s picture

Here's what I have had to do. In the basic settings of the importer, change the "Attach to content type:" selection to "use standalone form". Then go add all your mappings. Then go back to the basic settings page and select the feed content type you want to attach to for the importer. It's a bit annoying, but it works with feeds version 6.x-1.0-beta5.

And, yes, this is a Feeds issue, not a feeds_xpathparser issue. I see the same behaviour when using the feeds_xmlparser module.

rbrownell’s picture

It is funny because I posted this issue on Feeds #632920: Inherit properties from parent feed node (taxonomy, author, OG, language) #226 and they seemed to disagree with me citing that the parsers were to blame.

-R

tyler-durden’s picture

fereira,
I am trying to recreate the steps you outlined in comment #10, but I am not getting any selection lists. I am using Feeds 6.x-1.0-beta7, do I need to do this on Beta5?

Also, the feed item is requesting a "parser" for the taxonomy field. Is this supposed to be happening? Thanks!

fereira’s picture

I haven't tried feeds 6.x-1.0-beta7 yet so I don't know how things would work with that version. It looks like there were several things changed in the beta6 version related to taxonomy fields that have been described in the release notes.

twistor’s picture

This should be working in dev. Testing welcome. You will have to flush the caches because the REGEX and QueryPath parsers are gone.

tyler-durden’s picture

twistor,
I'm a bit confused. I cannot find any dev. modules, only the standard Beta's. Beta7 is dated Sep 17th so it's only 4 days old, am I looking for something newer?

twistor’s picture

The dev module of this project.

tyler-durden’s picture

Doh! I feel like an idiot. Thanks! I'll do some testing later today.

tyler-durden’s picture

I have installed Feeds 6.x-1.0-beta7 and the latest Dev snapshot of Feeds XPath Parser, and when I try to select the "XPath XML parser" under the Parser options, I get the error below?

Fatal error: Class 'FeedsXPathParserBase' not found in ...sites/all/modules/feeds_xpathparser/FeedsXPathParser.inc on line 12

I cannot use Beta5 or earlier since it does not work with my xml file. Beta7 has worked flawlessly before I tried getting the taxonomy settings to transfer, where I am currently hung up on. Can anyone else confirm this error? I am going to try a fresh install again this evening before installing Beta5 to atleast see if the error goes away.

twistor’s picture

Can you try clearing the cache?

tyler-durden’s picture

That was the first thing I tried.

twistor’s picture

Can you verify that "class FeedsXPathParserBase" is in FeedsXPathParser.inc?

tyler-durden’s picture

Not 100% sure what is being asked, but when I search for "FeedsXPathParserBase" in FeedsXPathParser.inc I get these three lines:

class FeedsXPathParserHTML extends FeedsXPathParserBase {

class FeedsXPathParserXML extends FeedsXPathParserBase {

class FeedsXPathParserBase extends FeedsParser {

tyler-durden’s picture

I am still not having any luck using Feeds Beta5 and Beta7 with multiple versions of the Xpath Parser module now. I feel like something basic is messed up as I have the example nodes enabled but do not see any, which I used to.

I am going to start over again with a fresh install of Drupal tomorrow and keep you updated.

tyler-durden’s picture

Going to bed...
But I have confirmed I receive the same error on a new drupal install using Feeds Beta7 and the latest Dev snapshot of Feeds Xpath Parser.

bryanb229’s picture

Subscribing...

brycesenz’s picture

@tyler-durden:

I'm using both of those modules, and things seem to be working just fine. I'm a little confused reading through this thread though, trying to piece together exactly how you're using the module. My setup and use case described are below; can you post how yours differs for reference?

- Drupal 6.19
- Chaos Tools 6.x-1.7
- Feeds 6.x-1.0-beta7
- Feeds XPath Parser 6.x-1.x-dev (2010-Sep-21 Release)
- Job Scheduler 6.x-1.0-beta3

Obviously, I've cleared my caches, run updates, etc. My Feed Importer setup is as below:

Basic Settings
Attached to: Feed Item
Refresh: every 1 day
Import on create

Fetcher
HTTP Fetcher
Download content from a URL.

Parser
XPath XML parser
Parse XML using XPath.

Processor
Node processor
Create and update nodes.

In the Mapping settings, I see a dropdown field that lets me select either "Feed node: Taxonomy: ", "Feed Node: User ID", or "XPath Expression", then map each of those options to a target.

Again, that's probably not all that helpful by itself, but if you let me know where your setup differs then I'll happily see if I can replicate/fix the issue.

tyler-durden’s picture

Drupal 6.17
Feeds 6.x-1.0-beta7
Feeds XPath Parser 6.x-1.x-dev (9/21)
Chaos tools 6.x-1.7
Job Scheduler 6.x-1.0-beta3

I have no problems when I install Feeds XPath Parser 6.x-1.01 dated June 28, but as soon as I upgrade to the latest Dev as soon as I try to select the xml parser I get the above error still. I have cleared cache multiple times and ran the update scripts to no avail.

The only difference in our setups are the Drupal versions. I likely will not have any more time until the weekend to work on this, and I need to upgrade to 6.19 anyways so I will do more testing after that and keep you updated.

tyler-durden’s picture

brycesenz,
I just did a fresh install of Drupal 6.19 and installed these modules (the same ones you mentioned earlier).

- Chaos Tools 6.x-1.7
- Feeds 6.x-1.0-beta7
- Feeds XPath Parser 6.x-1.x-dev (2010-Sep-21 Release)
- Job Scheduler 6.x-1.0-beta3

I can get to the screen to change the Parser, but as soon as I click to select XPath XML parser, I get the same exact error.

Fatal error: Class 'FeedsXPathParserBase' not found in ...sites/all/modules/feeds_xpathparser/FeedsXPathParser.inc on line 12

Catalyst5’s picture

Same issue here

Only difference is that I am using:
C Tools 6.x-1.x-dev.tar.gz
Feeds beta 9

brycesenz’s picture

Ok,

I tried a fresh install of Drupal 6.19, CTool 6.x-1.7, Job Scheduler 6.x-1.0, Feeds 6.x-1.0-beat9, and Feeds XPath Parser 6.x-dev (the September 29 release).

I enabled the modules, then went to create a new feed importer. I go to the screen to change the parser, change to XML Parser, but the only message that I get is "Changed parser plugin." In short, I cannot reproduce this error.

A few notes - I'm using a newer version of XPath parser and of Feeds, so maybe that will fix the problem. But I'm not getting that error on either my local server or on a dummy URL from a shared host.

tyler-durden’s picture

brycesenz,
Check out http://drupal.org/node/925138 - the new XPath Parser 6.x-dev dated Sep 29 resolved the issue and everything should be working ok.

Status: Fixed » Closed (fixed)

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