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.
As a site builder, after enabling another module, I receive this error on all site pages but not on admin pages:
Fatal error: Call to undefined function context_get_plugin() in /Users/joe/Sites/mohair/htdocs/profiles/openenterprise/modules/defaultcontent/defaultcontent.module on line 496
Here's the offending code. It is calling a context module func, but there is no context module in the OE distro.
<?php
/*
* Implements hook_node_view().
*/
function defaultcontent_node_view($node, $view_mode, $langcode) {
if ($plugin = context_get_plugin('condition', 'defaultcontent')) { // <-- line 496
$plugin->execute($node);
}
}
?>
A screenshot of the callstack is attached.
Comment | File | Size | Author |
---|---|---|---|
Screen Shot 2012-03-06 at 7.52.36 PM.png | 136.39 KB | jghyde |
Comments
Comment #1
jghyde CreditAttribution: jghyde commentedThe workaround is to install the context module http://drupal.org/project/context , but I am not sure that's the intention of the developers.
Comment #2
randallknutson CreditAttribution: randallknutson commentedMarked as duplicate of http://drupal.org/node/1446714