When using Views 3.x, the following error is shown:

Fatal error: Call to undefined method nodecomment_plugin_display_comments::get_cache_plugin() in /home/eyefin5/public_html/sites/all/modules/nodecomment/nodecomment.module on line 91

This was reported as #816234: Fatal error: Call to undefined method

The patch is here:
http://drupal.org/files/issues/nodecomment.module.cache_.patch

CommentFileSizeAuthor
#3 nodecomment.module.cache_.patch1.6 KBgaele

Comments

jthomasbailey’s picture

Title: [Views 3.x] undefined method nodecomment_plugin_display_comments::get_cache_plugin() » Patch for Views 3
Status: Active » Needs review

Am I correct to assume this is a patch for Views 3? If so it seems to work, I haven't run into any problems yet.

crea’s picture

Status: Needs review » Needs work

Patch author said it would break Views 2. We need to be compatible with both.

gaele’s picture

Status: Needs work » Needs review
StatusFileSize
new1.6 KB

This should work for both Views 2 and 3.

gaele’s picture

Title: Patch for Views 3 » [Views 3.x] Fatal error: Call to undefined method nodecomment_plugin_display_comments::get_cache_plugin()
BeaPower’s picture

Thanks, worked for me!

zualas’s picture

Status: Needs review » Reviewed & tested by the community

The patch from #3 worked for me as well, thanks

muhleder’s picture

Looks good for us on Views 3.

mitylite’s picture

What causes this error anyway?

And for those of us who don't know how to use patches, maybe somebody could upload a patched version of the module? It would be greatly appreciated.

gaele’s picture

mitylite’s picture

That looks like it was written for a developer, or somebody inclined to that sort of thing at least. I am not. Drupal needs to work on it's accessibility for the people who use the sites instead of just the ones who code them...

aidanlis’s picture

mitylite the unfortunate reality is you either wait until it's fixed and available in a -dev release or you learn how to apply patches. You can try http://drupal.org/project/patch_manager which gives you a nice UI for this :)

mitylite’s picture

Well I've read into it and while the tutorial found at http://drupal.org/patch/apply is pretty much useless to anyone who is not already a developer. However, I found another page that has step by step instructions for applying patches, and it works like a charm:

http://drupal.org/node/620014 <------- if you're not a developer and need to learn to patch, this is for you.

YK85’s picture

subscribing

crea’s picture

Title: [Views 3.x] Fatal error: Call to undefined method nodecomment_plugin_display_comments::get_cache_plugin() » Views 3.x compatibility
Category: bug » feature
Status: Reviewed & tested by the community » Fixed

I've commited #3 with a minor change.

Status: Fixed » Closed (fixed)

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