Tracing hook_theme() causes WSoD

qpal - March 10, 2009 - 23:19
Project:Trace
Version:6.x-1.0-alpha2
Component:Code
Category:bug report
Priority:normal
Assigned:Arto
Status:active
Issue tags:hook_theme, WSOD
Description

I have installed Trace 6.x-1.0-alpha2, after enable it at site configuration, it caused the front page of the site and any other content page a wsod. When try to access the site via /user , I get the login form, however, on the top of the form, there is this errors:
warning: Invalid argument supplied for foreach() in c:\wamp\www\mysite\includes\theme.inc on line 268.
* warning: array_merge() [function.array-merge]: Argument #2 is not an array in C:\wamp\www\mysite\includes\theme.inc on line 359.

* warning: array_merge() [function.array-merge]: Argument #1 is not an array in C:\wamp\www\mysite\includes\theme.inc on line 359.
* warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\includes\theme.inc on line 751.
* warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\includes\theme.inc on line 851.
* warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\includes\theme.inc on line 364.
* warning: array_splice() [function.array-splice]: The first argument should be an array in C:\wamp\www\mysite\sites\all\modules\og\og.module on line 361.
* warning: Invalid argument supplied for foreach() in C:\wamp\www\mysite\includes\theme.inc on line 268.

Once I logged in, in the administrator panel, I get the same error: as above. When try to access the front page, get a white screen of death. After I disable trace from the site configuration / tracing, the problem disappear.

#1

dave_robinson - March 12, 2009 - 10:05

I had this WSOD problem myself and narrowed it down to the tracing of the theme hook. Go into the settings at /admin/settings/trace and see if Core - Theme is checked in the Module Hooks section.

#2

Arto - September 18, 2009 - 15:34
Title:Trace module causes white screen of death on drupal 6.10» Tracing hook_theme() causes WSoD
Priority:critical» normal
Assigned to:Anonymous» Arto

Thanks for pinpointing this, Dave. In the recent 6.x-1.0 release, I've added prominent WSoD warnings to INSTALL.txt and the hook tracing selection. Before the next release I will have a look at hook_trace() specifically and will remove it from the hooks that can traced unless I can figure out why it's failing in particular.

#3

Arto - September 18, 2009 - 15:42
Issue tags:+WSOD

Tagging with WSoD...

 
 

Drupal is a registered trademark of Dries Buytaert.