I've just installed Zen 6.x 2.0 and created a new sub theme using the starter kit and enabled both Zen and my sub theme. I then set my sub theme to default so I can see it. All seems fine at this point but when I go to configure blocks to be located in the second sidebar they don't appear. I've attached a screen capture of what I'm looking at on my blocks config page, you can see that I have some blocks configured to display in the second sidebar but they dont render there.
Using the zen master theme as default works fine, the blocks appear in the second sidebar, it's just not working in my sub theme. I've tried creating a sub theme manually and using zenophile, both yield the same result. I've also tried Zen 6.x 2.1, also same result. Does anyone know why this is happening? Am I doing something wrong?
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | isawregions.jpg | 90.2 KB | KrisBulman |
| #5 | themes.zip | 273.38 KB | Fidzzz |
| ZenBlocksConfig.JPG | 140.48 KB | Fidzzz |
Comments
Comment #1
Fidzzz commentedAnyone???
Comment #2
KrisBulman commentedTo test, assure you're working from clean themes directories.. An old copy of Zen1.x and a zen2.x subtheme will really muck things up.
check:
sites/default/themes/
sites/all/themes/
sites/sitename.com/themes/
When copying the STARTERKIT folder into your themes dir from the Zen folder, assure you replace all instances of STARTERKIT to themename in template.php, theme-settings.tpl.php, and the .info and all references to zen stay the same.
Comment #3
Fidzzz commentedThanks for your reply Kris. I've blown everything away to do a simple test, so dropped all databases, uninstalled WAMP, and deleted the entire WAMP folder. I then reinstalled a fresh WAMP, created a blank MySQL database and installed drupal 6.20. I then installed the Zen 2.0 theme and created my sub theme using the starter kit and followed the instructions to the letter. I get the exact same result. I've made sure I'm allocating at least one block to one of the side bars but still no dice.
I tried this exact same process using Zen 1.2 and it works no problem. I tried it again with Zen 2.1 and it doesnt work. Would there be anything different on my system? Im running Win7 64bit, WAMP 2.1d x64 with MySQL 5.1.53, PHP 5.2.11, and Apache 2.0.63. As mentioned above everything is a clean install.
Comment #4
KrisBulman commentedcan you package up your theme directory & provide it for download? I'll test it in a vm.
You never mentioned what Zen 2.0 subtheme you're using, is it a custom one, or one you created?
Comment #5
Fidzzz commentedI've attached the contents of my \sites\all\Themes directory for you, which is only the Zen theme and my sub theme. The sub theme i'm using is what i've created fresh from the Zen STARTERKIT folder, just renamed to isaw, nothing else done except for allocating some blocks to the side bar. Thanks very much for looking into this for me.
Comment #6
KrisBulman commentedon a vanilla install using debian, here is what your theme looks like to me when viewing the blocks page. All looks good.
While I can't duplicate your windows setup, I really can't see how that environment would cause any theme issues.
Do any of your other custom blocks contain php or html? Perhaps an unended tag somewhere? Does removing those blocks fix the issue?
Comment #7
Fidzzz commentedLooks like it's definitely something to do with my setup, I just tried installing the contributed zen sub-theme Easybreeze (http://drupal.org/project/easybreeze) and columns dont work for me on that either. I might look into setting up a debain VM instead of using WAMP. Thanks for your help.
Comment #8
Fidzzz commentedWhat version of PHP and Apache are you running in your debain VM?
Comment #9
KrisBulman commentedApache2 Version: 2.2.9-10+lenny9
PHP5 Version: 5.2.6.dfsg.1-1+lenny9
Comment #10
Fidzzz commentedOk so i decided to setup a hosted sand box to play with as a quick way to remove my drupal site from my WAMP server, and frustratingly i'm still having no luck with the sidebars. If you have time can you please check out my setup?
This is my test site: http://drupaltest.web44.net/
I've just got Garland on there at the moment but if you turn on the ISAW sub theme you can see the issue.
I have the themes installed straight under the themes directory rather than the sites/all/themes directory because i couldnt get them to appear in the themes list under administration using the sites/all/themes directory. Not sure why that is.
Please let me know if you can see something I'm doing wrong.
Comment #11
KrisBulman commentedtesting it out now
Comment #12
KrisBulman commentedlook at the notes section of this page http://drupal.org/getting-started/6/admin
you need to enable clean urls and set the base_url in settings.php
you may also want to remove your server login info from your above post for safety purposes
Comment #13
Fidzzz commentedSo i've set my base_url in the settings.php file, and have tried to enable clean URLs but I can't get it to pass the test. I've played with lots of settings in the .htaccess file with no luck. The apache server is definitely using the .htaccess file because when I put some garbage text in the file my site gave me a 500 error as stated in the clean URLs handbook.
In the FAQ of the web host there's this note about the .htaccess file:
All our servers support .htaccess by default. Usage is unrestricted so you can put any rules or PHP flags to .htaccess file
But, there is one thing you should know about .htaccess and mod_rewrite rules:
We use virtual user home directory paths, so you may get errors when trying to set up search engine friendly URL's. All you need to do to fix this issue is add the below line to the very top of your .htaccess file:
RewriteBase /
Make sure this line is placed before all the other rules (on the first line of .htaccess file). That's it. Now your rewrite rules will be working fine.
So i did that but I still cant get the clean URLs test to pass. My site is installed in the root directory so I don't need to set that up in the .htaccess file. The only other thing I've tried is to put a / in front of the index.php file as suggested in the clean URLs handbook, but still no luck. I'm also running a manual cron and clearing the cache after each change to the .htaccess file.
Are clean URLs required to resolve the problem I'm having with the side bar content?
Thanks very much for all your help by the way!
Comment #14
KrisBulman commentedi'm at a loss at the moment, I don't think clean urls will affect the sidebar issue. Did you also check all of your drupal file permissions? I accidentally set my subtheme dir to the wrong permissions in D7 and noticed some odd theme behavior the other day.
Can anyone else chime in here?
Comment #15
Fidzzz commentedI set everything to 777 when i was playing with the .htaccess file, assuming that the higher the file permissions the more likely things will work of course. Is there any documentation regarding the appropriate file permissions to use?
Also are you able to give me some examples of hosts you've had success with in the past that I might be able to try instead of 000webhost.com just in case there's something similar in there setup to my WAMP setup that's affecting the side bar content. The lower the cost the better at the moment, 000webhost.com is the only free one I've come across at this stage.
Comment #16
KrisBulman commentedthis has to be a file permissions thing. I just experienced it on a local dev environment (OS X + MAMP/PHP 5.2) when I inadvertently set my www directory to 777.
In order to resolve it, i trashed everything, cloned a new drupal instance, zen and my subtheme out of git repos, and all was well. Extracting tarballs properly will also retain permissions.
Comment #17
CandaceID commentedThis loss of columns when I try to enable & default to a zen subtheme keeps happening to me also. I am not saavy enough to follow all the contortions @krisBulman went through.
In plainer English, could you explain to me what is happening? Is a file not pointing properly? Is there something being stored in cache or other repository that is obsolete?
I know editing the original theme is bad, but getting a bit tempted since this isn't working.
Suggestions?
Comment #19
KrisBulman commentedFrom what I can tell, it's a permissions problem. What are your directory permissions?
Comment #20
johnalbin