Recoverable fatal error: Argument 3 passed to l() must be of the type array, null given, called in includes/menu.inc on line 2603 and defined in l() (line 2488 of includes/common.inc).

Issue occurs in a very specific scenario of context module. Below are the steps to reproduce

  1. Context Module should be enabled.
  2. Add a new context
  3. Select user roles from the Conditions section
  4. Check all/few user roles
  5. From reactions, please select “Menu”
  6. Choose "None” from the menu
  7. Save the context.
  8. Go to user/edit page
  9. It throws error page

Please refer attached screenshot as a reference for configuration

Menu Issue

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

RavindraSingh’s picture

Issue summary: View changes
FileSize
74.16 KB
RavindraSingh’s picture

Status: Active » Needs review
FileSize
623 bytes

Added

if (isset($active_paths[0]) && $active_paths[0] == 0) {
$active_paths[0] = 'management:admin';
}

In function get_active_paths() when there are no menu was selected from the content reaction.

Status: Needs review » Needs work

The last submitted patch, 2: 2530404-error-in-menu-load.patch, failed testing.

RavindraSingh’s picture

It needs a test updates also. I will update this ASAP.