Skip Navigation

[Resolved] Ajax Submit redirects to search page

This support ticket is created 5 years, 2 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 7 replies, has 2 voices.

Last updated by Waqar 5 years, 2 months ago.

Assisted by: Waqar.

Author
Posts
#1561871

I am trying to:

I'm building two sites with toolset. The second is a clone of the first, and structurally identical (uses the same slugs, page ids, and custom codes).
[1]: hidden link
[2]: hidden link

On each site, logged in users can complete a CRED form to 'activate a kit'. It's a lengthy form, so I used js to make it a multi-step form. On the last page, the form is submitted with ajax and a success message is displayed.

This works as expected on the first site, with no issues. On the second site [2], the form submits and a post is made, but the page redirects to the search archive ( hidden link ).

The code for each is the exact same. I'm not sure what is going on here, can you help me?

Link to a page where the issue can be seen:

hidden link

#1561893

Further testing showed these errors

 WordPress database error Commands out of sync; you can't run this command now for query SELECT option_value FROM wpjj_options WHERE option_name = 'wpv_cached_index' LIMIT 1 made by shutdown_action_hook, do_action('shutdown'), WP_Hook->do_action, WP_Hook->apply_filters, OTGS\Toolset\Views\Controller\Cache\Views\Invalidator->should_invalidate_cache, get_option
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 131
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 132
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 131
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 132
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 131
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 132
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: meta_key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 105
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 131
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 132
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: meta_key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 105
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 131
[24-Mar-2020 19:22:33 UTC] PHP Notice:  Undefined index: key in /home/dnaging/public_html/wp-content/plugins/wpai-toolset-types-addon/libraries/toolset-fields/field.php on line 132
#1562257

Hi,

Thank you for contacting us and I'd be happy to assist.

To troubleshoot why this redirection issue is only appearing on this second website, I'll need its clone/snapshot.

I tried to download the one from your Google Drive link, but it is asking for permission.

Do I have your permission to download it directly from your website's "Duplicator" packages?

The PHP notices that you've shared are coming from the "WP All Import - Toolset Types Add-On BETA" plugin and doesn't seem to be related to this redirection issue.

regards,
Waqar

#1562851

I've updated the link permissions so that you can download from there. The folder contains the duplicator package and a zip folder of the WordPress files. If necessary, you have permission to login to wordpress and download files.

Thanks!

#1563501

Thank you for sharing the duplicator package.

I've successfully deployed it on my own server and will be performing some tests, accordingly.

Will update you with my findings, as soon as this testing completes.

Thank you for your patience.

#1564547

Ok, thank you!

#1568285

Hi, I just wanted to check the status of this issue.

#1568899

Hi Erin,

Thank you for waiting.

Sorry about the delay as this troubleshooting turned out to be more complex than I originally anticipated.

I couldn't reproduce this issue on my test website with a similar form and settings and it doesn't even affect a new form created on your website's clone.

The only way, I was able to fix this redirection issue for this particular form ( "Registration Survey 1" ), was when the custom script in the "JS editor" tab was removed.
( screenshot: hidden link )

I'm afraid, it won't be possible for us to audit/investigate into the custom script, but you can include it, one function/block at a time to narrow down to a conflicting part.

I hope this helps and please let me know how it goes.

regards,
Waqar