When using Context with CSS Injector 7.x-2.x (although still in dev), it throws the following error when trying to create or edit a rule: Fatal error: Call to undefined function _css_injector_load_rule() in sites/all/modules/context/plugins/context_reaction_css_injector.inc on line 7

This function doesn't exist in CSS Injector 7.x-2.x. I don't know enough about it to know of a workaround, but developers knowing more about this might know a solution.

Comments

westis’s picture

kreynen’s picture

Looking at #1132846: Context Module Error - Notice: Undefined offset: 0 in _css_injector_load_rule() (line 163, this never worked well in the 1.x branch either. I would simply remove context/plugins/context_reaction_css_injector.inc until this is resolved.

koosvdkolk’s picture

I agree with kreynen, spent quite some hours on a WSOD finally leading to this error.

myha’s picture

For remove CSS Injector reaction without hacking any code I use hook_context_registry_alter() in my custom module:

function custom_context_registry_alter(&$registry) {

  // Remove css_injector module features because it has php errors 
  if(!empty($registry['reactions']['css_injector'])) {
    unset($registry['reactions']['css_injector']);
  }
}
banoodle’s picture

Solution in #4 worked for me - thank you!