By awolfey on
I'm working on this bug and will report back if I find the cause. I'm pretty sure this is either due to database corruption or something I did during a long re-theming of my site.
Logged in as any user with access to edit, tracker, or other tabs on a page. The tabs all show up when the page is first loaded. But after clicking any tab, that tab is loaded but the tabs no longer appear on the page. $tabs is empty.
This returns nothing:
<?php if ($tabs) { ?><div class="tabs"><?php print $tabs ?></div><?php } ?>
This returns just the divs:
<div class="tabs"><?php print $tabs ?></div>
I have repaired the database but the problem continues.
Can anyone offer any advice of where to look?
Thanks.
Comments
Update
It seems this problem is tied to another problem I am/was having:
http://drupal.org/node/297594
My temporary solution:
If I disable blog.module, everything is fine, but I need blog.
Then I tried disabling a views generated blog teaser block in the sidebar, and everything was fine, but I want that block.
So, since my problem is only on admin, edit and multi-tab pages, I am now using php block visibility for that block to hide it on those pages, and everything is fine.
Except that's just a band-aid
So this has to do with a
So this has to do with a blog and views block...
In my case, I can't disable the blog module, because the website relies on it.
Till recently I thought that disabling the problematic blocks on several pages or even hiding the "*'s blog" title with CSS would do. But then I realized that this also affects the login page and without the tabs, users are missing the options for creating a new account and requesting a new password, so this is not an option. I'm sure there would be other pages on the website with a similar problem, and this would be out of question.
I'll play a bit with the views popup module and try to figure out what's causing it.
$tabs empty because
It is because of the administration menu module. Disable it and $tabs will show up. Sometimes it happens with menu related modules too for example dhtml tools, etc.