Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
westis CreditAttribution: westis commentedComment #2
kreynen CreditAttribution: kreynen commentedLooking 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.
Comment #3
koosvdkolk CreditAttribution: koosvdkolk commentedI agree with kreynen, spent quite some hours on a WSOD finally leading to this error.
Comment #4
myha CreditAttribution: myha commentedFor remove CSS Injector reaction without hacking any code I use hook_context_registry_alter() in my custom module:
Comment #5
banoodle CreditAttribution: banoodle at Kanopi Studios commentedSolution in #4 worked for me - thank you!