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

When the Tributes plugin is active and the "give_tributes_text" option is missing, will prevent a Manual Donation from being recorded because the Create Donation button is disabled #7541

Open
agileware-justin opened this issue Sep 17, 2024 · 2 comments
Labels
type: bug Existing functionality is broken

Comments

@agileware-justin
Copy link

agileware-justin commented Sep 17, 2024

User Story

When the Tributes plugin is active and the "give_tributes_text" option is missing, will prevent a Manual Donation from being recorded because the Create Donation button is disabled.

This occurs when the Tributes feature is "Disabled".

image

image

Agileware Ref: SUP-72955

Details

A GiveWP JSON request fails when fetching the give_tributes_text option. Error output below. This causes the Create Donation button to remain disabled.

2024-09-17 15:44:46 [Tue Sep 17 05:44:46.273135 2024] [php:error] [pid 125:tid 125] [client 192.168.65.1:59224] PHP Fatal error: Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given in /var/www/html/wp-content/plugins/give-tributes/includes/give-tributes-helpers.php:51\nStack trace:\n#0 /var/www/html/wp-content/plugins/give-tributes/includes/give-tributes-helpers.php(51): json_decode(Array)\n#1 /var/www/html/wp-content/plugins/give-tributes/includes/public/class-give-tributes-public.php(347): give_tributes_type_output(25115, true)\n#2 /var/www/html/wp-content/plugins/give-tributes/includes/admin/class-give-tributes-admin.php(2299): Give_Tributes_Public->dedicate_donation(25115)\n#3 /var/www/html/wp-includes/class-wp-hook.php(324): Give_Tributes_Admin->give_tributes_include_response(Array, 25115)\n#4 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)\n#5 /var/www/html/wp-content/plugins/give-manual-donations/give-manual-donations.php(573): apply_filters('give_md_check_f...', Array, 25115)\n#6 /var/www/html/wp-includes/class-wp-hook.php(324): Give_Manual_Donations->check_form_setup('')\n#7 /var/www/html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)\n#8 /var/www/html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)\n#9 /var/www/html/wp-admin/admin-ajax.php(192): do_action('wp_ajax_give_md...')\n#10 {main}\n thrown in /var/www/html/wp-content/plugins/give-tributes/includes/give-tributes-helpers.php on line 51, referer: https://penguin.linux.test/wp-admin/edit.php?post_type=give_forms&page=give-manual-donation

Workaround

The workaround (or fix) is to save the default settings for the Tributes on page, /wp-admin/edit.php?post_type=give_forms&page=give-settings&tab=tributes

Then return to the Manual Donation form and the Create Donation button will become active when the form options are selected.

Expected Behaviour

Create Donation button should not be disabled.

Steps to Reproduce

  1. Install the Tributes plugin for the first time (?) and/or clear the give_tributes_text option.
  2. Try to create a Manual Donation
  3. Scroll down to the Create Donation button
  4. Note that the Create Donation button is disabled

Visuals

Additional Context

System Information

Active GiveWP Add-ons

Give - Annual Receipts: ✔ Licensed – by GiveWP – 1.1.1
Give - Currency Switcher: ✔ Licensed – by GiveWP – 2.1.0
Give - Donation Modules for Divi: Free addon – by GiveWP – 2.0.0
Give - Email Reports: ✔ Licensed – by GiveWP – 1.1.4
Give - Fee Recovery: ✔ Licensed – by GiveWP – 2.3.3
Give - Form Field Manager: ✔ Licensed – by GiveWP – 3.0.5
Give - Funds and Designations: ✔ Licensed – by GiveWP – 2.0.1
Give - Manual Donations: ✔ Licensed – by GiveWP – 1.7.0
Give - PDF Receipts: ✔ Licensed – by GiveWP – 3.2.1
Give - Recurring Donations: ✔ Licensed – by GiveWP – 2.9.0
Give - Stripe Gateway: ✔ Licensed – by GiveWP – 2.6.0
Give - Text-to-Give: ✔ Licensed – by GiveWP – 1.0.3
Give - Tributes: ✔ Licensed – by GiveWP – 2.2.0

Acceptance Criteria

@agileware-justin agileware-justin added the type: bug Existing functionality is broken label Sep 17, 2024
Copy link

github-actions bot commented Nov 6, 2024

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.

@github-actions github-actions bot added the Stale label Nov 6, 2024
@agileware-justin
Copy link
Author

Would be good to receive at least an acknowledgement.

@github-actions github-actions bot removed the Stale label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Existing functionality is broken
Projects
None yet
Development

No branches or pull requests

1 participant