Drupal 7 does not create user area

My problem is that I added a new area to my .info file for the second sidebar. After that, I attached blocks to it in the structure> block area. Finally, on page.tpl, I rendered it using

<?php print render($page['sidebar_second']); ?> 

It worked initially, then I moved everything to a new domain, copied all the files attached to all blocks, but now it does not appear at all.

here is the .info file

 regions[sidebar_first] = Sidebar first regions[sidebar_second] = Sidebar second regions[sidebar_bob] = Sidebar B0b! 

Here are attached blocks , as they are displayed in the section Structure> Blocks

Finally, I printed

 <pre><?=print_r($page,1)?></pre> 

and here it shows that sidebar_second is empty

Finally, I created a block containing a simple red div with dimensions of 200 pixels, which should be displayed on each page, so I have no idea why it does not appear.

+4
source share
2 answers

Have you tried to clear the registry by that? This used to be my next step when flushing the cache doesn't seem to have an effect.

0
source

Make sure the following line exists in your page.tpl.php :

 <?php print render($page['sidebar_second']);?> 
0
source

Source: https://habr.com/ru/post/1444415/


All Articles