Major problem when update to version 7 x -2.5. The site is blocked by a error message.

AFTER UPDATE =

Notice: Undefined variable: page_top in /Volumes/RAID 8/ Pågående Arbeten/_DP_Databaser_lokala/aco2015_dp735/sites/all/themes/adaptivetheme/at_core/templates/maintenance-page.tpl.php on line 30
Fel
Felmeddelande
Recoverable fatal error: Argument 3 passed to menu_tree_prune_tree() must be of the type array, boolean given, called in /Volumes/RAID 8/ Pågående Arbeten/_DP_Databaser_lokala/aco2015_dp735/sites/all/modules/menu_block/menu_block.module on line 375 and defined i menu_tree_prune_tree() (rad 671 av /Volumes/RAID 8/ Pågående Arbeten/_DP_Databaser_lokala/aco2015_dp735/sites/all/modules/menu_block/menu_block.module).
Webbplatsen stötte på ett oväntat fel. Var vänlig försök igen senare.

So I went to line 375 in the "Menu_block.module" file and set the lines 375-381 off. See attached file, here is the lines.

  // Prune the tree along the active trail to the specified level.
/*  if ($config['level'] > 1 || $config['parent_mlid']) {
    if ($config['parent_mlid']) {
      $parent_item = menu_link_load($config['parent_mlid']);
      menu_tree_prune_tree($tree, $config['level'], $parent_item);
    }
    else {
      menu_tree_prune_tree($tree, $config['level']);
    }
  }
*/

Now the site is running, but I don't understand what meaning off the code who no longer is active, it's over my horizon .;)

Can any one please advice if this solution is ok, or if it's possible to adjust what's wrong in the code on the lines 375-381, who creates the error message.

Maybe it's Panel Everywhere and the theme "at_panels_everywhere" who cause the detected problem. I was not able to update "Adaptive theme" on last update, so I am stuck in the older version of the theme, because of setting in the subtheme "at_panels_everywhere".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Göran’s picture

Assigned: Göran » Unassigned
izus’s picture

Status: Active » Needs review
FileSize
758 bytes

Hi,
i had the same error and came up with a patch for it
Thanks

Status: Needs review » Needs work

The last submitted patch, 2: menu_block-major_problem_when_update_7x2.5-2456813-2.patch, failed testing.

izus’s picture

Status: Needs work » Needs review
FileSize
686 bytes

Corrected patch

Dave Reid’s picture

Version: 7.x-2.5 » 7.x-2.x-dev
Status: Needs review » Closed (duplicate)
Related issues: +#2421645: Recoverable fatal error: Argument 3 passed to menu_tree_prune_tree() must be of the type array, boolean given

This has already been fixed with #2421645: Recoverable fatal error: Argument 3 passed to menu_tree_prune_tree() must be of the type array, boolean given - it means your exported menu block config is not in the right format, so likely you should re-export it.