I just upgraded the module from 7.x-2.5 to the recent Dev version (7.x-2.7+3-dev from Sep 5th, 2016), and on a site running PHP 5.5 or PHP 5.6 my menu blocks stopped rendering.
Debugging the issue led me to menu_block.module line #536. I discovered that the way it's written at the moment, it returns $output = TRUE, rather than the renderable array for the menu tree.
As soon as I replaced it to be as on the image below - $output = array (of some data) and the rest of the calculations and theme rendering works just fine.
Not sure if this is PHP version specific or just the way AND/OR conditions act if there're no explicit parenthesis set.. But that was the only way for me to fix the missing menu blocks content.
Patch is attached.
Comment | File | Size | Author |
---|---|---|---|
#4 | Screen Shot 2016-12-07 at 6.49.39 PM.png | 791.84 KB | veronicaSeveryn |
#2 | empty-menu-block-content-2833856-2-d7.patch | 650 bytes | veronicaSeveryn |
Screen Shot 2016-12-07 at 6.36.09 PM.png | 45.79 KB | veronicaSeveryn | |
Screen Shot 2016-12-07 at 6.32.01 PM.png | 164.17 KB | veronicaSeveryn | |
Screen Shot 2016-12-07 at 6.31.45 PM.png | 167.09 KB | veronicaSeveryn |
Comments
Comment #2
veronicaSeveryn CreditAttribution: veronicaSeveryn at Inclind Inc commentedComment #4
veronicaSeveryn CreditAttribution: veronicaSeveryn at Inclind Inc commentedComment #5
grahamCSorry to say, this looks to be the same issue as #2820279: [Regression] Bugfix #2327795: broken rendering result introduced by display_empty which already has a fix ready to be committed...