PHP Fatal error: Call-time pass-by-reference has been removed
// Wrong way you had Declared
myFunc(&$arg); # Deprecated pass-by-reference argument
function myFunc($arg) { }
// Right way to change your code to
myFunc($var); # pass-by-value argument
function myFunc(&$arg) { }