Problem uploading PDF template

5 February, 2023 01:10:15
denisbg
Topics: 1
Messages: 2
Hi e2pdf support team !

I've been playing with e2pdf for a couple of days ad I have an issue when I try to upload a pdf template.
In the "Create PDF" modal I click on "Upload PDF" and I choose my file and then I click on "Upload PDF" and ... nothing.
The "Create PDF" modal seems to process something but after a few seconds it is still here, and there is no error message.

The only information I have is a POST internal server error in my web server access log :
"POST /wp-admin/admin-ajax.php?action=e2pdf_upload&e2pdf_check=true&_nonce=558d2a7d71 HTTP/1.1" 500 194 "https://<mywebsite>/wp-admin/admin.php?page=e2pdf-templates&action=create"

"Empty PDF" and "Auto PDF" work just fine.
I tried with different PDF files, created with different tools (word, excel), either exported to PDF or printed to PDF.

My template file is attached so you can see if there is something wrong with it.

Thaks in advance for your help.
5 February, 2023 05:11:49
E2Pdf
Support
Topics: 7
Messages: 3330
Hi, we do not see any problems with the current PDF on our side, so it seems the issue is connected with something else.

The fastest way to see what can cause an error will be to check your website error.log for Fatal Errors.

If there is no access or you are not sure how to check it, enable please "Turn on Debug mode" at "E2Pdf" -> "Settings". After this, go please to "E2Pdf" -> "Debug" and check if you have any red marks or errors at the "Debug", "Connection" or "DB" tabs. If any, attach please some screenshots.

P.S. Are you able to save created E2Pdf Template with "Empty" or "Auto PDF", if not, it looks like can be some issue with DB. If you see any red marks at the "DB" tab, try to re-init the database at "E2Pdf" -> "Settings" -> "Maintenance" -> "Re-Init Database Hooks".

We remain at your service.
We would really appreciate your feedback at WordPress.org!
6 February, 2023 06:24:30
denisbg
Topics: 1
Messages: 2
It works !

"Debug mode" told me that XML extension was missing. After installing php-xml, everything works fine.

Thanks a lot.