Quote:
| Fatal error: Only variables can be passed by reference in /home/forumsb/public_html/group.php on line 803 |
Admin, if you don't know how to fix,it's a problem with the variables in your PHP code.
Actually, it's the fault of the new version of PHP 5.05, I had it too when I installed from 4.4 to 5.05!
Well, they changed the warning in 5.05, go to the file edit it, and you'll see this code
Code:
function getAnArray() {
$myArray = array ( 1, 2, 3 );
return $myArray;
}
echo( array_pop( getAnArray() ) ); but it must be somthing like this:
Code:
function getAnArray() {
$myArray = array ( 1, 2, 3 );
return $myArray;
}
echo( array_pop( $my_temp_variable= getAnArray() ) ); This will help to the code to make a mistake.
Because without a temporarly variable the php code will think, is it reference or not?!
Ok, I hope I made it clear to you, good luck fixing it.
I marqued the code you need to change.