Customizing SMF > SMF Coding Discussion
Problems in images...
JuhaS14:
Hi!
I get lots of gdlib-errors, likes these:
2: getimagesize: Unable to open 'http://www.kolumbus.fi/dima.skeber/diskus.gif' for reading.
Tiedosto: /var/www/forum/Sources/Subs.php
Rivi: 1425
2: getimagesize: Unable to open 'http://koti.welho.com/taskola/Nismo/s13tne1.jpg' for reading.
Tiedosto: /var/www/forum/Sources/Subs.php
Rivi: 1425
Lots of those errors..
Example topic:
http://www.dnsf.org/forum/index.php?topic=3799.0
Oldiesmann:
When I click on the links for those images, I get a "404" error (the general "Page cannot be displayed" message). Make sure that those images actually exist.
JuhaS14:
Yeah, but if the image is not exist, it shouldn't give error message. So is it better to @ that gdlib-function?
[Unknown]:
An @ is being used, your PHP is just not listening.
-[Unknown]
Chris Cromer:
[Unknown] the problem isn't PHP, I found a bug in the SMF Public beta just now that is ignoring the @ in the error handler.
This line:
--- Code: --- if ($errno & error_reporting() == 0)
--- End code ---
in Errors.php needs to be changed to this:
--- Code: --- if ($errno && error_reporting() == 0)
--- End code ---
After I did so it started to properly ignore things with @ like it should be.
Navigation
[0] Message Index
[#] Next page
Go to full version