Support

Home Forums Event Espresso Premium PDF not generate after click invoice button

PDF not generate after click invoice button

Posted: September 28, 2017 at 6:43 am


Talmor

September 28, 2017 at 6:43 am

Hi EE,
When i or a customer try’s to download the PDF invoice the site redirect to the homepage without css, and the PDF will not download/generated.
The link created is https://www.domain.nl/?ee=msg_url_trigger&snd_msgr=pdf&gen_msgr=html&message_type=invoice&context=purchasertoken=1-5ef9e8ca62b9c7f5aa7907c06755268e&GRP_ID=2&id=0

I did changed the invoices templates but it worked in the beginning.

Now i disabled all the non EE plugins without results.
Last versions WP and EE plugins.
Could you please help, thankyou


Tony

  • Support Staff

September 28, 2017 at 10:31 am

Hi there,

Can you check with your host that the request isn’t being blocked on their end by some form of security, maybe a mod_sec rule?


Talmor

September 29, 2017 at 3:38 am

Hi Tony,
Well im sort of the host. Not sure about mod_sec
Is there a way i can send you i private message with the php info of the server?
I dont see any error logs with debug enabled. Only a POST request.
PHP7 enabled now but with the same result.


Tony

  • Support Staff

September 29, 2017 at 4:07 am

Well im sort of the host. Not sure about mod_sec

What stack are you using?

Is there a way i can send you i private message with the php info of the server?

phpinfo() output won’t really help but you can send details to support[at]eventespresso.com

You currently have caching enabled on the site, try clearing the cache, then temporarily disabling all caching. Does that help?


Talmor

October 2, 2017 at 3:25 am

Hi Tony,
I created a clean WordPress install on the same server without any plugins and the same problem occur. Shall i give you a account with administrator rights so you could look what is the problem? I really don’t know what to do.
Stack:
OS: Linux (Centos)
Server: Apache/2
Operating System: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-514.21.1.el7.x86_64
Architecture: x86-64

PHP

v5.6.31 or PHP 7
GD: bundled (2.1.0 compatible)
Magic Quotes GPC: Off
Memory Limit: 256,0 MiB
Max Upload Size: 64,0 MiB

MYSQL
v10.1.26-MariaDB
Maximum No. Connections: 151
Maximum Packet Size: 16,0 MiB
Data Disk Usage: 1,4 MiB
Index Disk Usage: 1,6 MiB


Tony

  • Support Staff

October 2, 2017 at 4:35 am

I created a clean WordPress install on the same server without any plugins and the same problem occur.

If you have set up a clean install, with no other plugins to conflict with and your using a default theme such as twentyseventeen with the same problem then it’s unlikely a login to the site will help as its more likely to be a server config issue.

If you are the host you should be able to check if mod_security is enabled within Apache?


Talmor

October 3, 2017 at 5:17 am

hi Tony,

mod_security is not enabled on the server. No other plugins, default theme, default event espresso settings. Debug on true. I don’t see any errors in the httpd logfiles. Download button returns this url:
http://talmor.studiosoes.nl/?ee=msg_url_trigger&snd_msgr=pdf&gen_msgr=html&message_type=invoice&context=purchaser&token=1-76892d8227f00ef15363c01d6bc12772&GRP_ID=14


Tony

  • Support Staff

October 4, 2017 at 4:19 am

Hmm, ok.

Can you send me temporary login details for the site so I can take a look (I still suspect this is a server config issue but will take a quick look over the site to see if anything stands out).

To send, you can use this form: https://eventespresso.com/send-login-details/


Talmor

October 5, 2017 at 7:22 am

Okay, login details send. thanks!


Tony

  • Support Staff

October 10, 2017 at 4:32 am

I replied via email with details on this but just wanted to update the thread for future readers.

The problem here is due to the version of libxml installed on the server, we use DOMPDF to generate the PDF’s through EE, look at this issue on their repo:

https://github.com/dompdf/dompdf/issues/1494

There seems to be an issue with later versions of libxml.

The ticket suggests removing all whitespace between the HTML tags to workaround this (which works) so we will likely include in the next version of Event Espresso 4.


Josh

  • Support Staff

October 16, 2017 at 2:33 pm

The idea Tony shared about removing all whitespace between HTML tags was included in the latest version of Event Espresso 4.

The support post ‘PDF not generate after click invoice button’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso