Performancing Metrics Sidebar plugin fix

If you use the Performancing Metrics (www.performancing.com) sidebar plug-in for Wordpress (created by Dave Reid) you may find you get the following error (particularly when clicking UPDATE STATS):


Performancing Metrics

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/feal/public_html/blog2/wp-content/plugins/pmetrics.php on line 375

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/feal/public_html/blog2/wp-content/plugins/pmetrics.php on line 375

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/feal/public_html/blog2/wp-content/plugins/pmetrics.php on line 375

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/feal/public_html/blog2/wp-content/plugins/pmetrics.php on line 375

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/feal/public_html/blog2/wp-content/plugins/pmetrics.php on line 375

Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/feal/public_html/blog2/wp-content/plugins/pmetrics.php on line 375

Visits: »
Today: 12
Yesterday: 18
This Week: 30
Last Week: 54
Total: 1442

Fetched at: Oct 9, 16:58

Options | Update Stats


I have found that the solution is to edit the following code, which is around line 375 (or whatever line mentioned in the error as shown above).


// Initiate cURL and set options
$ch = curl_init();
//curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);
curl_setopt($ch, CURLOPT_HEADER, $header);


Set this line to FALSE (it will be set to TRUE initially):
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, FALSE);

That fixes the issue. I am not sure what other effect this has, but the plug-in seems to continue working fine as far as I can tell.
This is some discussion on this issue which I raised on the Performancing.com website located here.


Technorati :
Del.icio.us :
Ice Rocket :

0 Responses to “Performancing Metrics Sidebar plugin fix”


  1. No Comments

Leave a Reply






Bad Behavior has blocked 126 access attempts in the last 7 days.