Whenever I clear the cache with drush, the sidebar disappears, i.e., the $sidebar_first variable in php.tpl.php is blank.
Lately I've been coming upon my site and the sidebar is gone. Don't feel like I cleared the cache with drush, but cron's being run from the cli and that might be doing it. Might have cleared it though. Hmm. Been doing some active dev work on it lately.
I can restore the blocks by clearing the cache using the devel module's cache-clear dropdown.
My site's been doing for a couple of years, current drupal current modules, etc. I hesitated to file a bug here in Zen because there's a couple drupal core bugs related but not actually this issue.
https://drupal.org/node/1172560 and https://drupal.org/node/1173012
Well, I can't say I have much more for you. I have a hunch this is a zen bug. Any ideas? What should I check out?
Peace,
Jeremy
Comments
Comment #1
shruti.sheth CreditAttribution: shruti.sheth commentedHi,
I am trying to create a new zen sub theme and also cleared cache and cron run through drush, but couldn't encounter the above issue.
Can you explain in detail how is your theme implemented.
Thanks,
Shruti Sheth
Comment #2
glass.dimly CreditAttribution: glass.dimly commentedThank you for researching this issue. Much appreciated.
As an update, when I run drush cc all I can replicate, but also the issue manifests randomly when I leave it for day or so. I cannot replicate the issue by running cron either through drush or wget, so I'm a bit mystified at its recurrence.
As for the site, It's a zen subtheme. Nothing special. None of the block regions are changed. Well, until now.
My sites was created and updated through 2-3 years of updates, so it would be hard to replicate it. I've search-and-replaced sidebar_first with sidebar_only, and sidebar-first with sidebar-only, then re-added all my blocks to the new region. No change, block regions still disappear on drush cache clear.
Here's the code in page.tpl.php that prints it, nothing special. Below is my .info file.
; $Id: glass_zen.info.txt,v 1.16.2.2 2010/06/26 16:05:31 johnalbin Exp $
Comment #3
shruti.sheth CreditAttribution: shruti.sheth commentedHi,
Thanks, for posting your .info and page.tpl.php code. I would suggest you try following approaches, might be they prove helpful,
1. Disable your site cache and turn off your daily cron
2. Check console for each page, if any javascript is causing that
3. You can try disabling each module and debug, sometimes some modules do conflict and create such issues
I hope one of the above helps you solve your problem.
Thanks,
Shruti Sheth
Comment #4
glass.dimly CreditAttribution: glass.dimly commentedComment #5
glass.dimly CreditAttribution: glass.dimly commentedAlright, here's my workaround/fix. Which is not a fix, exactly.
Put this in your page.tpl.php before it prints the sidebar.
Simple, effective, ugly. But legit. If this is happening all the time to me I'll post code that clears just the block cache, right now I don't think it matters because this happens infrequently.
I'm closing this because I don't think it belongs in Zen.