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);

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux/2.2.8/5.1.73/5.4.21/9.4.0

All times are Australia/Adelaide


Jump to: