Hello,

I'm running Version 1.2.7 and it is again not possible to send invoices neither to print them at "Sales=>Invoices":

Error for mail:

Fatal error: Uncaught exception 'Swift_IoException' with message 'Unable to open file for reading [upload/INV-2016-987652.pdf]' in /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php:143 Stack trace: #0 /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php(84): Swift_ByteStream_FileByteStream->_getReadHandle() #1 /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(701): Swift_ByteStream_FileByteStream->read(8192) #2 /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(353): Swift_Mime_SimpleMimeEntity->_readStream(Object(Swift_ByteStream_FileByteStream)) #3 /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(489): Swift_Mime_SimpleMimeEntity->getBody() #4 /home/netmardo/public_html/system/vendor/swiftmailer/swi in /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php on line 143


Kind regards

Hermann
Monday, March 28 2016, 03:29 PM
Share this post:
Responses (3)
  • Accepted Answer

    Wednesday, March 30 2016, 09:47 AM - #Permalink
    Hi Herman,

    From the error message I can say that this is caused by file/folder permission on your server. Can you please change the CHMOD of "upload" folder?

    Regards
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, March 30 2016, 05:38 PM - #Permalink
    Hi Denis, thank you for your quick response.

    I've thought about the folder permission before I've made the inquire. I've the folder permission 755 which is OK for our server and also tested with permission 777: no result. I've disabled in the script the deletion of generated file in "/admin/controller/sale/invoice.php" at line 829 to check if the file is been written. There was no file written.

    We're selling web hosting too so I know the server configuration:
    https://www.gowebcreative.com/explorar-web/alojamiento-web/precios-de-alojamiento-web

    The invoice mailing was function in the version before after made the suggested change at line 813 "/admin/controller/sale/invoice.php" and after updating to version 1.2.7 cures the given error.

    Kind regards

    Hermann
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 17 2016, 06:14 PM - #Permalink
    Hi Denis,

    Sending invoices by mail do still not function, because I've not got an reasonable answer yet. It can't be an permission problem! If yes in this case would the answer show a write error and not an read error.

    I've checked the script "/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php" and if there would be an write error it would show one.

    Kind regards

    Hermann
    The reply is currently minimized Show
Your Reply