The problem code is in page-wizard.inc within the page_manager_page_wizard() function:

  if ($function = ctools_plugin_get_function($plugin, 'access callback') && !$function($plugin)) {
    return MENU_ACCESS_DENIED;
  }

The second occurrence of $function is undefined, because the above is equivalent to:

  if ($function = (ctools_plugin_get_function($plugin, 'access callback') && !$function($plugin))) {

To fix it in one line, add parentheses around the assignment, or use and instead of &&.

Comments

solideogloria created an issue. See original summary.

solideogloria’s picture

Status: Active » Needs review
StatusFileSize
new545 bytes
solideogloria’s picture

Can someone review this? This can be easily tested using a simplified example showing the Fatal Error.

joelpittet’s picture

Status: Needs review » Fixed

Wow, I wonder how this ever worked, nor has anybody else come across this. Thanks @solideogloria.

joelpittet’s picture

Status: Fixed » Closed (fixed)

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