I have a featured which depends on domaincontext. Before this feature is enabled, context module is not enabled, therefore I get the following error:

PHP Fatal error:  Call to undefined function context_invalidate_cache() in /srv/apache2/www/htdocs/sites/all/modules/domaincontext/domaincontext.install on line 12
Drush command terminated abnormally due to an unrecoverable error.                                                                                               [error]
Error: Call to undefined function context_invalidate_cache() in /srv/apache2/www/htdocs/sites/all/modules/domaincontext/domaincontext.install, line 12

Comments

xjm’s picture

Hmmm... domaincontext specifies context as a dependency in its .info. It should not be possible to enable domaincontext without context being enabled.

carn1x’s picture

It is annoying I agree, however as part of a feature that has both context and domaincontext as dependencies, this error occurs. Perhaps this is a bug with features instead?