• Resolved RhysMcW

    (@rhysmcw)


    Since version 1.29.0 the date picker and Captcha no longer work on my forms. On my live site I have had to roll back to to version 1.28.1 where the date picket and Captcha still work correctly.
    I am using a theme from Cryout Creations, which last updated December 29th 2023, before Forminator 1.29.0 ( 2024-01-30 ) and all was working fine until the 1.29.0 update.
    The date picker pop-up does not work and Captcha does not show, if set to v2 but validation is there as if you try submit a page you get the message like you had not clicked the captcha option…
    If does work if I change to one of the WP built-in themes, tested with Twenty Twenty-Four, but as stated above it was working fine with my Tempera theme until Forminator 1.29.0
    This occurs in Firefox, Edge and Chrome.

    The link below is to a page on a test system with the same theme but the latest version of Forminator (1.29.2) installed. You can click in the date picker field but it does not pop-up the date picker. Captcha is not setup on this test site so you’ll not see the Captcha not working

    • This topic was modified 2 years, 2 months ago by RhysMcW.

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

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support Williams – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @rhysmcw,

    Hope this message finds you well and thanks for the detailed information, it accelerates the resolution process.

    After checking the browser console on the page you shared, I noticed there is a datepicker error, additionally, I found you are using the Event Manager plugin. That plugin conflicts with Forminator library, this has been already reported and our Second Line Support provided a workaround:

    <?php
    add_filter( 'em_public_script_deps', 'wpmudev_fix_event_js_conflict', 10, 1 );
    function wpmudev_fix_event_js_conflict( $script_deps ) {
        if ( is_page( 'performer-materials-submission' ) ) { // Please use your page slug.
            unset( $script_deps['jquery-ui-datepicker'] );
        }
        return $script_deps;
    }

    You might need to replace performer-materials-submission with your form slug page on this line:

    if ( is_page( 'performer-materials-submission' ) ) { // Please use your page slug.

    This is breaking jQuery, and reCaptcha field too, this solution should fix both issues, please let us know.

    You might need to install it as a mu-plugin following the instructions on this link https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins.

    Best regards,
    Laura

    Plugin Support Williams – WPMU DEV Support

    (@wpmudevsupport3)

    Hi @rhysmcw,

    We haven’t heard from you in a while, I’ll go and mark this thread as resolved. Note that you can still reply on this topic.

    If you have any additional questions or require further help, please let us know!

    Best regards,
    Laura

    Thread Starter RhysMcW

    (@rhysmcw)

    Hi

    Thank you for the reply.
    Sorry, I’ve been traveling for an event…
    Yes, we are using Event Manager, using the two for our archery tournaments, Event Manager to list the events and Forminator for the event registrations.
    When you mention “install it as a mu-plugin”, would that be for the Forminator plugin?
    Where would I place the code mentioned?
    I would need to do this for each form we use then, basically every event registration.
    Are there any plans to add a permanent fix/work around to the plugin?

    Thread Starter RhysMcW

    (@rhysmcw)

    okay, so I created the mu-plugin directory on my test server and created a .php file with the following contents

    <?php
    /**
     * Plugin Name: Forminator tournament registration fix #1
     * Description: fix date picker and captcha functions in registration form
     * Author: Rhys McWilliams
     */
    
    add_filter( 'em_public_script_deps', 'wpmudev_fix_event_js_conflict', 10, 1 );
    function wpmudev_fix_event_js_conflict( $script_deps ) {
        if ( is_page( 'bellville-sunrise-tournament-2022-registration' ) ) { // Please use your page slug.
            unset( $script_deps['jquery-ui-datepicker'] );
        }
        return $script_deps;
    }

    bellville-sunrise-tournament-2022-registration being the post slug
    I can see the plugin listed in the Must-Use tab in plugins now and I can see that code in the relevant page source, indicating it is loading, but it has not made any difference, the date picker still does not work.
    When I view the page source, I’m using Firefox, and hover over the relevant code there is a message ‘Saw “<?”. Probable cause: Attempt to use an XML processing instruction in HTML. (XML processing instructions are not supported in HTML)’.

    Do I perhaps need to change something or do something differently?

    Thread Starter RhysMcW

    (@rhysmcw)

    any chance of this being looked at again? I’d like to be updating the plugin but cannot due to the issue at hand…

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @rhysmcw,

    It appears we happen to miss notifications regarding this thread, sorry for the delay in getting back.

    Could we know whether the above is still an issue?

    You can click in the date picker field but it does not pop-up the date picker. Captcha is not setup on this test site so you’ll not see the Captcha not working

    I do see the current Forminator version you have is v 1.31 and could notice that the date picker does work when checked.

    Looking forward to you response.

    Kind Regards,

    Nithin

    Thread Starter RhysMcW

    (@rhysmcw)

    Hi
    yes it is still an issue, the only reason the date picker is currently working is because I have The Event Manager plugin disabled.
    I have it disabled as I’ve been trying to find a replacement event manager type plug to use for the site. Another site I manage will not be as easy to replace The Event Manger plugin so I’m unfortunately looking at an alternative forms plugin for that site. If the workaround worked then I could keep using Forminator on the other site as we only have one form that changes only once a year…
    I can re-enable The Event Manager plugin on my test site if wanted, to check again…

    Thread Starter RhysMcW

    (@rhysmcw)

    I have deactivated the event manage I was testing and reactivated the “Event Manager” plugin.
    The date picker is “broken” again on the test page, the mu-plugin is still there with the workaround but it is not working…

    Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @rhysmcw,

    Sorry to know the issue persists. Could you please send us an email to [email protected] using this template:

    Subject: "ATTN: WPMU DEV support - wp.org"
    
    Message: Ticket URL

    Kind Regards,
    Nebu John

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @rhysmcw

    I hope you are doing well

    I see we handled that by email and I am marking this thread as resolved, but feel free to ping us if you have any additional questions.

    Best Regards
    Patrick Freitas

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Date picker & Captcha not working’ is closed to new replies.