• Resolved tpesanka

    (@tpesanka)


    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&#8221;;

    // Open the file using the HTTP headers set above

    $file = file_get_contents($link, false, $context);
    echo $file;
    ?>

    http://wordpress.org/plugins/ip-blacklist-cloud/

Viewing 1 replies (of 1 total)
  • Plugin Author Adiie9

    (@ad33lx)

    Hi,
    The test file will work because you are loading test file directly from browser.
    Plugin files loads under WP Engine and you have to update php.ini under main WordPress installation directory, that is, update php.ini where wp-config.php is located.

    Secondly, I will update statistics page fetcher function.
    Can you send me an email at ad33l@live.com so that I can send you updated file to test it.

Viewing 1 replies (of 1 total)
  • The topic ‘Statistics page error’ is closed to new replies.