Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter sitebuildernow

    (@sitebuildernow)

    Hi, I just replaced the shortcode which was the [strong form] with the old shortcode [wpmtst-form] and was able to successfully submit a new testimonial. Hope this helps.
    Harmony

    Thread Starter sitebuildernow

    (@sitebuildernow)

    Oops, upon further testing, replacing the shortcode is also getting me duplicate submissions on each test.

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Hi,

    Thanks for the link but it needs a login.

    There are three conditions that will create that message:
    1. the form nonce failed verification
    2. if the post could not be inserted into the database
    3. if either honeypot method fails

    #3 would indicate JavaScript is disabled in your browser.

    #2 would indicate a damaged or temporarily unavailable database so I doubt it’s that.

    #1 is the likely culprit, maybe due to the site being installed in a subfolder. I will test that. In general settings, what are your WordPress Address and Site Address URLs?

    Thread Starter sitebuildernow

    (@sitebuildernow)

    HI – I turned off the “coming soon plugin so you can take a look for yourself at things.

    the urls in settings are both https://tsbdev.com/longtermcare.

    Like I said – if I use the old shortcode works but creates duplicate entries, if I use the new shortcode it doesn’t succeed. Let me know if you want me to update the shortcode to the new for you.

    Thanks
    Harmony

    Thread Starter sitebuildernow

    (@sitebuildernow)

    FYI – I am running it on this dev site as well https://tsbdev.com/foundation/submit-a-testimonial/ and it works fine. Maybe something to do with the theme? Thanks for any insights.
    Harmony

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks. I just submitted one. Please switch to [strong form] and I’ll peek under the hood.

    The double posting is odd. What other plugins are installed?

    Thread Starter sitebuildernow

    (@sitebuildernow)

    Done – again the problem site is just the one at https://tsbdev.com/longtermcare.
    A lot of other plugins – but exactly the same ones as the /foundation website. the only difference between the 2 sites is the theme – so I’m guessing it lies in the theme.

    Thanks!!!

    Plugin Contributor Chris Dillon

    (@cdillon27)

    And you’d be right. If you open the Developer Console (F12 in Chrome) and select the Console tab, you’ll see a few errors:

    Uncaught ReferenceError: jQuery is not defined

    The plugin expects jQuery to be loaded in the header which is normal for websites in general and the default in WordPress. The theme or another plugin is loading it in the footer, probably to increase page speed (that particular benefit is debatable).

    You can test this by switching to a default theme like TwentyFifteen and trying the form.

    Is there an option in the theme to choose where to load jQuery?

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Looking deeper, the jQuery being loaded is not the one that’s included in WordPress and it’s an older version which makes me think it’s a plugin. I would be very surprised to see that coming from a StudioPress theme.

    Thread Starter sitebuildernow

    (@sitebuildernow)

    You should rename yourself to Detective Dillon! Chris, thank you so much. Your insights immediately made me know which plugin was the culprit – it was jQuery colorbox – when I set it up in this one (or someone else did) we chose to use the google library and put it in the footer – I removed both of those options and your plugin now works exactly like expected. You are awesome.
    Harmony

    Plugin Contributor Chris Dillon

    (@cdillon27)

    Thanks. I’m glad we figured it out.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Getting an error on submissions’ is closed to new replies.