Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Feb 2012 at 16:26 UTC
Updated:
3 Oct 2012 at 20:44 UTC
Jump to comment: Most recent file
Fatal error: Call to undefined method FeedsMissingPlugin::entityType() in /var/www/mysite/sites/all/modules/feeds/feeds.rules.inc on line 17
I had feeds installed and working, but all of the sudden I'm getting this error and the only way to get the site back is to disable all feeds modules and clear the bootstrap cache
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | missing-processor-results-into-fatal-error-1460282-10.patch | 921 bytes | megachriz |
| #5 | 1460282-5-feeds-feeds.rules_.inc_fatal_error.patch | 637 bytes | elliotttf |
Comments
Comment #1
emackn commentedyou should try the dev version.
Comment #2
socialnicheguru commentedIt's still an issue
Comment #3
socialnicheguru commentedthe only reference to the FeedsMissingPlugin class is
feeds/plugins/FeedsPlugin.inc
/**
* Used when a plugin is missing.
*/
class FeedsMissingPlugin extends FeedsPlugin {
public function menuItem() {
return array();
}
}
Comment #4
socialnicheguru commented(deleted comment)
Edit:
This is caused by another module feeds_rules :(
Edit:
No, it's caused by the feeds_import submodule
Comment #5
elliotttf commentedI recently experienced this when adding a new processor to a feature. The issue is avoided after all of the caches are cleared, but unfortunately I couldn't clear the cache without a tweak to the feeds.rules.inc file to make sure that the method exists. Patch attached.
Comment #6
elliotttf commentedComment #7
megachrizI had this issue as well when I wanted to reinstall a module that defined a processor. The patch in #5 works for me.
Comment #8
socialnicheguru commentedpatch also works for me
Comment #9
franzThe solution looks fine, but not very explicit. Maybe instead of checking the method, we could check if the $importer is of class FeedsMissingPlugin. Either way, a nice comment explaining the reasons would be great too.
Comment #10
megachriz@franz
Something like this? Or do you have a better suggestion for the comment?
Comment #11
megachriz(Setting status.)
Comment #12
twistor commentedI would rather be explicit in what we ARE looking for.
This still makes me feel icky.
Comment #13
franzYes, I'm thinking things over, why don't we clear the specific cache involved (class registry?) before calling feeds_importer_load_all()? Wouldn't that be a more "elegant" resolution?
Leaving this as needs review to get more opinions.
Comment #14
twistor commentedThe FeedsMissingPlugin issue can usually be resolved by the module adding the plugin files to its info file.
I was thinking about this:
But I can't replicate the old issue of requiring a cache clear after enabling the module.
What version of ctools are you guys using?
If it turns out that it's still an issue, the above could help greatly.
**
Either way, we still need to check. It's not just a cache issue. If you disable a module that provides a Feeds plugin that's in use in an importer, it will still show up as FeedsMissingPlugin().
What we really need are sanity checks per plugin that we can call. Then, feeds_importer_load_all() and other various activities will only load importers/sources that are fully ready to go. I've been thinking about this for a while.
Comment #15
PatchRanger commentedI was also getting the same error - and the patch from #10 did the work.
I commit new feature that uses FeedsCommerceProductProcessor but Commerce module (and Commerce Features) was not installed yet. That is why I got the error from subj. I applied the patch, cleared the cache (just reloading the page did not help) - and after that my site resurrected with this message : "Missing Feeds plugin FeedsCommerceProductProcessor. Please contact your site administrator.".
Comment #16
twistor commentedI went ahead and committed #12. I've been bumping into this issue lately, and there's no really elegant way to handle it.
#13, Ideally we could do something with the cache if a plugin is missing, but that's a separate issue and doesn't solve the problem if the plugin really doesn't exist.
7.x http://drupalcode.org/project/feeds.git/commit/dc73fee
Comment #18
digibrill commentedIf this error is present, should one just install this patch or the dev version of Sep 27? Aren't both of those options temporary fixes? When will there be another recommended release?