when I set a node to create block, the regions field is empty - only option is and then when I visit the blocks page I get this message:

The block "block name" was assigned to the invalid region -1 and has been disabled

Comments

brad.bulger’s picture

i was having this problem as well, and then figured out that i had to go edit the content type - there is a "node as block settings" area there where you have to select all of the regions for your theme, in order to have any of them show up on the node edit form

webthingee’s picture

Any ideas if you are using an Admin Theme and the regions are not present when editing content?

brad.bulger’s picture

something like that is what was causing me trouble, but only because i was running my own scripts without setting up theme info properly. once i set the available regions in the content type, using Drupal normally does not mess with that, and the node editing form works fine.

arski’s picture

Component: Code » Documentation
Category: bug » task

works for me, I would mark it as a documentation issue.. also see #911090: Block 'Page specific visibility settings' wrapped in p-tags when node re-saved for possibly related issues as that started out as a duplicate.

esbenvb’s picture

Issue summary: View changes
StatusFileSize
new3.71 KB

This patch fixes the problem. I think the roots of the issue is that the block module is broken in D6, it defines the BLOCK_REGION_NONE to -1 but only checks for empty() when checking the regions for the blocks.

esbenvb’s picture

esbenvb’s picture

StatusFileSize
new0 bytes

this is the correct patch. sorry

esbenvb’s picture

StatusFileSize
new1.53 KB

Sorry, i should go to sleep. This patch fixes it.