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.

CommentFileSizeAuthor
Screen Shot 2012-03-06 at 7.52.36 PM.png136.39 KBjghyde
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jghyde’s picture

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.

randallknutson’s picture

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

Marked as duplicate of http://drupal.org/node/1446714