simplemenu disappears if theme_developer module is enabled
dan_lennox - October 2, 2008 - 07:05
| Project: | SimpleMenu |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
When enabling the theme_developer module the simplemenu disappears entirely. Looks like the default css for the two modules might be conflicting. I can probably provide a patch for this in the near future once our company moves to Drupal 6.

#1
#2
yeah, i confirm it. when u activate. I would before suspect on JS clashing but just gusessing.
#3
Confirm +1
#4
so the problem lies in the fact that theme developer wraps every piece of themed output is wrapped in a span. this effects the way that suckerfish.js works, since the markup doesn't match what is expected.
this could be fixed by not using any theme functions to output the menu, but that would require duplicating a lot of code from the menu module.
#5
see http://drupal.org/node/233082#comment-1143834
#6
but "administration menu" module works fine, and its pretty the same if not better.
#7
I found the solution to this problem.
MANY themes will not properly close their body. Before the </body> tag, you are supposed to have this:
<?phpprint $closure
?>
and if you don't the menu disappears because the JS does not make it in the page at all.
I just spend 1h looking into that!
So fix the theme, simplemenu works great otherwise. 8-)
Thank you.
Alexis Wilke
#8
Thanks for tip Alexis but these issue is definitely caused by the extra span tags created by devel_themer.module.
Your point about themes not printing
$closureis an important one, but not related to this issue.#9
Wow! I turned off devel_themer to keep it from interfering with Simple Menu and it actually solved another problem for me. I haven't been able to upload images to my nodes (via Imagefield & ImageAPI). I've spent hours trying to figure out what was wrong. After I turned off devel_themer I tried an upload again just to see if those extra spans might have been a problem. Turns out they were. Upload works great now.
Maybe this will help someone else.
#10
Oh wow, you just saved me from smashing my head open on my desk. What a mess that would have been!
Pixture theme has this issue. I could NOT get Simplemenu or Admin Menu to show up, even though the .js files were properly referenced in the header and there were no .js errors.
I added that line to page.tpl.php and BOOM. Menu shows up.
Thanks for that one!!! My head thanks you, my desk thanks you, etc.
#11
ccshannon,
Yeah... watch out for your head! 8-) [suggestion: next time, buy a soft desk?]
I'm glad my comment help, although it seems that this very issue is for another problem.
Best,
Alexis Wilke
#12
devel_themer destroys my simplemenu, which has contents from taxonomy_menu, more worrying when I go to the views admin page and hit a "+" symbol, the top simplemenu gets cloned below itself and the views page doesn't work????