Fatal error: Call to undefined function context_active_values() in /var/aegir/drupal-6.17/sites/all/modules/context/context_contrib/context_contrib.module on line 195

191 /**
192 * Implementation hook_context_page_reaction() on behalf of css injector.
193 */
194 function css_injector_context_page_reaction() {
195 $css_rules = context_active_values('css_injector');
196 if (!empty($css_rules)) {
197 foreach ($css_rules as $crid) {
198 if ($css_rule = _css_injector_load_rule($crid)) {
199 drupal_add_css(file_create_path($css_rule['file_path']), 'module', $css_rule['media'], $css_rule['preprocess']);
200 }
201 }
202 }
203 else {
204 return;
205 }
206 }

yes, i am using css injector
CSS Injector 6.x-1.4

how can i provide more informatioin?

Comments

oib’s picture

Issue tags: +views

now i see also problems with views 6.x-2.11 and 6.x-3.0-alpha3

Fatal error: Call to undefined function context_set_by_condition() in /var/aegir/drupal-6.17/sites/all/modules/context/context_contrib/context_contrib.module on line 139

132 /**
133 * Implementation of hook_views_pre_view().
134 */
135 function context_contrib_views_pre_view($view, $args) {
136 switch ($view->display_handler->display->display_plugin) {
137 case 'page':
138 case 'calendar':
139 context_set_by_condition('views', $view->name);
140 // Set any contexts associated with the current display
141 if (!empty($view->current_display)) {
142 context_set_by_condition('views', "{$view->name}:{$view->current_display}");
143 }
144 break;
145 }
146 }

steven jones’s picture

Category: bug » support
Status: Active » Fixed

The context contrib module is not part of Context 3.x, so it looks like you upgraded the module, but didn't remove the old version first. Doing so should fix your problem.

Status: Fixed » Closed (fixed)
Issue tags: -views, -CSS Injector

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