Closed flack closed 1 year ago
@flack thanks for reporting this, looks like we have a backwards compatibility conflict.
We'll work on getting a fix for this, but in the meantime you can resolve the issue by replacing your code with this:
add_action( 'give_fields_after_donation_amount', function ( $group ) {
$group->append(
\Give\Framework\FieldsAPI\LegacyNodes\CheckboxGroup::make( 'make_CO2_certificate' )
->showInReceipt()
->label( __( 'Generate CO2 certificate'))
);
});
Running into the same issue. Looking to add an opt-in checkbox to subscribe to a newsletter along with the donation. The above (https://github.com/impress-org/givewp/issues/6828#issuecomment-1595139504) fix is not working for me.
Hi @akolahi!
Can you please provide us with more information? What error and/or behavior are you seeing when you try the solution provided by @jonwaldstein?
This issue is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 14 additional days. Note, if this Issue is reporting a bug, please reach out to our support at https://givewp.com/support. If this is a feature request, please see our feedback board at feedback.givewp.com — that’s the best place to make feature requests, unless you’re providing a PR.
This issue was closed because it has been stalled for an additional 14 days with no activity.
User Story
I recently updated from 2.27.2 to 2.29, and the following code
now throws the following error in all frontend and backend pages:
Details
see above
Expected Behavior
It should not throw an error
Steps to Reproduce
see code above