By preper on
Hi everybody;
when I create a views block or create a new block I can see it in inactive blocks list. after I choose a region for them and save block. hovewer I can not see the block in this region.
shortly I can create a block but can not show it. how can I solve this problem??
Comments
It is possible that the
It is possible that the region is not printing out your block. Check your themes template files for something like
print $yourRegion"I searched in template.php
I searched in template.php and no result found. what shoul I do. can you explain step by step please? my template.php shown below..
Have you tried editing the
Have you tried editing the block in question after assigning it to a region? On the blocks page, assign the block to a region and hit save. Then click the edit link next to the block, and save the block without making any changes. Does it still appear in the right region? Does it appear at all?
If not, try the same thing but edit and save the block while it's still disabled then put it in a region.
I had some block weirdness after an upgrade recently and editing and saving the blocks seemed to fix them.
I tried your advice but it
I tried your advice but it didn't solve my problem. when I edit and save it is still in right region in blocks page but not shown in webpage.
The only things I can now
The only things I can now think of would be that your theme isn't outputting things correctly, or you have a permissions problem going on. Have you ticked any of the boxes under "Show block for specific roles"? Do you have any kind of other access rules (including CCK field permissions or views access) going on?
I think from the template file you posted you're using the newswire theme, does that theme have any page or section specific region visibility going on? It might be worth a post in that theme's issue queue.
DC
I think it is not about
I think it is not about permissons or visibility because I am admin I should see all of the content is it true? Also an interesting event happened. there is an old block in my "nothing" region. I choosed a region for it and it worked. now I can see it in my webpages. but when I add new block I can not see it. I use boost module on my web site can it be related with it?
I'd definitly disable Boost
I'd definitly disable Boost completely. I haven't used it in a while, but I think you can clear the boost cache on the settings page or drupal performance page. I'd have a look around there for something like that. If that doesn't do anything I'd disable the module completely, clear all caches, and see what happens.
Block delta can't be longer than 32 characrters
I had a funny issue where I could see a custom module block appear in the disabled section on my blocks page, but when I tried to move it to a region (even with javascript off, manually setting the region and weight), the page at admin/build/block would not save it to any region.
It was only affecting this one block, and it could not be saved to ANY region.
What fixed it for me was simply shortening the block delta in code. I had been using strings like $block['this_is_a_descriptive_administrative_title'] to simplify theming, and i had created a delta longer than 32 characters. Once I renamed it to be shorter, it solved the issue and I could save the block to any region.