DragonflyCMS Projects > Server Trends > PHP Fatal error: Call-time pass-by-reference has been remove > Community Forums > Phoenix Netology
Forum Index > Management > Server Trends

PHP Fatal error: Call-time pass-by-reference has been remove Reply to topic


The above error appears in Server_Trends when run under PHP 5.4 or later.

Fix is to simply remove the 2 &'s in line 41 of modules/Server_Trends/server_trends.php

$sock = fsockopen($host, $port, &$num, &$error, 2);
becomes
$sock = fsockopen($host, $port, $num, $error, 2);

Please enter your server specs in your user profile! 😢

All times are Australia/Adelaide


Jump to: