Hi,
I am using Drupal 6.x, views 2 and enabled the frontpage view, as well as panels 2, to promote a node to the front page, and I intend to use front-page.tpl.php in order to theme it differently. I am also using the devel module, the zen theme, and the zen classic sub-theme where I put the front-page.tpl.php in the subtheme folder. I'm getting the following error when I visit the front page of my test site.
The error I'm receiving is described below, and I really don't have the PHP know-how or the time to debug it fully. Anyway, here are the details. It seems to be a panels related issue/problem. I know it isn't a devel problem per se, but in the devel module the problem occurred and it's somehow related. However, its apparent it is a panels issue. Since I've created everything on a fresh install of a test site, I know it isn't improper use of a theme or a view or something. The problem description follows below.
I want to use a sub-theme, and apparently it doesn't like a sub-theme. Unfortunately, if I cannot correct this error I might have to give up using the sub-theme feature in drupal 6. Can anyone help?
Thanks!
Moses
Technical Writing Services
www.itwrite.com
================================================================================================
This is the error I received:
Fatal error: Call to a member function getName() on a non-object in C:\xampp\htdocs\sites\all\modules\devel\devel_themer.module on line 386
================================================
I used the following debug code after the line in which the problem occurred. The code is:
// Check for a bad theme call (see http://drupal.org/node/237056).
if ($i == count($params)) {
// Find the offending theme call
$debug = debug_backtrace();
drupal_set_message(count($args) . " arguments were passed to theme('$hook', ..) but it was only expecting " . count ($params) . ". Please debug the code that invoked theme('$hook', ..). Further debug info follows." . print_r($debug[4], TRUE) . print_r($meta, TRUE) . print_r($info, TRUE) . '', 'error');
break;
}
================================================
I received the following output when I refreshed the page:
5 arguments were passed to theme('panels_default_style_render_panel', ..) but it was only expecting 4. Please debug the code that invoked theme('panels_default_style_render_panel', ..). Further debug info follows.
Array
(
[file] => C:\xampp\htdocs\sites\all\modules\panels\includes\display-render.inc
[line] => 303
[function] => theme
[args] => Array
(
[0] => panels_default_style_render_panel
[1] => panels_display Object
(
[args] => Array
(
)
[content] => Array
(
[1] => stdClass Object
(
[pid] => 1
[did] => 1
[panel] => middle
[type] => views
[subtype] => frontpage-page_1
[shown] => 1
[access] => Array
(
)
[visibility] =>
[configuration] => Array
(
[style] => rounded_corners
[override_title] => 0
[override_title_text] =>
[css_id] =>
[css_class] =>
[link_to_view] => 0
[more_link] => 0
[feed_icons] => 0
[use_pager] => 0
[pager_id] =>
[nodes_per_page] => 10
[offset] => 0
[panel_args] => 0
[args] =>
[url] =>
)
[cache] => Array
(
)
[position] => 0
[context] =>
)
)
[panels] => Array
(
[middle] => Array
(
[0] => 1
)
)
[incoming_content] =>
[css_id] =>
[context] => Array
(
)
[layout_settings] => Array
(
)
[panel_settings] => Array
(
)
[cache] => Array
(
)
[title] =>
[hide_title] => 0
[did] => 1
[layout] => onecol
[keywords] => Array
(
)
[owner] => stdClass Object
(
[pid] => 1
[name] => frontpage
[did] => 1
[title] => Groups Frontpage
[access] => Array
(
)
[path] => frontpage
[load_flags] => 0
[css_id] =>
[css] =>
[arguments] => Array
(
)
[displays] => Array
(
)
[contexts] => Array
(
)
[relationships] => Array
(
)
[no_blocks] => 0
[switcher_options] => Array
(
)
[switcher_name] =>
[switcher_type] =>
[menu] => 0
[menu_tab] =>
[menu_tab_weight] =>
[menu_title] =>
[menu_tab_default] =>
[menu_tab_default_parent_type] =>
[menu_parent_title] =>
[menu_parent_tab_weight] =>
[type] => Local
[context] => Array
(
)
[primary] => panels_display Object
*RECURSION*
[display] => panels_display Object
*RECURSION*
[current] => primary
[form] =>
[keywords] => Array
(
)
[id] => frontpage
)
[type] => panel_page
)
[2] => frontpage
[3] => Array
(
[1] => stdClass Object
(
[module] => views
[delta] => frontpagepage_1
[subject] => Front Page Moses
[content] =>
* Edit
* Export
* Clone
front page moses
Submitted by admin on Mon, 11/17/2008 - 22:41
front body moses
[title] => Front Page Moses
)
)
[4] => Array
(
)
[5] => middle
)
)
Array
(
[wildcards] => Array
(
)
[hook] => panels_default_style_render_panel
[path] => sites/all/modules/panels
[type] => func
[used] => theme_panels_default_style_render_panel
)
Array
(
[arguments] => Array
(
[display] =>
[panel_id] =>
[panes] =>
[settings] =>
)
[type] => module
[theme path] => sites/all/modules/panels
[function] => devel_themer_catch_function
[theme paths] => Array
(
[0] => sites/all/modules/panels
)
[preprocess functions] => Array
(
[0] => template_preprocess
)
[devel_function_intercept] => theme_panels_default_style_render_panel
)
=======================================================
The file display-render.inc where the problem actually began contains the following offending function that generated the error:
return theme($style['render panel'], $display, $owner_id, $panes, $style_settings, $panel);
========================================================
Comments
Comment #1
wojtha commentedSame problem ...
Current workaround is not using Theme Developer module on the page rendered with panels.
Comment #2
korvus commentedI'm seeing it as well with Drupal 6.8.
Comment #3
wojtha commentedThis issue was fixed in the new version of the Devel module (devel 6.x-1.13). Please update your devel module to the newest version.
Marking as a duplicate to the Devel issue #340677: Fatal error: Call to getName() on non-object