I'm playing with Panels & Panels Everywhere on my localhost and I'm using PHP 5.4.9. It looks like in PHP 5.4.9, it is required to put the ampersand explicitly in the definition of a function, if you want it to receive arguments by reference when called by call_user_func_array. This probably affects loads of functions in contrib. Worst of all, PHP fails silently, which is stupid - it was supposed to fail with a fatal error. Docs: PHP, passing by reference, where the comments shed some light on this.

My current issue is with panels_everywhere_theme_registry_alter(), which requires its ampersand too (it's called inside drupal_alter(), which uses PHP's call_user_func_array()). So here's a patch that adds it.

Comments

camil.bancioiu’s picture

A consequence of this is that Panels Everywhere has no effect when it is enabled in the Panels > Settings > Everywhere page.

Adding this comment just to get it indexed by search engines, so people will find it while describing the problem by its symptoms.

nigelcunningham’s picture

Status: Needs review » Reviewed & tested by the community

This fixes the issue for me too.

damienmckenna’s picture

Issue summary: View changes
StatusFileSize
new527 bytes

A simple reroll, so I'm going to leave the status as-is.

damienmckenna’s picture

Status: Reviewed & tested by the community » Fixed

Committed! Thank you for your patience.

Status: Fixed » Closed (fixed)

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