fast-image-size icon indicating copy to clipboard operation
fast-image-size copied to clipboard

[phpBB Debug] FastImageSize Failed to open stream

Open SpIdErPiGgY1984 opened this issue 3 years ago • 5 comments

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

SpIdErPiGgY1984 avatar Apr 02 '21 20:04 SpIdErPiGgY1984

@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?

3D-I avatar Apr 03 '21 02:04 3D-I

Any news here?

SpIdErPiGgY1984 avatar Apr 22 '21 13:04 SpIdErPiGgY1984

cURL

What would the correct code be then?

SpIdErPiGgY1984 avatar Apr 24 '21 17:04 SpIdErPiGgY1984

Hello, no fix?

SpIdErPiGgY1984 avatar Jun 22 '21 18:06 SpIdErPiGgY1984

Please stop bumping. If there will be a fix or news you will be noticed, thanks.

3D-I avatar Jun 23 '21 07:06 3D-I