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.

 * Implements hook_node_view().
function defaultcontent_node_view($node, $view_mode, $langcode) {
  if ($plugin = context_get_plugin('condition', 'defaultcontent')) {  // <-- line 496

A screenshot of the callstack is attached.

Screen Shot 2012-03-06 at 7.52.36 PM.png136.39 KBjghyde
Members fund testing for the Drupal project. Drupal Association Learn more


jghyde’s picture

The workaround is to install the context module , but I am not sure that's the intention of the developers.

randallknutson’s picture

Project: Open Enterprise » Default Content
Version: » 7.x-1.x-dev
Status: Active » Closed (duplicate)

Marked as duplicate of