Hi there,

I get the following warnings when trying to create a Feeds importer with an XML XPath Parser:

Missing Feeds plugin FeedsXPathParserXML. See xml_feed. Check whether all required libraries and modules are installed properly.

* Notice: Undefined index: FeedsMissingPlugin_feeds_form i drupal_retrieve_form() (rad 736 av /var/www/gh/includes/form.inc).
* Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'FeedsMissingPlugin_feeds_form' not found or invalid function name i drupal_retrieve_form() (rad 771 av /var/www/gh/includes/form.inc).

I use Drupal 7 with a Swedish language pack, not that it should matter.

Thankful for any help!

Comments

twistor’s picture

Assigned: Unassigned » twistor

Did you try clearing the cache?

oskarg’s picture

Thanks man, that helped!

twistor’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

Honza Pobořil’s picture

Is it possible to call cache_clear_all when the parser was enabled automatically? This error was on new clear installation.

sachbearbeiter’s picture

helped

Hanno’s picture

Status: Closed (fixed) » Active

same error here, while in the module we implemented hook_enable to clear the cache:

/**
 * Implements hook_enable().
 *
 * Clear Feed's plugin cache so that this plugin shows up.
 */
function feeds_xpathparser_enable() {
  cache_clear_all('plugins:feeds:plugins', 'cache');
}

Manually clearing the cache worked.

twistor’s picture

This method doesn't work in D7. There are all sorts of cache clearing issues. I've looked for a workaround, but not extensively. I believe it is documented in Feeds that you must clear the cache after installing new plugins, if not it should be.

Hanno’s picture

Hmm. Yeah it is mentioned in the documentation, but it is not a great UX as this is not communicated after uploading and enabling a module.
@Twistor Do you know if this a bug in D7 core and related issues? This affects other feeds plugins as well.

F.G’s picture

Hi,

i meet similar problem when i tried to swith Feed Xpath to Querypath. i flushed all caches to solv the problem.

Florent

twistor’s picture

Status: Active » Fixed

The fix for this is to add FeedsXPathParser.inc to files in the info file. Thanks everybody.

http://drupalcode.org/project/feeds_xpathparser.git/commit/7e20e53

Status: Fixed » Closed (fixed)

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

Greg Turner’s picture

I've been getting this error:

Missing Feeds plugin FeedsXPathParserXML

And

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'FeedsMissingPlugin_feeds_form' not found or invalid function name in drupal_retrieve_form() (line 785 of /Applications/MAMP/htdocs/ufandshands/includes/form.inc).

Is there something in the Feeds XPath module that would cause pervasive site errors after import?

I cleared all caches at stage of the module installation, but noticed the error began showing up after I tried to import a file (among others) that wasn't proper XML

energee’s picture

Twistor, I am getting this issue in version beta3, however there is not a file in the module called FeedsXPathParser.inc...

egarias’s picture

Status: Closed (fixed) » Active

For me it is not closed.
It only works with feeds_xpathparser 7.x-1.0-beta3
other releases show the error

ianthomas_uk’s picture

Issue summary: View changes
Status: Active » Closed (fixed)

@egarias how do you expect this to be fixed in older versions? It requires a code change, and those versions can't be changed because they've already been released.

Anyone having this problem should upgrade to the current release. If that's not possible (hint: that means you're doing something wrong) then there's a workaround above (clearing the cache) or you can make the same change that twistor made to your own version.