Php function not working - getimagesize()

Hello.
I need to help. Php function not working - getimagesize().
Problem SSL.

Error: getimagesize(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed

Page error:
stan.kz/feed/google/

May I ask if you’re fetching an image via URL from the Website which uses Cloudflare, or locally? :thinking: Are you the Website owner or not?

1 Like

Site is my.
The image has already been uploaded (locally, on the server).
I refer to images in getimagesize()

This shows, that this is an internal error, not a Cloudflare related one. Please have a read here: php - "getimagesize(): SSL operation failed with code 1" on local Xampp only - Stack Overflow

Your webserver probably does not have any, or no current CA-Certs. So can not validate any URL it needs to fetch.

Also: if you have the picture already on your server itself. Why do you try to fetch the public URL of the picture?

Instead of fetching the public URL:

https://stan.kz/download/uploads/2022/10/full_166477809937240bc00578e0fdbe922e1c9c878fb5_webp.webp

you could simply access it internally:

/var/www/www-root/data/www/new.stan.kz/download/uploads/2022/10/full_166477809937240bc00578e0fdbe922e1c9c878fb5_webp.webp
1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.