[SOLVED][Drupal Default Content] Call to undefined function context_get_plugin() in modules/defaultcontent/defaultcontent.module

| | 1 min read

A few Drupal users reported that after they installed the Drupal Default Content module in their Drupal website the module lists on their Drupal installation stopped loading followed by the home page failing to load. Turning on detailed error reporting in index.php displayed a "Call to undefined function context_get_plugin() in modules/defaultcontent/defaultcontent.module" error and a "Fatal error: Class 'context_condition' not found in profiles/openenterprise/modules/defaultcontent/plugins/defaultcontent_condition.inc on line 3" error message. The second one was in the modules list page. Disabling the Drupal Default Content module eliminated the problem. If you are facing the same scenario in your Drupal website then proceed to see the solution.

Apply the following patch in your Default Content Module which will fix the issue. http://drupal.org/files/defaultcontent-1446714-16.patch

Note- This patch has been applied to 7.x-1.x branch of the module.

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. Do you need professional help in building your Drupal site? We can provide a wide range of Drupal services to help you deploy your Drupal site easily and quickly. Get in touch with us to know more.