PHP Classes

error filesize(): stat failed for

Recommend this page to a friend!

      MIME E-mail message sending  >  All threads  >  error filesize(): stat failed for  >  (Un) Subscribe thread alerts  
Subject:error filesize(): stat failed for
Summary:error filesize but still its sent
Messages:3
Author:Alfredo Alfaro
Date:2020-05-26 05:54:50
 

  1. error filesize(): stat failed for   Reply   Report abuse  
Picture of Alfredo Alfaro Alfredo Alfaro - 2020-05-26 05:54:50
Hi Manuel.

Very useful class package MIME E-mail message.

I have been using for some time now however I just upgraded my server to php 7.3 and I get an error:

error filesize(): stat failed for https://...../image.png


<pre>Array (
[body] =>
[part] => 0
[type] => image
[full_type] => image/png
[sub_type] => png
)
</pre>

However the email is sent and the images are shown in the emails body. I am using it on a web page and It generates error messages on the page which is annoying.

I appreciate your help very much.

  2. Re: error filesize(): stat failed for   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2020-05-26 12:18:29 - In reply to message 1 from Alfredo Alfaro
Hello Alfredo,

The class needs to know the size of files included in the messages that you send just to check that the messages were fully read. It seems it is not possible to get the file size of those remote files you are using due to some circumstance in the remote HTTP server.

I can add a workaround to the class but I have some priority tasks to work, so I am not sure when I will be able to look into this.

I suggest that you retrieve the remote files that you pass to the class using URLs and store those files in local files in your server. Then pass the paths of those files to the MIME message class and it will work.

Can you please try this and let me know if this works?

  3. Re: error filesize(): stat failed for   Reply   Report abuse  
Picture of Alfredo Alfaro Alfredo Alfaro - 2020-05-26 22:50:54 - In reply to message 2 from Manuel Lemos
Hi Manuel.

Thank you very much for taking the time to answer my questions.


It works very nice by using the images from within my server, it solved the problem.