A clean install of Drupal with only core modules enabled.

After installing Context module with CTools, the block regions (indicator) in admin/build/block disappears.
But the block system still works, only minor thing that the region name is not shown anymore.

See screenshots:
http://img814.imageshack.us/img814/9185/withcontext.png
http://img828.imageshack.us/img828/4074/withoutcontext.png

I've searched the issue queues, seems like no one else suffers from this problem or is it too minor problem?

CommentFileSizeAuthor
#10 916194-10-context-block-content.patch2.48 KBnedjo

Comments

kgod’s picture

same problem for me

bsuttis’s picture

Confirming same issue.

idcm’s picture

same issue. it doesn't seem to do this in context 2.x - or at least if doesn't do it in Drupal Commons which is using 2.x. I really need the region displays so I can use firebug to know what to tweek. Please consider adding this issue.
thanks

idcm’s picture

I just noticed - the core chameleon theme still shows its region displays but it only has two regions (the left and right sidebars). So ... maybe that is a clue as to what might be wrong?
hope it helps.

ktleow’s picture

Because Chameleon is not a Phptemplate theme?

B00N’s picture

Confirming also the same issue.

nedjo’s picture

Issue results from overriding the theme registry for 'blocks' in context_theme_registry_alter(). context_blocks() calls the execute() method in context reaction block plugin, but that method doesn't call drupal_get_content() (like theme_blocks() does) and so doesn't receive the markers set by the drupal_set_content() call in template_preprocess_block_admin_display_form().

Functions involved are specific to D6. If needed for D7, solution will be different.

danny englander’s picture

Same issue here, this function is sort of important if you are theming / playing around with different themes to see visually where regions are on the blocks page.

Natetronn’s picture

Same issue here as well.

nedjo’s picture

Status: Active » Needs review
StatusFileSize
new2.48 KB

Patch. See #7 for description of source of bug.

danny englander’s picture

#10 works. My visual representations of block regions are back on the blocks page. Thank you!

shaisamuel’s picture

mstef’s picture

+1 for patch @ #10

shaisamuel’s picture

Can't get this patch to work. Installed it with the "patch" module with, model=context, issue #=916194 over Drupal 6.2, Context 6.x-3.0, Theme Black Mamba 6.x 1.4. It's install smoothly, but does not create the result. Anyone please?

mstef’s picture

@shaisamuel: clear cache

shaisamuel’s picture

#16 thanks Mike, it worked. I love Drupal and the community of people around it.

soulfroys’s picture

+1 for patch #10 !
Applied ok in 6.x-3.x-dev (2011-Feb-25).

summit’s picture

Thanks, greetings, Martijn

HumanTex’s picture

Since this wasn't committed to the 6.x.3 dev version and I'm using a win dev server, I can't do a true patch. I pulled code from #10 and manually applied it to the 3 files affected. I get no errors - but even after clearing the cache once the module is enabled, the regions still don't show at all. Disabling it displays all the regions as expected.

brunorios1’s picture

sub

brunorios1’s picture

the problem not happen with the theme Zen.

the patch works perfectly in other themes, but in Zen, the regions indicators shows duplicated.

thanks

energee’s picture

I am experiencing this same problem however context is not installed on my site

shaisamuel’s picture

Try @16, few times.

hefox’s picture

HumanTex’s picture

@hefox...

Applied the fix from the link you posted, and it seems to get the region displays on the blocks page working as expected. I have no idea if Context itself works correctly after patching (I'd disabled it after this block issue), but no other errors or WSOD's so far.

EDIT: A little hasty on posting without checking everything a bit more thoroughly first. It does fix the admin side of things to get the regions back, but after going to the regular site pages it does break my theme now that Context is enabled. I won't conclude that it's doing this in error, since Context's purpose is to modify the layout and I may need to rework how the pages render... so the caveat here is that you might want to make sure things are as they should be on a non-production site first. Disabling Context (again) did get my layouts back to normal, until I can devote a fair amount of time to go through things.

soulfroys’s picture

Status: Needs review » Closed (duplicate)

As predicted by @vectoroc here, this RTBC patch fixes the problem. So, this issue could be considered duplicate of #633778: Conflict with themes implementing theme_blocks(), Isn't It?