When theme developer is enabled I get a blank page when clicking on "empty cache". There is a logged error which says:

Location http://localhost/mysite/?q=devel/cache/clear&destination=node
Referrer http://localhost/mysite/
Message Cannot modify header information - headers already sent by (output started at /var/www/mysite/sites/all/modules/devel/devel_themer.module:501) in /var/www/mysite/includes/common.inc on line 328.

Installed modules are:
admin_menu, calendar(-block), cck, date, devel, menu_block and views

Theme: Garland
Core: 6.12
PHP Version 5.2.4-2ubuntu5.6

It's working fine by disabling the theme developer but I don't think it's intended this way, is it?

CommentFileSizeAuthor
#3 devel-493098.patch1.02 KBjlogsdon

Comments

krasmussen’s picture

I am experiencing the same thing. It occurs when uploading a file with filefield and when updating content in Aggregator for me as well.

abraham’s picture

Title: theme developer causes WSOD on 'empty cache' » theme developer causes WSOD on drupal_goto

Also happens on admin/reports/updates/check

jlogsdon’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

I was having this issue too and threw together a quick patch. hook_exit takes a $url parameter if drupal_goto has been called, and devel_themer_exit was not checking this parameter.

moshe weitzman’s picture

Project: Devel » Theme developer
Component: devel_themer » Code
effulgentsia’s picture

Status: Needs review » Fixed

Thanks for the patch. Committed to CVS.

Status: Fixed » Closed (fixed)

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

wintervanilla’s picture

Interesting ---- I just enabled Devel and Devel Themer on a drupal site for the first time. After using it, I then disabled and uninstalled devel. Now I am experiencing a very strange error.

It seems to disabled two page-node-id.tpl.php files i have in my themes folder. How can that be? The page-node-id files are there simply using the drupal_goto function to redirect visitors to other pages - URLs that drupal's alias system would not accept because they contain arguments with the ? and = signs...

Help! For now this is interrupting a donatation track on our non-profit's website!

Thanks in advance for any help,
Andrew