ABED OUIS
ABED OUIS
Offline
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
In General
Friday, April 22 2016, 11:00 AM
Share this post:
Responses (3)
  • Accepted Answer

    Monday, April 25 2016, 11:37 AM - #Permalink
    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.
    The reply is currently minimized Show
  • Accepted Answer

    ABED OUIS
    ABED OUIS
    Offline
    Sunday, April 24 2016, 09:45 PM - #Permalink
    I try to change the CHMOD permission wich number i choose??
    644 or 755 or other?
    Thanks
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 24 2016, 01:34 PM - #Permalink
    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
    The reply is currently minimized Show
Your Reply