Needs work
Project:
Theme developer
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 May 2012 at 16:18 UTC
Updated:
31 May 2013 at 03:01 UTC
Normally the URL for viewing module permissions is something like
/#overlay=admin/people/permissions%23module-comment
When Theme Developer is enabled, this gets redirected to:
/admin/people/permissions?#module-comment
which comes up blank.
I'm seeing this error in my apache error log:
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5579608 bytes) in /drupal.local/sites/all/modules/devel_themer/devel_themer.module on line 555, referer: http://drupal.local/
Comments
Comment #1
kingfisher64 commentedNot only the permissions page but the content node page. All my articles disappear once this mod is installed and re-appear once uninstalled!
It breaks the system. Ouch.
Comment #2
kenneth.venken commented#1490836: breaks everything and #1445478: Memory usage 2GB / crashes Apache are duplicates of this issue.
Comment #3
forestmars commentedSo memory hungry
Theme DeveloperSimpleHTMLDom is.Comment #4
bmateus commentedSame thing here.
Maybe the usage of the simplehtmldom module is eating too much memory, or doesn't have enough time to operate (Issue http://drupal.org/node/1647630#comment-6490230)?
The only way I could install this modulewas by having 256 MB of PHP memory and explicitly setting "max_execution_time = 60" on my php.ini file (in Drupal's root instalation directory).I must say that my memory error was not from the Theme Developer module, but from the "simplehtmldom" module.
However, the error only came up when I tried to activate the Theme Developer module...
Update: didn't install the module - system sayd it was, but wasn't true...
Comment #5
kenneth.venken commentedIt would be great if someone could improve the simplehtmldom parser: http://simplehtmldom.sourceforge.net/
Comment #6
arnisraido commentedI have the same issue.
With enabled Devel, simplehtmldom and Theme developer, when I turn on Display page timer in Devel module - I get WSOD.
When "Display Page timer" is off, then everything works fine.
Comment #7
kenneth.venken commentedI've identified two big sources for the memory usage in theme developer. The first is the simplehtmldom parser:
and the second is the global array containing all the variables.
So i've done some tests on the memory usage of theme developer for the permission page (about 100 permissions). All tests are run after a cache clear. These are the results:
I think it's best to focus our efforts on finding a way to eliminate the need for the global array before we move on to fixing simplehtmldom..
Comment #8
bharata commentedWhat's the current status with this issue? As soon as I enable this module (after 1st enabling simplehtmldom) the modules page cannot reload, it just hangs for a long time then displays WSOD. Most other admin pages are also dead. Thankfully the front end does not die and the option "Disable all developer modules" is avaiable in my menu. That get's the site working again. My other trick is to have two pages open to the modules page and use the one that's not gone all white to choose "save configuration" with this module NOT selected.
If there is a good way to safely use this module I would love to here about it.
Is
an adequate approach?
Thanks for the guidance!!
Comment #9
bharata commentedI would like to repot that implementing "max_execution_time = 60" makes the module workable for me.
Hope that helps someone else...