• Resolved canine1503

    (@canine1503)


    I have a ‘buy me a coffee form.’

    Today Stripe informed me that payments had been blocked.

    Looking in my Forminator dashboard for this form, I note that the same payment has been sent to Stripe – 30+ times!

    What is going on here?

    The page I need help with: [log in to see the link]

Viewing 12 replies - 1 through 12 (of 12 total)
  • Thread Starter canine1503

    (@canine1503)

    I saw this in another thread about multiple entries: https://gist.github.com/wpmudev-sls/a516633a168dd4d5c9bc9cdab2e4cc9d

    This code when put in the mu-plugins directory immediately breaks my website. Looking at the code, it doesn’t seem to have any closing tags – should it?

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @canine1503

    I hope you’re well today!

    As for the code that you found:

    – it doesn’t need any closing tags
    – provided that it has correctly defined form ID and e-mail field it should not break the site

    I have checked it on my test site just a minute ago to make sure. One of common causes of such code breaking site is a typo or accidentally removing some character (like semicolon or bracket) when editing form/field IDs.

    But regardless of that, I don’t think this code would be a solution here. In the first place, Forminator shouldn’t do multiple submissions like that out of the box so the question is why it does it.

    You mentioned payment sent to Stripe 30+ times. I understand that it means that it was that many payment requests “in one go” – rapidly, one after another, right?

    If you check submissions (Forminator -> Submissions) page – is there just one form submission related to those 30+ payments or are there 30+ “copied” submissions?

    Are you using any additional caching and/or asset optimization plugins on site and/or any other plugin that uses Stripe (and has it fully configured); if yes – what are those plugins?

    Finally, would you please export the form itself and share it with us to check and test?

    You can do it using “export” option in drop-down menu under a little “gear” icon next to the form in question on “Formiantor -> Forms” page. To share, simply put exported code/file on pastebin.com or your Google Drive, Dropbox or similar and then post a share URL (public) in response below.

    Note: this export will not export any submission data and won’t include your Stripe credentials – it will only export form “template” and configuration. We don’t need and would never ask for submission and Stripe configuration data.

    Best regards,
    Adam

    Edit:
    Just noticed that official support said:
    But regardless of that, I don’t think this code would be a solution here. In the first place, Forminator shouldn’t do multiple submissions like that out of the box so the question is why it does it.

    So take my suggestion with this in mind.

    Hi @canine1503

    Nice find on that MU Plugin.

    I think(?) it may need some tweaks due to the recent Forminator update that appends a unique ID to the end of fields.
    (Also make sure you edit line 16 to contain your specific form IDs.)

    1.18.1 ( 2022-09-15 )
    Improvement: Form fields now have a unique ID. This unique ID is also added as data-uid attribute to the form tag, so If you currently have scripts that use field ID’s, these will need to be updated now

    I’m on mobile right now, so I can’t provide exact code. But here is a JavaScript snippet which accounts for and appends the unique ID to fields. It will need to be adjusted for your specific form, but if you know some coding, hopefully this points you in the right direction.

    Thread Starter canine1503

    (@canine1503)

    Would the id look like this? forminator-field-email-1_63317c3520015 and would I replace $form_id with it?

    Cheers

    Thread Starter canine1503

    (@canine1503)

    The first part of the form looks like
    <form id=”forminator-module-9250″ class=”forminator-ui forminator-custom-form forminator-custom-form-9250 forminator-design–default forminator_ajax” method=”post” data-forminator-render=”0″ data-form-id=”9250″ data-design=”default” data-grid=”open” style=”” data-uid=”63317c3520015″ novalidate=”novalidate”>

    I’ve highlighted what I think the form id is.

    Do I replace $form_id with $9250 ?

    Cheers,

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @canine1503

    As mentioned by Adam above, the solution you have added to your site, should not have anything to do with your case. This code limit submissions from 1 specific email.

    If we focus in first place on the main issue:

    Today Stripe informed me that payments had been blocked.

    Looking in my Forminator dashboard for this form, I note that the same payment has been sent to Stripe – 30+ times!

    we could find a solution for this.

    Please re-read Adam’s questions and queries here:
    https://www.ads-software.com/support/topic/multiple-entries-5/#post-16043633
    so we could help you more in this matter.

    ===============

    If you still want to use that code, and when it comes to your last query, the “forminator-field-email-1_63317c3520015” need to be replaced with “email-1”, and you need also change your form ID here:
    $your_list_forms = [123,456];

    Example
    $your_list_forms = [123];

    Kind Regards,
    Kris

    Thread Starter canine1503

    (@canine1503)

    The code breaks my site. So, I stop trying with that.

    https://drive.google.com/file/d/1io29u0Rwmy_GKpsZRXzoOBfPTUud7MVb/view?usp=sharing

    Form link.

    Thread Starter canine1503

    (@canine1503)

    I use Shield Security and The SEO Framework. I don’t use any caching plugins. I have used this setup for a long time – never had any problems with Forminator.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @canine1503

    Thank you for response and sharing the form.

    Would you please also respond to my other questions that I asked previously? Specifically these:

    1. You mentioned payment sent to Stripe 30+ times. I understand that it means that it was that many payment requests “in one go” – rapidly, one after another, right?

    2. If you check submissions (Forminator -> Submissions) page – is there just one form submission related to those 30+ payments or are there 30+ “copied” submissions?

    3. Are you using any other plugin that uses Stripe (and has it fully configured); if yes – what are those plugins?

    Note please: I do understand that you have used that same setup for a long time without issue but be aware, please, that things are changing – Forminator itself but also WordPress core, your theme, other plugins that you use on site… every once in the while they would be updated and that may change how they interact with each other. That’s why we ask all these questions.

    Kind regards,
    Adam

    Thread Starter canine1503

    (@canine1503)

    answered already – did I not. I surrender. Hopeless.

    Plugin Support Kris – WPMU DEV Support

    (@wpmudevsupport13)

    Hi @canine1503

    As mentioned by Adam above

    things are changing – Forminator itself but also WordPress core, your theme, other plugins that you use on site… every once in the while they would be updated and that may change how they interact with each other.

    Are you able to create a staging site (to not affect live site) and run a full plugin conflict test, so that only Forminator and MU-PLUGIN will be active and see if will that work?

    This will confirm any conflicts on the site.

    On the staging site, please deactivate all plugins except Forminator and check if the problem is gone. If so, then enable all plugins one by one and find which one is having a conflict. If there is no positive result, switch to a default WordPress theme like 2019 and see if it works.

    Kind Regards,
    Kris

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @canine1503 ,

    We haven’t heard from you for a week now, so it looks like you don’t have any more questions for us.

    Feel free to re-open this ticket if
    needed.

    Kind regards
    Kasia

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Multiple entries’ is closed to new replies.