Attachment added globally to all subsequent emails.

Forminator Forms Bug Released
17 September, 2020 09:33:38
matlo
Topics: 2
Messages: 8
Hi,
I am experiencing bug while using e2pdf with forminator regarding to email attachment. I have a form with two email notifications. I send same pdf attachment in both email but with different parameters. In first email, correct PDF attachment is added. But in second email two PDF email are added, the correct one but also the one intended for first email notification.

I am adding the shortcode directly in source code using forminator hooks. I checked my code multiple times and i also looked at the logs. I am sure I am returning just one attachment in every mail. So mistake must be somewhere further away.
For now i cannot verify if the problem persist while adding shorcode using forminator UI due to this bug:
https://e2pdf.com/support/desk/attachment-shortcode-not-working
But the process is the same, I just edit mail body in source code. So my guess is that it doesn't matter.

I am not sure what exactly is your shortcode doing. Could it be somehow globally adding the pdf attachment to all email notifications for the form? Because the order of notification mathers. The second one always gets two pdf attachments.
17 September, 2020 10:18:14
E2Pdf
Support
Topics: 7
Messages: 3345
Hi,

We could replicate an issue with duplicated emails and now investigation the problem.

As about [e2pdf-attachment] shortcode without "dataset", unfortunately it works like expected if added to mail body directly.

- Do you have latest Forminator Forms installed?
- Also can you let us know the shortcode which you are using inside mail body?

We remain at your service.


We would really appreciate your feedback at WordPress.org!
17 September, 2020 11:44:24
matlo
Topics: 2
Messages: 8
Thanks for the very prompt answer!

I have the latest Forminator installed - v1.13.5
I am using same shortcode as you: [e2pdf-attachment id="4"]

But this is not really the issue for me, as I can always insert the shortcode in source code.


17 September, 2020 13:09:54
E2Pdf
Support
Topics: 7
Messages: 3345
Hi,

We just released an update to Release Candidate build (1.12.08) which must solve issue with duplicated attachments.

To apply hot-fix now set please "E2Pdf" -> "Settings" -> "Release Candidate Builds" (Update from E2Pdf.com) (screenshot attached). Check for plugin updates, and update plugin to 1.12.08. It's recommended to turn off this option after update

Please, let us know if issue will be solved. Also can you please recheck if "e2pdf-download" and "e2pdf-attachment" shortcodes will start work if added to mail body directly? Thank you.

We remain at your service.

We would really appreciate your feedback at WordPress.org!
18 September, 2020 10:08:24
matlo
Topics: 2
Messages: 8
Unfortunately, after upgrade (you probably meant v1.12.09) I don't see any change. All bugs persist.
18 September, 2020 13:30:37
E2Pdf
Support
Topics: 7
Messages: 3345
Hi,

It looks like you didn't turn on updates from E2Pdf.com and you have currently stable 1.11.09 version from WordPress.org instead of 1.12.x brunch. To have Release Candidate build it's need to turn on updates from E2Pdf.com as mentioned in previous message.

Can you please recheck and confirm which version do you have?

P.S. You can also download RC build manually and replace it via FTP: https://e2pdf.com/download/latest.
We would really appreciate your feedback at WordPress.org!
21 September, 2020 09:39:55
matlo
Topics: 2
Messages: 8
I am sorry, I must have forgotten to click the Update button or something. Now I really have version 1.12.09 and I can confirm that the duplication bug was resolved. But attachment shortcode still doesn't work for me. And download shortcode work only with dataset parameter.
21 September, 2020 05:25:39
E2Pdf
Support
Topics: 7
Messages: 3345
Thank you for letting us know. We are still trying to figure out why shortcodes not firing directly from message.

If you have some time, can you let us know please some information:

1. When you are using [e2pdf-download id="1"], is shortcode completely truncated in received email? Or shortcode appears without any changes? If shortcode still appears inside mail message, can you please forward this mail to [email]?

2. Do you have other integrations on current form?

3. Will bug appear on new form with newly created E2Pdf Template?

4. As I understand, you currently update your mail via "forminator_custom_form_mail_admin_message". Can you try please to output via "var_dump" original message with [e2pdf-download id="1"] shortcode added as we have suspicion that message somehow encoded and due this E2Pdf can't update it correctly with dynamic dataset.

P.S. If it's acceptable for you, you can submit support ticket with access details here: https://e2pdf.com/support/request so we can complete all tests and can understand what can be the cause of issue.

Thank you.
We would really appreciate your feedback at WordPress.org!
21 September, 2020 13:24:17
E2Pdf
Support
Topics: 7
Messages: 3345
We just found another issue that "e2pdf-download" and "e2pdf-attachment" shortcodes not fired on preview action. Can you also let us know if you test form with "preview" action or inside page directly?
We would really appreciate your feedback at WordPress.org!