After enablig the module cacheflush_rules in a clean Drupal installation and adding a new rule to clear the cache_id "cache_page" when user created a node, an error page is shown with following message:

Fatal error: Call to undefined function _cacheflush_clear_preset() in /var/www/html/sites/all/modules/contrib/cacheflush/cacheflush_rules/cacheflush_rules.module on line 67

Previous message is shown, because function _cacheflush_clear_preset() is defined inside cacheflush.inc, and called in cacheflush_rules.module (the submodule) without including "cacheflush.inc" with module_load_include.

I've created a patch for that issue.

CommentFileSizeAuthor
#6 rules-2460951-6.patch636 bytesbalintcsaba
#2 cron-2460951-2.patch541 bytesbalintcsaba
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

balintcsaba’s picture

Hi handrex,

You forgot to add the patch to the comment. If you have, please upload so I can give you credit for the bug fix, otherwise I will fix myself.

Thanks

balintcsaba’s picture

FileSize
541 bytes
balintcsaba’s picture

Status: Patch (to be ported) » Closed (fixed)
balintcsaba’s picture

Status: Closed (fixed) » Needs work
balintcsaba’s picture

The patch at #2 is for Cron

balintcsaba’s picture

FileSize
636 bytes

Patch for Rules

  • balintcsaba committed 3da57b8 on 7.x-2.x
    Issue #2460951 by balintcsaba: Function _cacheflush_clear_preset() not...
balintcsaba’s picture

Status: Needs work » Fixed
balintcsaba’s picture

Status: Fixed » Closed (fixed)