Support Forum

get image size problem

UN
Unknown
Member

hello

i found error in error_logs file when upgrading simple-press to new version 5.5.5

this error is very large and  Is growing

how to fix it ?

this quastion is not

 PHP Warning – getimagesize(/upload/user/up/377463222106.png): failed to open stream: No such file or directory – file: /simple-press/sp-api/sp-api-filters.php – line: 2035 – function: getimagesize

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – they are a nuisance are they not. This particular call is actually coded to suppress error reporting but it seems to me there is some sort of bug in the php processor that allows it to slip through.

We have actually replaced the error handling routine for this call in the next update which will be along quite soon (at the same time as WordPress 4.2 later this month).

Just so you know (in case you do not) it is caused by images that have been linked to from remote servers that have either been moved, had their URL changed or had access permissions changed. If you are seeing a large number of these errors and want to stop them before the next update, then look for the ‘image not found’ message in forum posts. If you edit those posts and remove the image tag it will stop the errors being written out.