Switched to dev and some things didn't work as I was expecting so I went back to the lastest stable version. I now get these 2 errors
Notice: Undefined index: description in sites/all/modules/ctools/includes/content.inc on line 72
Notice: Undefined property: stdClass::$title in _ctools_export_unpack_object() (line 601 of sites/all/modules/ctools/includes/export.inc).

Will be investigating; let you know what I find.

CommentFileSizeAuthor
#6 931648.patch1005 bytesnaxoc
#4 ctools-931648.patch2.84 KBmikeytown2
#3 ctools-931648.patch908 bytesmikeytown2
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mikeytown2’s picture

Update: $title is missing from my 2 Mini panels. I am getting this error 2x on every page load

Notice: Undefined property: stdClass::$title in _ctools_export_unpack_object() (line 601 of sites/all/modules/ctools/includes/export.inc).
mikeytown2’s picture

Undefined property: stdClass::$title was fixed by adding in a title column to the panels_mini table.
http://drupal.org/node/577742#comment-3534094

Full backtrace for this error ( I also get 2x)

Notice: Undefined index: description in sites/all/modules/ctools/includes/content.inc on line 72

Code added to _drupal_error_handler() in pressflow's common.inc.

    $bt = debug_backtrace();
    foreach ($bt as $key => $value) {
      if ($key == 0) {
        continue;
      }
      unset($bt[$key]['args']);
      unset($bt[$key]['object']);
    }
    drupal_set_message(str_replace('    ', '    ', nl2br(htmlentities(print_r($bt, TRUE)))));
    * Array
      (
          [0] => Array
              (
                  [file] => sites/all/modules/ctools/includes/content.inc
                  [line] => 72
                  [function] => _drupal_error_handler
                  [args] => Array
                      (
                          [0] => 8
                          [1] => Undefined index: description
                          [2] => sites/all/modules/ctools/includes/content.inc
                          [3] => 72
                          [4] => Array
                              (
                                  [plugin] => Array
                                      (
                                          [single] => 1
                                          [title] => OG Mission
                                          [icon] => user-multiple.png
                                          [admin_title] => The organic group mission/welcome message
                                          [required context] => ctools_context_required Object
                                              (
                                                  [keywords] => og
                                                  [title] => Organic Group
                                                  [required] => 1
                                              )

                                          [category] => Organic groups
                                          [module] => og_panels
                                          [name] => og_mission
                                          [path] => sites/all/modules/og_panels/plugins/content_types
                                          [file] => og_mission.inc
                                          [plugin module] => ctools
                                          [plugin type] => content_types
                                          [render callback] => og_panels_og_mission_content_type_render
                                          [admin title] => og_panels_og_mission_content_type_admin_title
                                          [edit form] => og_panels_og_mission_content_type_edit_form
                                          [add form] => og_panels_og_mission_content_type_edit_form
                                      )

                                  [info] => Array
                                      (
                                          [cache] =>
                                          [process] => ctools_content_process
                                          [module] => ctools
                                          [type] => content_types
                                          [cache table] => cache
                                          [use hooks] => 1
                                          [defaults] => Array
                                              (
                                              )

                                          [extension] => inc
                                          [info file] =>
                                          [hook] => ctools_content_types
                                          [load themes] =>
                                      )

                                  [function_base] => og_panels_og_mission_content_type_
                              )

                      )

              )

          [1] => Array
              (
                  [file] => sites/all/modules/ctools/includes/plugins.inc
                  [line] => 586
                  [function] => ctools_content_process
              )

          [2] => Array
              (
                  [file] => sites/all/modules/ctools/includes/plugins.inc
                  [line] => 550
                  [function] => _ctools_process_data
              )

          [3] => Array
              (
                  [file] => sites/all/modules/ctools/includes/plugins.inc
                  [line] => 351
                  [function] => ctools_plugin_process
              )

          [4] => Array
              (
                  [file] => sites/all/modules/ctools/includes/plugins.inc
                  [line] => 219
                  [function] => ctools_plugin_load_includes
              )

          [5] => Array
              (
                  [file] => sites/all/modules/ctools/includes/content.inc
                  [line] => 112
                  [function] => ctools_get_plugins
              )

          [6] => Array
              (
                  [file] => sites/all/modules/ctools/includes/content.theme.inc
                  [line] => 16
                  [function] => ctools_get_content_types
              )

          [7] => Array
              (
                  [file] => sites/all/modules/ctools/ctools.module
                  [line] => 277
                  [function] => ctools_content_theme
              )

          [8] => Array
              (
                  [file] => sites/all/modules/ctools/ctools.module
                  [line] => 345
                  [function] => _ctools_passthrough
              )

          [9] => Array
              (
                  [file] => includes/theme.inc
                  [line] => 266
                  [function] => ctools_theme
              )

          [10] => Array
              (
                  [file] => includes/theme.inc
                  [line] => 421
                  [function] => _theme_process_registry
              )

          [11] => Array
              (
                  [file] => includes/theme.inc
                  [line] => 225
                  [function] => _theme_build_registry
              )

          [12] => Array
              (
                  [file] => includes/theme.inc
                  [line] => 179
                  [function] => _theme_load_registry
              )

          [13] => Array
              (
                  [file] => includes/theme.inc
                  [line] => 59
                  [function] => _init_theme
              )

          [14] => Array
              (
                  [file] => includes/theme.inc
                  [line] => 777
                  [function] => init_theme
              )

          [15] => Array
              (
                  [file] => sites/all/modules/panels/plugins/display_renderers/panels_renderer_standard.class.php
                  [line] => 323
                  [function] => path_to_theme
              )

          [16] => Array
              (
                  [file] => sites/all/modules/panels/plugins/display_renderers/panels_renderer_standard.class.php
                  [line] => 273
                  [function] => add_meta
                  [class] => panels_renderer_standard
                  [type] => ->
              )

          [17] => Array
              (
                  [file] => sites/all/modules/panels/panels.module
                  [line] => 688
                  [function] => render
                  [class] => panels_renderer_standard
                  [type] => ->
              )

          [18] => Array
              (
                  [file] => sites/all/modules/panels/panels.module
                  [line] => 1013
                  [function] => render
                  [class] => panels_display
                  [type] => ->
              )

          [19] => Array
              (
                  [file] => sites/all/modules/panels/plugins/task_handlers/panel_context.inc
                  [line] => 290
                  [function] => panels_render_display
              )

          [20] => Array
              (
                  [file] => sites/all/modules/ctools/includes/context-task-handler.inc
                  [line] => 46
                  [function] => panels_panel_context_render
              )

          [21] => Array
              (
                  [file] => sites/all/modules/ctools/page_manager/plugins/tasks/node_view.inc
                  [line] => 89
                  [function] => ctools_context_handler_render
              )

          [22] => Array
              (
                  [function] => page_manager_node_view
              )

          [23] => Array
              (
                  [file] => includes/menu.inc
                  [line] => 348
                  [function] => call_user_func_array
              )

          [24] => Array
              (
                  [file] => index.php
                  [line] => 18
                  [function] => menu_execute_active_handler
              )

      )
    * : in (line of ).
mikeytown2’s picture

Title: Notice: Undefined index » Notice: Undefined index: description in ctools/includes/content.inc on line 72
Status: Active » Needs review
FileSize
908 bytes
mikeytown2’s picture

FileSize
2.84 KB

One more
Undefined index: name
ctools/includes/context.inc line 1412

merlinofchaos’s picture

Status: Needs review » Needs work

$plugin['name'] will always be filled in, so I'm not sure what's going on there. But it is not valid for any plugin to not have a 'name'.

I think access plugins also actually are required to have a description, so perhaps we need to fill in some kind of unknown field if the access plugin didn't have a description.

naxoc’s picture

Status: Needs work » Needs review
FileSize
1005 bytes

I had the same problem using a plugin I wrote myself. It turns out that $plugin['icon'] was the culprit in my case, but the description field has the same problem. I attached a very naive patch - not at all sure that is the way to do it, but it stops the errors on what I am working on right now.

mikeytown2’s picture

Status: Needs review » Reviewed & tested by the community

naxoc's patch works as well.

brunodbo’s picture

While switching our Drupal core to Pressflow today, I discovered the errors mentioned here. I tested both patches, and they seem to fix the issues for me as well.

merlinofchaos’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6.x and 7.x branches and pushed.

Status: Fixed » Closed (fixed)

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