Problem with PDF attach on email

Phoca Cart - complex e-commerce extension
vitoricciardi
Phoca Member
Phoca Member
Posts: 32
Joined: 14 Oct 2020, 17:45

Problem with PDF attach on email

Post by vitoricciardi » 05 May 2021, 18:08

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

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43984
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with PDF attach on email

Post by Jan » 07 May 2021, 11:42

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
If you find Phoca extensions useful, please support the project

vitoricciardi
Phoca Member
Phoca Member
Posts: 32
Joined: 14 Oct 2020, 17:45

Re: Problem with PDF attach on email

Post by vitoricciardi » 10 May 2021, 08:35

I opened a pdf order with notepad and I see only the "1" number.

User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 43984
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Problem with PDF attach on email

Post by Jan » 12 May 2021, 13:16

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
If you find Phoca extensions useful, please support the project

Post Reply