This support ticket is created 4 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.
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.
I have a form which has worked for a long time but recently quit sending email notifications. When I tried sending a test message from the form I received the following message "AJAX Request failed! Response Code: 500 Response Message: There has been a critical error on your website."
Everything is up to date. WordPress is able to send messages from other plugins. Best I can tell this is just an issue with the Toolset form. I'm unable to determine what the problem is.
If you still not able to spot what is causing the issue, can you please share problem URL where you added the form and tell me what notification is not working as well as share the admin access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
[28-Aug-2020 15:30:22 UTC] PHP Deprecated: class-phpmailer.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/PHPMailer.php instead. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /home/funoutsi/public_html/hr.wtn.com/wp-includes/functions.php on line 4963
[28-Aug-2020 15:30:22 UTC] PHP Deprecated: class-smtp.php is deprecated since version 5.5.0! Use wp-includes/PHPMailer/SMTP.php instead. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /home/funoutsi/public_html/hr.wtn.com/wp-includes/functions.php on line 4963
[28-Aug-2020 15:30:22 UTC] PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /home/funoutsi/public_html/hr.wtn.com/wp-includes/PHPMailer/SMTP.php on line 30
[28-Aug-2020 15:30:23 UTC] PHP Notice: Undefined index: text in /home/funoutsi/public_html/hr.wtn.com/wp-content/plugins/learndash-learndash-course-grid-e5e2855ac3a7/learndash_course_grid.php on line 87
[28-Aug-2020 15:30:37 UTC] PHP Notice: Undefined index: text in /home/funoutsi/public_html/hr.wtn.com/wp-content/plugins/learndash-learndash-course-grid-e5e2855ac3a7/learndash_course_grid.php on line 87
I sent a test email from the SMTP Email plugin I'm using. That went through fine so the site is able to send emails.
Hello, as Minesh is on vacation, I'll continue with you on this ticket. I hope that's fine.
The logs that you shared contains only one Error that can crash the AJAX call:
[28-Aug-2020 15:30:22 UTC] PHP Fatal error: Cannot declare class PHPMailer\PHPMailer\SMTP, because the name is already in use in /home/funoutsi/public_html/hr.wtn.com/wp-includes/PHPMailer/SMTP.php on line 30
The error is about redeclaring a PHP class another time. I suspect that some plugin is causing this.
I understand that the test email is sent without issues. Maybe during the test, the part that is trying to redeclare the class is not loaded or executed. I would suggest the following test to find out which component is causing this, please check if this issue appears when:
- Only Toolset plugins are activated. It will tell us if there is an interaction issue with another plugin.
- The theme is set to a WordPress default like Twenty Fourteen. It will tell us if there is an interaction issue with your theme.
If the problem disappears, start activating one at the time to track where the incompatibility is produced.
The topic ‘[Closed] CRED Form returning AJAX Request Failed!’ is closed to new replies.