fooman / emailattachments

Magento 1 Extension - add order confirmation, invoice, packing slip or creditmemo pdfs to your outgoing transactional emails. Also adds support for attaching terms and conditions and printing the order as a pdf.
http://store.fooman.co.nz/extensions/magento-extension-email-attachments.html
22 stars 22 forks source link

Error while printing invoices #34

Closed hans2103 closed 7 years ago

hans2103 commented 7 years ago

When we try to print an invoice on our development site we get the following error:

Fatal error: require_once(): Failed opening required '/example.com/app/code/community/Fooman/EmailAttachments/controllers/Admin/OrderController.php' (include_path='/example.com/app/code/local:/data/ssd/vhosts/example.comu/source/pub/app/code/community:/example.com/app/code/core:/example.com/lib:.:/usr/share/php') in /example.com/app/code/community/Fooman/PdfCustomiser/controllers/Adminhtml/PdfCustomiser/Sales/OrderController.php on line 12

I notice that it fails to get a file from a non-existing directory Admin. When I look at this repo I can't find the directory neither. I do find the directory AdminHtml. https://github.com/fooman/emailattachments/tree/master/app/code/community/Fooman/EmailAttachments/controllers/Adminhtml

Might there be a typo in the directory?

hans2103 commented 7 years ago

@fooman any updates on this issue?

chikoi commented 7 years ago

This change is relevant to your issue: https://github.com/fooman/emailattachments/commit/6ce37189741142daadde0d3a189030c3bf9d76e8#diff-e3c7101f790080ff3de6c237310409f6 I'm not sure why it's happening for you but looks like your Email Attachments is way behind Pdf Customiser (or vice versa). Updating Email Attachments and Pdf Customiser (if you have it as well) to their latest versions should fix it.

Mic2005 commented 7 years ago

@chikoi it's working on production and not on development... strange issue.

hans2103 commented 7 years ago

@chikoi I have installed both Fooman/EmailAttachments and Fooman/PdfCustomiser using composer on M1.

Fooman/EmailAttachments -> 0.11.7 from public repo https://github.com/fooman/emailattachments Fooman./PdfCustomiser -> 2.11.3 from private repo https://github.com/hans2103/Fooman_PdfCustomiser

I notice on the details tab of http://store.fooman.co.nz/extensions/magento-extension-pdf-customiser.html that the current version is 2.12.3 and can conclude that my version is way behind. I will update first and test again.

hans2103 commented 7 years ago

update to 2.12.3 solved the issue. Thank you