Posted by jghyde on March 7, 2012 at 1:53am
3 followers
Jump to:
| Project: | Default Content |
| Version: | 7.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | major |
| Assigned: | Unassigned |
| Status: | closed (duplicate) |
Issue Summary
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 496Here'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.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| Screen Shot 2012-03-06 at 7.52.36 PM.png | 136.39 KB | Ignored: Check issue status. | None | None |
Comments
#1
The workaround is to install the context module http://drupal.org/project/context , but I am not sure that's the intention of the developers.
#2
Marked as duplicate of http://drupal.org/node/1446714