Hi
Do have the idea for resolve this problem:
When i try to print ordownload the PDF invoice i have the following message:
Fatal error: Uncaught exception 'Swift_IoException' with message 'Unable to open file for reading [/home/xxxxpublic_html/upload/INV-2015-0032.pdf]' in /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php:143 Stack trace: #0 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php(84): Swift_ByteStream_FileByteStream->_getReadHandle() #1 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(701): Swift_ByteStream_FileByteStream->read(8192) #2 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(353): Swift_Mime_SimpleMimeEntity->_readStream(Object(Swift_ByteStream_FileByteStream)) #3 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(489): Swift_Mime_SimpleMimeEntity->getBody() #4 /home/xxxx/public_html/system/vendor/swiftmailer/swift in /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php on line 143
Do have the idea for resolve this problem:
When i try to print ordownload the PDF invoice i have the following message:
Fatal error: Uncaught exception 'Swift_IoException' with message 'Unable to open file for reading [/home/xxxxpublic_html/upload/INV-2015-0032.pdf]' in /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php:143 Stack trace: #0 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php(84): Swift_ByteStream_FileByteStream->_getReadHandle() #1 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(701): Swift_ByteStream_FileByteStream->read(8192) #2 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(353): Swift_Mime_SimpleMimeEntity->_readStream(Object(Swift_ByteStream_FileByteStream)) #3 /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php(489): Swift_Mime_SimpleMimeEntity->getBody() #4 /home/xxxx/public_html/system/vendor/swiftmailer/swift in /home/xxxx/public_html/system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/ByteStream/FileByteStream.php on line 143
In General
Share this post:
Responses (3)
-
Accepted Answer
You doesn’t say anything about the system status, if folders are displayed as writeable or not in the system information screen. Ref link above and in the other tread.
Default for all PHP systems is:
644 for files
755 for folders
If that doesn't work you're on bad hosting, and you're recommended moving. Anyhow, if you stay you have to talk to your host.
And, PLEASE, do provide some info when you're asked to do so. Else we can not help, and will ignore any further posting as it's just a waste of time trying to guess and read minds then. -
Accepted Answer
-
Accepted Answer
As Denis noticed, this is not the same as the other tread you're posting in: https://arastta.org/forum/sending-invoice-per-mail-produce-php-error#reply-1516
So I'm still thinking it might be related to shitty hosting / bad install, and ask you to help us help you once more:
Also post your system info, PHP version etc. Check the rights, that all folders are writable. Etc etc.: https://arastta.org/docs/user-manual/tools/system-information
Your Reply
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »