Hi
I configured the program to send an email when the order is created by the customer, the email, in addition to the order in HTML, has attached the pdf. The email is sent (even if it does not show me the images of the document) the PDF file is generated and correctly attached to the email but it is created wrong and I cannot open it.
I have Phoca PDF component and plugin
Thank You
Problem with PDF attach on email
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with PDF attach on email
Hi, it can happen, that e.g. some error message is rendered before the PDF document header.
Try to download the PDF and open it in text editor, mostly there are two kinds of problems:
- error message is rendered in first row and it prevents from displaying the PDF because of wrong header
- or instead of PDF the html document including error message is rendered "into" PDF document.
Jan
Try to download the PDF and open it in text editor, mostly there are two kinds of problems:
- error message is rendered in first row and it prevents from displaying the PDF because of wrong header
- or instead of PDF the html document including error message is rendered "into" PDF document.
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 32
- Joined: 14 Oct 2020, 17:45
Re: Problem with PDF attach on email
I opened a pdf order with notepad and I see only the "1" number.
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Problem with PDF attach on email
Hi, the PDF only includes one string "1"?
This looks like some debug, etc. which is stopped after some value?
Do you get the same when you enable displaying PHP errors and enable debug mode in Joomla! global configuration?
Jan
This looks like some debug, etc. which is stopped after some value?
Do you get the same when you enable displaying PHP errors and enable debug mode in Joomla! global configuration?
Jan
If you find Phoca extensions useful, please support the project