Sending error
-
I know this plugin is tested till WP 5.5.3. Im running a WP Installation with 5.6.2 and CF7 5.4 and i didn´t recognized it before.
Now on sending the Form it saves the post but the formular does not retrieve the success message. Instead i got an error on console code:”invalid_json” and the ajax spinner is turning around endless.Do you plan an update in the near future?
-
CF7 5.4 is breaking many extensions due to changes in its data schema and validation of files.
Are you submitting files in your form?
You can downgrade to the last stable version of CF7 prior to 5.4, which is v5.3.2 and see if it works for you.
Yes, i´m using a submitting file. I tried to downgrade my core to 5.5.2, CF7 to 5.3.2 and installed also Post my CF7 V4.1.9.
If i have this plugin installed, i now get an 500 error on submitting the form, but only if all required fields are filled.
If i disable this plugin, the formular works as expected.-
This reply was modified 5 years, 2 months ago by
lammic.
I tried to downgrade my core to 5.5.2
that’s not required. It will work with the latest WP.
i now get an 500 error on submitting the form
can you enable WP_DEBUG mode on your installation and report back the error message.
[02-Mar-2021 14:51:33 UTC] PHP Fatal error: Uncaught Error: Cannot use object of type WP_Post as array in /var/www/web28665297/html/wordpress/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php:928
Stack trace:
#0 /var/www/web28665297/html/wordpress/wp-includes/class-wp-hook.php(287): cf7_sendpdf->wpcf7pdf_mail_components(Array, Object(WPCF7_ContactForm), Object(WPCF7_Mail))
#1 /var/www/web28665297/html/wordpress/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)
#2 /var/www/web28665297/html/wordpress/wp-content/plugins/contact-form-7/includes/mail.php(108): apply_filters(‘wpcf7_mail_comp…’, Array, Object(WPCF7_ContactForm), Object(WPCF7_Mail))
#3 /var/www/web28665297/html/wordpress/wp-content/plugins/contact-form-7/includes/mail.php(19): WPCF7_Mail->compose()
#4 /var/www/web28665297/html/wordpress/wp-content/plugins/contact-form-7/includes/submission.php(468): WPCF7_Mail::send(Array, ‘mail’)
#5 /var/www/web28665297/html/wordpress/wp-content/plugins/contact-form-7/includes/submission.php(87): WPCF7_Submission->mail()
#6 in /var/www/web28665297/html/wordpress/wp-content/plugins/send-pdf-for-contact-form-7/classes/send-pdf.php on line 928It looks like a conflict with the Plugin Send Pdf for CF7. The plugin works fine if i disable post my cf7.
indeed, wrong plugin 🙂
However, I believe “Send Pdf for CF7” is one of the plugin that has been badly broken by the recent update to CF7. Please raise the issue with the plugin author.
there is still an issue with this plugin and the handling of files. I I will keep this thread open till I release a fix.
Well i need it, also yours 🙂
How i mentioned before, the plugin works fine if i disable your plugin. Only if it is activated sending the form runs in an issue. But saving the post through the Formular works in every case.I tested a copy of the website on a foreign server and all works perfect together.
I’m weird 🤔How i mentioned before, the plugin works fine if i disable your plugin.
indeed, odd. Someone else reported they had better success using CF7 v5.2.2.
Given the changes in CF7 v5.4 it is going to be difficult to fix with conventional file upload field.
It is possible the solution will require shifting to a custom field uploader (such as drag and drop plugins).
v4.1.11 along with Smart Grid plugin v4.9.0 now fixes the file attachments in mail notifications.
Let me know if you are still having the Send PDF error
Thank you. I will give it a try next week.
the author of Send PDF is testing a fix which hopefully should be release soon.
I tested the v4.1.11 and the same error still occurs. I have an eye on the Fix of Send PDF. Thanks for your support.
I tested the v4.1.11 and the same error still occurs. I have an eye on the Fix of Send PDF. Thanks for your support.
is the error still occurring when you are not using Send PDF plugin?
FIY. The problem was caused through YOAST SEO Plugin v15.8. A downgrade resolve this problem.
that’s very odd! Was it interfering with the AJAX/REST api call made by CF7?
-
This reply was modified 5 years, 2 months ago by
The topic ‘Sending error’ is closed to new replies.