There has been a critical error on this website.

Formidable Forms Bug Released
5 July, 2021 17:55:45
mcwfc
Topics: 3
Messages: 8
Everytime I submit my form I get the error "There has been a critical error on this website."

I've looked at the error logs on the server and the e2pdf plugin is throwing a fatal error.

Here is what I'm seeing in the error log:

5 PHP Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Denver) in /nas/content/live/reliantsecur/wp-content/plugins/e2pdf/classes/model/e2pdf-shortcode.php:2007\nStack trace:\n#0 /nas/content/live/reliantsecur/wp-content/plugins/e2pdf/classes/model/e2pdf-shortcode.php(2007): DateTimeZone->__construct('Denver')\n#1 /nas/content/live/reliantsecur/wp-includes/shortcodes.php(343): Model_E2pdf_Shortcode->e2pdf_format_date(Array, 'now', 'e2pdf-format-da...')\n#2 [internal function]: do_shortcode_tag(Array)\n#3 /nas/content/live/reliantsecur/wp-includes/shortcodes.php(218): preg_replace_callback('/\\\\[(\\\\[?)(e2pdf\\\\...', 'do_shortcode_ta...', '[e2pdf-format-d...
')\n#4 /nas/content/live/reliantsecur/wp-content/plugins/e2pdf/classes/extension/e2pdf-formidable.php(646): do_shortcode('[e2pdf-format-d...')\n#5 /nas/content/live/reliantsecur/wp-content/plugins/e2pdf/classes/extension/e2pdf-formidable.php(239): Extension_E2pdf_Formidable->render_shortcodes('[e2pdf-format-d...', Array)\n#6 /nas/content/live/relian in /nas/content/live/reliantsecur/wp-content/plugins/e2pdf/classes/model/e2pdf-shortcode.php on line 2007

Can you help?
5 July, 2021 18:51:07
E2Pdf
Support
Topics: 7
Messages: 3345
Hi,

It looks like the issue is due the incorrect "timezone" attribute used with [e2pdf-format-date] shortcode.

Try to use please "America/Denver" instead of "Denver" if you need to use "Denver" timezone as:

[e2pdf-format-date timezone="America/Denver"]now[/e2pdf-format-date]

We remain at your service.
We would really appreciate your feedback at WordPress.org!
5 July, 2021 19:58:42
mcwfc
Topics: 3
Messages: 8
That fixed it! Thank you!

One more question.

How do I map the different fields in a Formidable Address field? How do I tell the template which field is which?

Thanks!
6 July, 2021 06:41:09
E2Pdf
Support
Topics: 7
Messages: 3345
You must be able to use Formidable Forms syntax as:

[123 show="line1"], [123 show="city"], [123 show="country"] where "123" is the Formidable Forms Address Field ID.

https://formidableforms.com/knowledgebase/address/#kb-display-address-fields

We remain at your service.
We would really appreciate your feedback at WordPress.org!