Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save error with latest CF7 and feature request #52

Open
ats-org opened this issue Jan 28, 2022 · 2 comments
Open

Save error with latest CF7 and feature request #52

ats-org opened this issue Jan 28, 2022 · 2 comments

Comments

@ats-org
Copy link

ats-org commented Jan 28, 2022

Greetings,

There seems to be an issue with the latest CF& and being able to update, others have rolled back to resolve the issue but unfortunately, that is something we cannot do.

https://wordpress.org/support/topic/settings-not-saving-and-showing-up-as-blank/

Also, a possible feature request would be to instead of adding the form fields in the body of the post would it be possible to append the JSON object as a query parameter?

@sealview
Copy link

sealview commented Feb 8, 2022

Salutare,
Here you may find a quick solution.
https://wordpress.org/support/topic/problems-after-update-49/#post-15341751
Hope it helps.

@tconley
Copy link

tconley commented Feb 9, 2022

With CF7 5.5.4 @sealview solution works for saving, but the API is never called when a form is submitted. The only error i saw when turning on WP debug was

Array to string conversion in wp-content/plugins/cf7-to-api-basic-auth/includes/class-cf7-api-admin.php

on these two lines:

<textarea name="template" rows="12" dir="ltr" placeholder="<?php echo esc_attr( $xml_placeholder );?>"><?php echo isset( $wpcf7_api_data_template ) ? $wpcf7_api_data_template : ""; ?></textarea>

<textarea name="json_template" rows="12" dir="ltr" placeholder="<?php echo esc_attr( $json_placeholder );?>"><?php echo isset( $wpcf7_api_json_data_template ) ? $wpcf7_api_json_data_template : ""; ?></textarea>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants