Skip Navigation

[Resolved] Urgent: User registration form does not work

This support ticket is created 2 years, 12 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 11 replies, has 3 voices.

Last updated by himanshuS 2 years, 11 months ago.

Assisted by: Waqar.

Author
Posts
#2271597

I am using the Toolset form to register users, auto login and register them to a new page.

Everything was working fine a few days ago and now it just does not do anything.

Behavior -
1. The Ajax spinner loads and then stops.
2. The user is not redirected.
3. The user is not registered.

Changes I made - enabled Cloudflare on the site. Nothing else on the code front.

Page - hidden link

Video - hidden link

#2271615

I had to change the form with WPForms as a workaround for now but the issue exists with Toolset form.

#2272025

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'd suggest you check the browser dev tools to see if there is any error reported in the console or a problem visible in the network request for the ajax form submission.

Also, you could change the form settings to disable the option to submit the form via ajax. Given that the form is set to redirect to another page a page reload is required in any case.

#2272503

Nigel,

That does not seem to be the issue because it was working just fine with the AJAX load two days ago.

I also like the spinner that is visible with AJAX because users see that.

Finally, WPForms was able to load with AJAX. Does not seem like AJAX is an issue.

I have checked the browser dev tools and it does not seem like there is an issue.

What else could I do?

#2273551

Nigel,

The form is working and I did not make any changes. Can the JAX request not trigger because of caching issues?

#2273709

Thanks for the update and glad that the form is working now.

If the form started working correctly without any change, then yes it could be related to the cached content.

> Can the JAX request not trigger because of caching issues?

- AJAX requests are usually affected by some script errors on the page, that can be seen in the browser's console.
( ref: https://wordpress.org/support/article/using-your-browser-to-diagnose-javascript-errors/ )

The script errors can be caused by the cached or older content or JS files, being loaded, which makes the two indirectly related.

In case this happens again, please be sure to check the browser's console and the server's error log for any errors or warnings.

#2274411

Waqar,

I could not find any issues in the console. Granted I did not enable script debugging. I am going to do that and check again.

In general, I am using WP Rocket as the caching plugin and would like to know if there are any settings or compatibility issues between Toolset and WP Rocket. I ask this because I switched to WPFroms registration form with the page caching ON and it worked just fine.

Now I have switched back to Toolset registration form with registration page caching OFF and it works just fine. I had tried to make it work with the page caching ON but the form stopped working after 20 minutes... basically when caching kicked in.

So it seems like the Toolset registration form does not like caching. Is there a recommended configuration for pages with toolset form on WP Rocket? Are there specific JS files I should exclude from delay and defer? I am AJAX on some forms but not on others. Does that impact behavior?

Here is an example of page caching settings with WP Rocket - hidden link

#2275161

Thanks for writing back.

It sounds more like an issue that relates to how scripts are being minified and deferred. The role of cache can only be limited to the delay after which you start seeing a particular issue.

There is no recommended or specific rule when it comes to these optimizations, as each website can have its own combination of theme and third-party scripts and styles. But, we do have a list of files that we recommend for exclusion:
https://toolset.com/faq/how-to-use-optimization-plugins-with-toolset/

I'll suggest excluding the files listed under the Toolset Forms and testing the form again, after clearing all involved caches.

If the issue still persists, it would be a good idea to also uncheck the option "Defer JS" for pages where AJAX-enabled forms are used.

#2276727

Update -

I have added exceptions to JS files in WP Rocket. I have tested the form on a new page and the form still does not work.

Now, I am testing the form by disabling the "defer JS" functionality in WP Rocket. WIll update you on the situation.

#2278233

Thanks for the update and let me know how it goes.

#2279605

It seems to work with deferring JS for the page on WP Rocket.

#2279607

My issue is resolved now. Thank you!