I used version 1.0 for over a month without problems, but this update has the blocks disappearing out of the same Zen 0.6 derivative theme (haven't tested elsewhere). Thought it might be CSS cache related, but turning that on and off and clearing local cache, etc. hasn't helped. I'm hoping returning to 1.0 will as I actually didn't have any noticable problems with that version.

Interestingly the problem doesn't seem to appear immediately. It may be that subsequent site editing is ... or just passage of a couple cron runs is triggering it. But that's just speculation at this point .

Drupal 5.3
Apache 2.x
PHP 4.4

CommentFileSizeAuthor
#5 Disappearing block fix (patch)490 bytesjdschroeder
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mwpeters’s picture

Reverting to version 1.0 "seems to" restore the block visibility and function.

mwpeters’s picture

Actually I'd already updated to Drupal 5.5 when this occured.
Sorry for any confusion

casey’s picture

It's a bug in v1.1

replacing function menu_block_split_is_child() for this one would do the trick

function menu_block_split_is_child($parent, $child) {
  $item = menu_get_item($parent);
  if (is_array($item['children'])) {
    if (in_array($child, $item['children'])) {
      return TRUE;
    }
    else {
      foreach ($item['children'] as $c) {
        if (menu_block_split_is_child($c, $child) == TRUE) {
          return TRUE;
        }
      }
    }
  }
 return FALSE;
}
submit.dk’s picture

Thank you Casey

Just what i needed :-) It works

Regards
Kenneth

jdschroeder’s picture

Status: Active » Needs review
FileSize
490 bytes

This also fixed a similar problem for me. I'm submitting casey's code as a patch.

nadavoid’s picture

I was experiencing the same problem. This patch worked for me too. Thanks!

Robrecht Jacques’s picture

Status: Needs review » Reviewed & tested by the community

This patch works for me too.

rapsli’s picture

works for me too. :)

Murz’s picture

Works for me too. Please commit to HEAD or release a new version.

robertgarrigos’s picture

Status: Reviewed & tested by the community » Fixed

thank you. commited to head. It will be included in the next 1.2 release.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

joly’s picture

Title: disappearing menu blocks » still in 6.x: disappearing menu blocks
Version: 5.x-1.1 » 6.x-1.0
Category: bug » feature
Status: Closed (fixed) » Active

Hi,

I have installed 6.x. When clicking on a 3rd-level menu-item, the split-block disappears (again).
I looked at the patch for 5.x, but i don't know how to use that on 6.x

Has anyone fixed this for 6.x ?

Thanks, Joly

robertgarrigos’s picture

Status: Active » Fixed

this should be fixed with 6.x-1.2 release. please reopen issue otherwise

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.