• Resolved sparky48

    (@sparky48)


    I get this set of warnings after I do plug-in updates. I do not write code just maintain the website.
    
    Warning: get_headers(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0 in ......public_html/wp-content/plugins/really-simple-ssl/security/wordpress/vulnerabilities.php on line 781
    
    Warning: get_headers(): This function may only be used against URLs in .........public_html/wp-content/plugins/really-simple-ssl/security/wordpress/vulnerabilities.php on line 781
    
    (Continues for multiple lines)
    
    Lines 780-784 below in vulnerabilities.php
               //now we check if the file remotely exists and then log an error if it does not.
                $headers = get_headers($url);
                if (strpos($headers[0], '200')) {
                    //file exists, download it
                    $json = file_get_contents($url);

Viewing 1 replies (of 1 total)
  • Plugin Support Jarno Vos

    (@jarnovos)

    Hi @sparky48,

    The errors you’re seeing are likely the result of your server’s PHP configuration, as the allow_url_fopen setting seems to be disabled.

    This prevents PHP from opening URLs as files, and it’s this setting that functions like get_headers() and file_get_contents() rely on.

    In order to resolve this, you would need to enable allow_url_fopen in your PHP configuration.

    Hope it helps! Kind regards, Jarno

Viewing 1 replies (of 1 total)

The topic ‘Warning: get_headers()’ is closed to new replies.