Hello,
I upgraded PHP the other day from v5.3 to v5.4.3 and my WP site would no longer load (blank/white screen).
The php error log had this to say:
PHP Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of do_action(). in /[...]/wp/wp-content/plugins/file-gallery/includes/attachments.php on line 710
Whenever you need to pass an argument by reference, just wrap it in an array, like so:
do_action('file_gallery_delete_all_attachment_copies', $attachment_id, array(&$copies));
And fix for same error on line 761 of same file:
do_action('file_gallery_promote_first_attachment_copy', $attachment_id, array(&$promoted_id));
PS. this has been proper way of pass-by-ref for a long time now, see:
http://core.trac.wordpress.org/ticket/1583
http://core.trac.wordpress.org/changeset/2798
Using File-Gallery v1.7.4.1
http://wordpress.org/extend/plugins/file-gallery/