On a fresh install of Drupal, with only Features enabled from the module list, I went to enable a feature I'd built on another site.
I got this error:
Fatal error: Class 'panels_display' not found in /Users/joachim/Sites/geton-drupal-6/sites/all/modules/geton_feature_page_bookings/geton_feature_page_bookings.defaults.inc on line 48
The relevant code is:
/**
* Helper to implementation of hook_default_page_manager_pages().
*/
function _geton_feature_page_bookings_default_page_manager_pages() {
$page = new stdClass;
// SNIP
// this is line 48:
$display = new panels_display;
Comments
Comment #1
joachim commentedThe problem appears to be that panels module is not enabled. The error makes the site unusable as it affects the module admin page too.
Comment #2
joachim commentedThe problem is that panels has not been added as a dependency of a feature that implements ctools pages which themselves contain panels.
Comment #3
yhahn commentedI am not a heavy user of page manager but I do know that this is a case where dependency and component detection could be added, similar to the logic that happens in the Views integration in Features now.
If anyone is up to the task, would love to see a patch for this.
Comment #4
recrit commentedwithout diving into features or ctools, you can always alter the export in a custom module. The following code worked for us to resolve the panels dependency since all of our pages have panels.
Comment #5
mpotter commentedClosing this for lack of activity. Please re-open this issue if you can reproduce it in the latest version.