On most of my pages employing Contemplate, Drupal is generating an empty $sidebar_left for PHPTemplate. Has anyone else encountered this problem (or something like it)?
On most of my pages employing Contemplate, Drupal is generating an empty $sidebar_left for PHPTemplate. Has anyone else encountered this problem (or something like it)?
Comments
Comment #1
beekay1076 commentedHi. Somebody please heeeeeelp!
I have Drupal 5.7 installed and am working on my own theme.
I too am getting empty $sidebar_left result
It actually comes back empty no matter what theme I use - including Garland.
I even placed this simple test into my template.php file inside the _phptemplate_variables_function
Then I placed
in my page.tpl.php file and sure enough it always prints 'sidebar_left is empty'
Anyone know why?
I've search and searched through Drupal.org and Google but can't find a solution
Comment #2
jrglasgow commentedwhat is supposed to printed in the left sidebar?
Comment #3
beekay1076 commentedWell I just placed that test into template.php to see if the $left_sidebar variable contained anything.
Even though I had enabled blocks in the left sidebar, it was returning empty.
Anyhow I've now found out that it's actually a theme related problem.
It occurs when you have a different admin theme to the front-end theme.
Saving the blocks was only actually saving it for the admin theme.
Thanks anyways.
Comment #4
jrglasgow commentedDavid Fisco ,
Did you find a solution like beekay1076, or are you still having problems?
Comment #5
eiland commentedi had the same thing after upgrading from 4.7/ It was something in the blocks table. If you have phpMyAdmin, backup your blocks table, and then drop it.
Then put the following empty blocks table in there, in stead;
then you need to redefine all the positions of the blocks, but thats childsplay.