Network error loading pdf

Formidable Forms
4 June, 2021 17:22:30
itautomation
Topics: 5
Messages: 15
Dear e2pdf support,

I am currently seeing issues when loading the pdf after submitting the form with Formidable Forms (see attachment).

However, mail sending works inlcuding the pdf, but rendering and the download of the same does result in "network error".

We use the following tags:
[e2pdf-download id="2"]
[e2pdf-view id="2"]

Also, api3.e2pdf.com (EU) as API server.

Website sits behind a basic auth - but that isn't an issue, or?
Any idea what could cause that, or how to dive deeper into the issue?

Thanks!

Best Regards
Sören Jentzsch
4 June, 2021 22:30:26
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

"Basic Auth" must not affect the functionality of plugin if you were authenticated, however if you are using some 3rd party plugins or website using "http" with redirection to "https" it can affect. Issue also can be connected with incorrectly sent "headers" due some specific server setup.

Try please:
- Disable "Basic Auth" and check if it will work or not
- Deactivate any plugins which adding cache / minify (html, css) features
- Try to switch API server to api.e2pdf.com or api2.e2pdf.com and check if behavior will be changed.

If it will not work, share please the URL to the form where we can submit form to see the result. (If it will "Basic Auth Password" include it also to message). You can set message "Private" so only support can see it.

We remain at your service.
We would really appreciate your feedback at WordPress.org!
20 June, 2021 00:03:09
E2Pdf
Support
Topics: 7
Messages: 3163
Hi,

We see that your server trying to send PDF but it looks like corrupted. Usually cache/minify plugins disable its functionality when user logged in so it can be the explanation why PDFs work when you logged-in and why not, when you are logged-out.

At this moment we see that your website sending modified "HTML" and it's showed as inline instead of default output in the "source". It truncates multi spaces / new lines / etc - if this applied to PDF output - it will be corrupted.

Currently we identified that you are using "enfold" theme and it seems has some built-in feature to merge and compress CSS / HTML which can affect the PDF. If you didn't try to turn it off - can you try to disable merge and compress CSS / HTML under theme settings please?

As we understand - here is tutorial how to disable it: https://kriesi.at/documentation/enfold/optimization/

P.S. If it will not work or you will be success - you can attach enfold theme to next message ("PRIVATE") so we can try to replicate issue on our side with current theme or check if we can add compatibility fix (if disabling merge and compress CSS / HTML will work).

We remain at your service.
We would really appreciate your feedback at WordPress.org!
5 September, 2021 06:52:35
itautomation
Topics: 5
Messages: 15
Dear support,

first of all thanks for the great feedback!
Just wanted to say, we indeed found and fixed the issue, we used inline-html inside Formidable and removed it, then e2pdf worked as expected. So, no general issue wirh Enfold.

Just wanted to let you and others know, and saying thanks again!

Best Regards