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.

screenshot

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.
screenshot
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.
screenshot
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.
screenshot
Patch is attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

veronicaSeveryn created an issue. See original summary.

veronicaSeveryn’s picture

Status: Needs review » Needs work

The last submitted patch, 2: empty-menu-block-content-2833856-2-d7.patch, failed testing.

veronicaSeveryn’s picture

grahamC’s picture

Status: Needs work » Closed (duplicate)

Sorry 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...