Skip Navigation

[Closed] CRED Form returning AJAX Request Failed!

This support ticket is created 4 years, 1 month 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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: Africa/Casablanca (GMT+01:00)

This topic contains 18 replies, has 2 voices.

Last updated by Jamal 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1825631

Hi Jamal,

How is this going?

Still nothing?

Our hosting provider will be switching OFF PHP 7.2 on the server and on Nov 4th everything will run on PHP 7.4

Remember that we switched to lower version for the beta setup in order for your team to troubleshoot.

Still nothing though... huh!?

#1825825

Thank you for providing the staging site and for this feedback.

Our developers think that this issue happens because of some server settings and because we are sending the notification on the "shutdown" action. We have only seen two cases in the last couple of years.
The developer is preparing a patch that will send notifications a little earlier, which will fix this issue on your server. Unfortunately, it is not ready yet.

I'll keep you updated as soon as we have anything to share.

#1825827

OKay thanks for the update. Have in mind that most likely we will be running php 7.4 when the update comes.
D.

#1945583

Hello D.

Our developers have produced a patch that may resolve this issue and we would like to see if it will work on your site since the problem cannot be replicated on our servers. Please find the patch file available here:
hidden link

This patch will work with the latest version of Forms (currently 2.6.6). To apply the patch, you must update one plugin file on the server and also add one PHP snippet to activate the solution. Unzip the package and upload the file it contains to the Forms plugin directory on your server at /wp-content/plugins/cred-frontend-editor/application/controllers/notification_manager/

Then, you must either create a custom code snippet to turn on this feature, or you can add a configuration definition to your wp-config.php file. Please choose only one of the following two options:

1. Custom code: Add the following line to your child theme's functions.php file, or create a new code snippet in wp-admin > Toolset > Settings: Custom Code tab. Set the snippet to run everywhere and add the code.

add_filter( 'cred_notifications_disable_queue', '__return_true' );

If you create the snippet in Toolset's Custom Code snippet feature, be sure to activate the snippet after you save it.

- OR -

2. Configuration definition: Add the following code to your wp-config.php file:

define( 'TOOLSET_FORMS_NOTIFICATIONS_DISABLE_QUEUE', true );

Then you should test again with the SMTP plugin deactivated. Please let me know if the problem is not resolved. If resolved, we will implement this solution in a way that is manageable from the Toolset Settings panel in a future release.

The topic ‘[Closed] CRED Form returning AJAX Request Failed!’ is closed to new replies.