PHP Fatal error: Call to undefined function panels_panel_context_get_display() in authcache/modules/authcache_panels_page_manager/authcache_panels_page_manager.module on line 47

I get this error when I run drush en module-name -debug

Comments

znerol’s picture

The panels_panel_context_get_display() is actually defined in plugins/task_handlers/panel_context.inc of the Panels module. In order to ensure that this file is available, the function page_manager_get_task_handler('panel_context'); is called beforehand. In order to protect against configuration inconsistencies like the one you experienced (panel_context.inc is not loadable but there are still panels defined with panel_context handler), we should check the return value of page_manager_get_task_handler and bail out early if necessary.

Status: Needs review » Needs work
znerol’s picture

znerol’s picture

Status: Needs work » Needs review
znerol’s picture

Status: Needs review » Fixed

Committed and pushed: e3ea84d

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.