• Hi, I am running this plugin on a couple of sites, one of them in particular has had a huge drop in Google SERP that may or not be related but I just checked my error log and found that it is 6gb in cPanel, mostly of this same error regarding the plugin:

    [28-Dec-2018 20:23:46 UTC] PHP Warning: file_get_contents(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /public_html/wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php on line 48

    [28-Dec-2018 20:23:46 UTC] PHP Warning: file_get_contents(https://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: no suitable wrapper could be found in /public_html/wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php on line 48

    Any insight would be appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter yakimabranding

    (@yakimabranding)

    The site otherwise works fine, I haven’t noticed any issues apart from the error log being filled with this

    Plugin Author alexstandiford

    (@alexstandiford)

    Hello!

    It appears that I have to change that class to use curl instead of file_get_contents, because some servers will spit out this error message if you have allow_url_fopen disabled on your server.

    For now, if you want to stop these errors, you’ll need to set allow_url_fopen to 1 in your php config file. If you don’t have access to that, the function below might fix it.

    function fyt_enable_fopen(){
      ini_set("allow_url_fopen", 1);
    };
    
    add_action('wp_dashboard_setup','fyt_enable_fopen',1);

    There are discussions that allow_url_fopen poses some security risks, but I’ll leave that up to you to decide. I think it’s fine.

    https://security.stackexchange.com/questions/103427/what-are-php-allow-url-fopen-security-risk

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Huge Error Log’ is closed to new replies.