Hi!

I'm trying Total Control for the first time, and when I try to go the the dashboard I get the following error message:

Fatal error: Class 'panels_display' not found in my_path_to_drupal/sites/all/modules/total_control/includes/total_control.default_page.inc on line 21

What have I done wrong?

/Sifaan

Comments

jenlampton’s picture

Status: Active » Closed (cannot reproduce)

Do you have the page manager module enabled? I've never seen that error before, and I'm unable to reproduce it. Please upgrade to the latest branch and reopen if this continues.

MichaelCole’s picture

Title: Fatal error: Class 'panels_display' not found in total_control/includes/total_control.default_page.inc on line 21 » Fatal error: Class 'panels_display' not found in feature module
Project: Total Control Admin Dashboard » Panels
Version: 6.x-1.2 » 6.x-3.9
Status: Closed (cannot reproduce) » Active

Hi, I'm getting a similar error trying to enable a features module. I'm up to date on code versions. Any fixes?

I enable all the dependent modules:

The following extensions will be enabled: ctools, token, path, page_manager, strongarm, diff, devel, backup_migrate, jquery_update, advanced_help, pathauto, favicon, module_filter
Do you really want to continue? (y/n): y
advanced_help was enabled successfully.                                                                                                                                                                                 [ok]
backup_migrate was enabled successfully.                                                                                                                                                                                [ok]
ctools was enabled successfully.                                                                                                                                                                                        [ok]
devel was enabled successfully.                                                                                                                                                                                         [ok]
diff was enabled successfully.                                                                                                                                                                                          [ok]
favicon was enabled successfully.                                                                                                                                                                                       [ok]
jquery_update was enabled successfully.                                                                                                                                                                                 [ok]
module_filter was enabled successfully.                                                                                                                                                                                 [ok]
page_manager was enabled successfully.                                                                                                                                                                                  [ok]
path was enabled successfully.                                                                                                                                                                                          [ok]
pathauto was enabled successfully.                                                                                                                                                                                      [ok]
strongarm was enabled successfully.                                                                                                                                                                                     [ok]
token was enabled successfully.                                                                                                                                                                                         [ok]
Installing advanced_help.                                                                                                                                                                                               [status]
FirePHP has been exported via svn to /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/devel/FirePHPCore.                                                                                                         [success]

And still get this error:

+ sudo su -s /bin/sh aegir -c 'drush --root=/var/aegir/hostmaster-6.x-1.6 --uri=http://service.dev pm-enable features'
The following extensions will be enabled: features
Do you really want to continue? (y/n): y
PHP Fatal error:  Class 'panels_display' not found in /home/quickstart/websites/service/code/modules/rrafeatures/rrafeatures.pages_default.inc on line 37
PHP Stack trace:
PHP   1. {main}() /home/quickstart/drush/drush.php:0
PHP   2. drush_main() /home/quickstart/drush/drush.php:41
PHP   3. drush_dispatch() /home/quickstart/drush/drush.php:101
PHP   4. call_user_func_array() /home/quickstart/drush/includes/command.inc:204
PHP   5. drush_command() /home/quickstart/drush/includes/command.inc:0
PHP   6. call_user_func_array() /home/quickstart/drush/includes/command.inc:721
PHP   7. drush_invoke() /home/quickstart/drush/includes/command.inc:0
PHP   8. drush_invoke_args() /home/quickstart/drush/includes/command.inc:58
PHP   9. call_user_func_array() /home/quickstart/drush/includes/command.inc:120
PHP  10. drush_pm_enable() /home/quickstart/drush/includes/command.inc:0
PHP  11. drush_system_modules_form_submit() /home/quickstart/drush/commands/pm/pm.drush.inc:691
PHP  12. drupal_execute() /home/quickstart/drush/commands/core/drupal/environment_6.inc:124
PHP  13. drupal_process_form() /var/aegir/hostmaster-6.x-1.6/includes/form.inc:309
PHP  14. form_execute_handlers() /var/aegir/hostmaster-6.x-1.6/includes/form.inc:421
PHP  15. system_modules_submit() /var/aegir/hostmaster-6.x-1.6/includes/form.inc:781
PHP  16. menu_rebuild() /var/aegir/hostmaster-6.x-1.6/modules/system/system.admin.inc:962
PHP  17. menu_router_build() /var/aegir/hostmaster-6.x-1.6/includes/menu.inc:1703
PHP  18. call_user_func() /var/aegir/hostmaster-6.x-1.6/includes/menu.inc:1730
PHP  19. page_manager_menu() /var/aegir/hostmaster-6.x-1.6/includes/menu.inc:0
PHP  20. page_manager_page_menu() /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/ctools/page_manager/page_manager.module:117
PHP  21. page_manager_page_load_all() /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/ctools/page_manager/plugins/tasks/page.admin.inc:52
PHP  22. ctools_export_load_object() /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/ctools/page_manager/plugins/tasks/page.inc:411
PHP  23. _ctools_export_get_defaults() /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/ctools/includes/export.inc:401
PHP  24. rrafeatures_default_page_manager_pages() /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/ctools/includes/export.inc:552
MichaelCole’s picture

This did not help :(

$ drush --uri=http://service.dev pm-enable autoload
The following extensions will be enabled: autoload
Do you really want to continue? (y/n): y
autoload was enabled successfully.    
merlinofchaos’s picture

The panels_display class is in panels.module

The only way this can happen is if something that requires Panels is being loaded while the panels module is disabled. It's possible there is a failed dependency but for whatever reason, the fix would be to enable Panels module.

MichaelCole’s picture

Project: Panels » Features
Version: 6.x-3.9 » 6.x-1.1
Status: Active » Closed (cannot reproduce)

Thanks Merlin! That worked.

The message The plugin definition of panels_layouts cannot locate schema panels_layout. is related to http://drupal.org/node/889742

Bouncing to Features.

$ drush --uri=http://service.dev dl views_bulk_operations
Project views_bulk_operations (6.x-1.12) downloaded to /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/views_bulk_operations.                                                                                   [success]
Project views_bulk_operations contains 2 modules: views_bulk_operations, actions_permissions.
$ drush --uri=http://service.dev dl total_control
Project total_control (6.x-2.0) downloaded to /var/aegir/hostmaster-6.x-1.6/sites/all/modules/contrib/total_control.                                                                                                    [success]
$ drush --uri=http://service.dev en total_control
The following extensions will be enabled: views, views_bulk_operations, views_content, panels, total_control
Do you really want to continue? (y/n): y
panels was enabled successfully.                                                                                                                                                                                        [ok]
views was enabled successfully.                                                                                                                                                                                         [ok]
views_content was enabled successfully.                                                                                                                                                                                 [ok]
total_control was enabled successfully.                                                                                                                                                                                 [ok]
views_bulk_operations was enabled successfully.                                                                                                                                                                         [ok]
The plugin definition of panels_layouts cannot locate schema panels_layout.                                                                                                                                             [error]
$  drush --uri=http://service.dev en rrafeatures
The following extensions will be enabled: rrafeatures
Do you really want to continue? (y/n): y
rrafeatures was enabled successfully.                                                                                                                                                                                   [ok]
MichaelCole’s picture

Title: Fatal error: Class 'panels_display' not found in feature module » Missing dependency on Panels in Features with one page in Page manager
Component: Code » Documentation
Status: Closed (cannot reproduce) » Active

Hi,

I made a features with one page in page manager. The front page of my site with some static panels.

When I exported the feature and imported, I got the above error. This is because "Panels" wasn't installed.

Enabling panels before enabling my features module is the workaround.

Thanks!

Mike

mpotter’s picture

Status: Active » Closed (won't fix)

Closing this for lack of activity. Please re-open this issue if you can reproduce it in the latest version.

cayenne’s picture

Version: 6.x-1.1 » 7.x-2.0-beta2
Status: Closed (won't fix) » Active

Hello there. I hate to reopen an issue, but I am getting exactly this same error. I had to go to the database to enable the panels module. Then it worked like a champ.

bsandor’s picture

Issue summary: View changes

Same solution for me. Except that I enabled it through the UI.

mpotter’s picture

Status: Active » Closed (won't fix)

Unfortunately Features itself can't do anything about this. Dependencies are handled by the modules that implement the export functionality. In this case you need to report this to the Panels or CTools issue queues. (Page Manager is part of CTools).