Statistics page error
-
I have been getting this error message when I try to open IP Blacklist statistics page. All other pages work. I am hosting WP on register.com servers and have IP Blacklist plugin version 3.1 installed currently.
Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /home/p16admf9/public_html/wp-content/plugins/ip-blacklist-cloud/ip_blacklist_cloud.php on line 534
Warning: file_get_contents(http://ip-finder.me/analysis) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/p16admf9/public_html/wp-content/plugins/ip-blacklist-cloud/ip_blacklist_cloud.php on line 534
I have read the comments about the php.ini file and I have made the appropriate changes to mine. I have confirmed this with phpinfo.php file and by created a test php file using the file_get_contents() function and the error only shows on the statistics page. I found that I needed to place a php.ini file with allow_url_fopen=1 in the ip_blacklist plugins folder to remove the error from my test file. If I remove the php.ini file from the plugins folder my test file gets the error, put it back no error etc, etc. Not the same with the statistics page as I always get the same error with the same function blacklist_stats()line 534. It really hates the file_get_contents function call in that specific file. My test file is in the same location and has no errors. Any idea’s on how to fix this issue?
I can send you a link to the test file if you want to see the results on that server. This is the code I used in the test file.<?php
// Create a stream
$opts = array(
‘http’=>array(
‘method’=>”GET”,
‘header’=>”Accept-language: en\r\n” .
“Cookie: foo=bar\r\n”
)
);
$context = stream_context_create($opts);
$link=”http://www.example.com”;
// Open the file using the HTTP headers set above
$file = file_get_contents($link, false, $context);
echo $file;
?>
- The topic ‘Statistics page error’ is closed to new replies.