• I’m using the latest version of the plugin.

    The below function (in the FastImage class) throws the warnings:

    public function load($uri)
    {
        if ($this->handle) $this->close();
    
        $this->handle = fopen($uri, 'r');
    }

    The error messages vary:

    failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
    failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
    failed to open stream: Network is unreachable

    Please put the fopen(…) in try catch or validate if the image is exists or not before you want to open it for reading.
    That way the warnings would dissapear.

    Thank you!

    https://www.ads-software.com/plugins/amp/

  • The topic ‘FastImage class throws warnings on fopen’ is closed to new replies.