fast-image-size
fast-image-size copied to clipboard
[phpBB Debug] FastImageSize Failed to open stream
Error is reported @ phpBB: https://tracker.phpbb.com/browse/PHPBB3-16742 But someone told me to report it here...
I'm receiving this error in a topic with an attachment. It's strange, because it's only that 1 topic that gives this error... All others with attachments are fine...
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/marc1706/fast-image-size/lib/FastImageSize.php on line 189: file_get_contents(https://www.phpbbnl.be/download/file.php?id=15&mode=view): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden [phpBB Debug] PHP Warning: in file [ROOT]/vendor/marc1706/fast-image-size/lib/FastImageSize.php on line 189: file_get_contents(https://www.phpbbnl.be/download/file.php?id=16&mode=view): Failed to open stream: HTTP request failed! HTTP/1.1 403 Forbidden
You can see the error here: https://www.phpbbnl.be/viewtopic.php?f=5&t=8
I use PHP 8.0.3 The error is gone with PHP 7.4
=====
PHP: 8.0.3 - FPM Served By nginx MySQL(i) 10.5.9-MariaDB Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz (6 core(s)) CentOS Linux 7.9.2009 (Core) Plesk Obsidian v18.0.34
@marc1706
Perhaps using cURL
before to attempt with file_get_contents
would solve the problem with PHP 8 and the fact that the @
operator no longer silences some errors?
Any news here?
cURL
What would the correct code be then?
Hello, no fix?
Please stop bumping. If there will be a fix or news you will be noticed, thanks.