2

I have inherited the Administration of a Drupal 6 site with major funkiness going on. In this case I can't even figure out where to look.

There are a few dozen blocks configured and for the most part they are displaying what they are supposed to. However, a few of them are either blank or need tweaking. When I go to the block admin page, I am able to configure the blocks and bring up the Block specific settings tab, however the normal fields are all missing. Only Block Title shows up and that appears to be blank across the board.

D6 Block edit form with missing fields

Strangely enough, if I go to add a new block of my own, the form shows up correctly with all the fields.

D6 New Block form with normal fields

What could cause these fields to not be displayed for existing blocks or where would I find the content of these blocks to be edited?

  • Is the New members block from a module or in any other way created programatically? In that case, the creator (of that block) might have excluded the functionality to make the title customizable. – hampusn Sep 10 '12 at 13:29
5

I suspect that the blocks that are doing this are made via hook_block and not with the block UI (ie, admin/build/block/add). I just checked a Drupal 6 site that I did a while ago, and all of my custom blocks have this behavior.

The Configure link for each custom block should contain the module name that defined it, along with the delta. For example the "Who's online" block has this for the configure link:

admin/build/block/configure/user/3

It is defined in user.module and if you look at user_block you will see that the $delta for this is 3.

  • Oy. So if my URL reads /admin/build/block/configure/views/Users-block_1 I need to hunt for something the Views module is supposed to be generating? That leads to a dead end, but then again that might be why the block is blank. But if the Views module isn't generating a corresponding view that's getting exported/viewed as a block, why is there even an entry in the blocks list? – Caleb Sep 10 '12 at 13:44
  • 2
    My guess would be that there is a view called "Users" that has a display called "block_1". I am not positive about this, as I never make blocks from views. Poke around "admin/build/views". – mpdonadio Sep 10 '12 at 13:49
  • This appears to be the right answer for all sane cases. In my case I had to nuke some orphaned entries from the database by hand and re-create some views, but this put me on the right track for where to find what I needed. The blocks were being created by views, in which case they show up like this in the block editor. – Caleb Sep 10 '12 at 23:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.