Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.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
Comment #1
znerol commentedThe
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 functionpage_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 ofpage_manager_get_task_handlerand bail out early if necessary.Comment #3
znerol commentedUh, stupid me.
Comment #4
znerol commentedComment #5
znerol commentedCommitted and pushed: e3ea84d