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
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
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?
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?
any chance of this being looked at again? I’d like to be updating the plugin but cannot due to the issue at hand…
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
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…
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…
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
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