still in 6.x: disappearing menu blocks

mwpeters - December 17, 2007 - 21:35
Project:Menu Block Split
Version:6.x-1.0
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:closed
Description

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

#1

mwpeters - December 17, 2007 - 21:42

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

#2

mwpeters - December 18, 2007 - 00:25

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

#3

casey - December 29, 2007 - 12:51

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;
}

#4

submit.dk - January 10, 2008 - 13:37

Thank you Casey

Just what i needed :-) It works

Regards
Kenneth

#5

jdschroeder - February 6, 2008 - 18:45
Status:active» needs review

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

AttachmentSize
Disappearing block fix (patch) 490 bytes

#6

nadavoid - March 2, 2008 - 06:20

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

#7

Robrecht Jacques - March 8, 2008 - 09:36
Status:needs review» reviewed & tested by the community

This patch works for me too.

#8

rapsli - March 26, 2008 - 19:09

works for me too. :)

#9

Murz - April 9, 2008 - 13:48

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

#10

robertgarrigos - May 12, 2008 - 10:33
Status:reviewed & tested by the community» fixed

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

#11

Anonymous (not verified) - May 26, 2008 - 10:43
Status:fixed» closed

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

#12

joly - November 4, 2008 - 12:59
Title:disappearing menu blocks» still in 6.x: disappearing menu blocks
Version:5.x-1.1» 6.x-1.0
Category:bug report» feature request
Status:closed» 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

#13

robertgarrigos - February 7, 2009 - 14:15
Status:active» fixed

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

#14

System Message - February 21, 2009 - 14:20
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.