Exclusive eBooks, Software Solutions, Quality Guaranteed
 
Web NukeBiz
Welcome to NukeBiz · Members
Amazon
show cart or checkout0 items
Cart Value: 0.00

Forums » DragonflyCMS Projects » Server Trends » PHP Fatal error: Call-time pass-by-reference has been remove
PHP Fatal error: Call-time pass-by-reference has been remove
Plots trends in server CPU load and memory usage.
Post new topic    Reply to topic    Printer Friendly Page     Forum Index »  Management » Server Trends

View previous topic :: View next topic  
Author Message
layingback
Nice Poster
Nice Poster

Offline Offline
Joined: Feb 26, 2007
Posts: 77

PostPosted: Mon Jun 23, 2014 5:06 pm
Post subject: PHP Fatal error: Call-time pass-by-reference has been remove

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

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


layingback's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS)
Linux/2.2.8/5.1.73/5.4.21/9.4.0
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic    Reply to topic    Printer Friendly Page    Forum Index »  Management » Server Trends
Page 1 of 1
All times are GMT + 9.5 Hours



Jump to:  


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum