{ecard_email} critical error when enabling tribute “send ecard” option

[ad_1]

Hi,

This looks like a php type-error, I hope you can help me to patch it. Thank you .

When enabling tribute option, and submititng a donation w/ tribute option, this error page is shown instead of eCard messge. Form and donation go through, but the email does not get sent. This error is given on a new screen. The same screen is shown when trying to preview eCard in the WP Admin > Donations >> Reports.

********
{ecard_email}
There has been a critical error on this websit.

********

Steps to replicate:

  1. On Donation page select “Make an “In Memory Of” Donation”
  2. Select “Dedicate this Donation” >> Dedication Type “In Memory Of”
  3. Enter honoree details
  4. Next, under “Would you like us to notify anyone of your donation?” Select: “Yes, send an eCard
  5. Submit form.
  6. Error is shown instead of a success screen, or a preview option.

What i did so far:

  1. Enabled test mode on staging
  2. Disabled all other plugins to test compatibility issues. No results.
  3. I enabled error reporting:
    • GiveWP and its addon throw many Deprecated errors. – Tested various PHP versions – hoping to remove multiple Deprecated errors. While specific errors changed, they are still numerous.
    • On the {ecard_email} error screen the following Fatal error is printed:

Fatal error: Uncaught TypeError: trim(): Argument #1 ($string) must be of type string, array given in /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/formatting.php:449 Stack trace: #0 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/formatting.php(449): trim(Array) #1 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give-tributes/includes/give-tributes-helpers.php(1056): wpautop(Array) #2 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give-tributes/templates/ecard/footer-default.php(36): give_tributes_v11_donor_message_compat(6511) #3 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give-tributes/includes/public/class-give-tributes-public.php(1068): require(‘/home/customer/…’) #4 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(326): Give_Tributes_Public->ecard_email_footer_call_back(6511) #5 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #6 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #7 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give-tributes/includes/give-tributes-ecards.php(245): do_action(‘give_tribute_ec…’, 6511, 3930) #8 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give-tributes/includes/give-tributes-ecards.php(196): give_tribute_ecard_build_email(6511, 3930, ‘design@sasha-k….’) #9 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give-tributes/includes/give-tributes-helpers.php(2136): give_tributes_ecard_email_receipt(6511) #10 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(324): send_ecard_when_payment_status_changed(6511, ‘publish’, ‘pending’) #11 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #12 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #13 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(101): do_action(‘give_update_pay…’, 6511, ‘publish’, ‘pending’) #14 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Donations/LegacyListeners/DispatchGiveUpdatePaymentStatus.php(29): Give\Helpers\Hooks::doAction(‘give_update_pay…’, 6511, ‘publish’, ‘pending’) #15 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Donations/ServiceProvider.php(90): Give\Donations\LegacyListeners\DispatchGiveUpdatePaymentStatus->__invoke(Object(Give\Donations\Models\Donation)) #16 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(324): Give\Donations\ServiceProvider->Give\Donations\{closure}(Object(Give\Donations\Models\Donation)) #17 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #18 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #19 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(101): do_action(‘givewp_donation…’, Object(Give\Donations\Models\Donation)) #20 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Donations/Repositories/DonationRepository.php(287): Give\Helpers\Hooks::doAction(‘givewp_donation…’, Object(Give\Donations\Models\Donation)) #21 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Donations/Models/Donation.php(149): Give\Donations\Repositories\DonationRepository->update(Object(Give\Donations\Models\Donation)) #22 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Framework/PaymentGateways/CommandHandlers/PaymentHandler.php(51): Give\Donations\Models\Donation->save() #23 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Framework/PaymentGateways/Actions/HandleGatewayPaymentCommand.php(46): Give\Framework\PaymentGateways\CommandHandlers\PaymentHandler->handle(Object(Give\Donations\Models\Donation)) #24 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Framework/PaymentGateways/Controllers/GatewayPaymentController.php(88): Give\Framework\PaymentGateways\Actions\HandleGatewayPaymentCommand->__invoke(Object(Give\Framework\PaymentGateways\Commands\PaymentComplete), Object(Give\Donations\Models\Donation)) #25 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Framework/PaymentGateways/Controllers/GatewayPaymentController.php(45): Give\Framework\PaymentGateways\Controllers\GatewayPaymentController->handleGatewayCommand(Object(Give\Framework\PaymentGateways\Commands\PaymentComplete), Object(Give\Donations\Models\Donation)) #26 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php(211): Give\Framework\PaymentGateways\Controllers\GatewayPaymentController->create(Object(Give\Donations\Models\Donation), Array) #27 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/src/Framework/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayRegisterAdapter.php(43): Give\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayAdapter->handleBeforeGateway(Array, Object(Give\PaymentGateways\Gateways\TestGateway\TestGateway)) #28 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(324): Give\Framework\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayRegisterAdapter::Give\Framework\LegacyPaymentGateways\Adapters\{closure}(Array) #29 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #30 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #31 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/includes/gateways/functions.php(234): do_action(‘give_gateway_ma…’, Array) #32 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/includes/process-donation.php(215): give_send_to_gateway(‘manual’, Array) #33 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(324): give_process_donation_form(Array) #34 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #35 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #36 /home/customer/www/staging16.ipffoundation.org/public_html/wp-content/plugins/give/includes/actions.php(88): do_action(‘give_purchase’, Array) #37 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(324): give_post_actions(”) #38 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #39 /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #40 /home/customer/www/staging16.ipffoundation.org/public_html/wp-settings.php(700): do_action(‘init’) #41 /home/customer/www/staging16.ipffoundation.org/public_html/wp-config.php(93): require_once(‘/home/customer/…’) #42 /home/customer/www/staging16.ipffoundation.org/public_html/wp-load.php(50): require_once(‘/home/customer/…’) #43 /home/customer/www/staging16.ipffoundation.org/public_html/wp-blog-header.php(13): require_once(‘/home/customer/…’) #44 /home/customer/www/staging16.ipffoundation.org/public_html/index.php(17): require(‘/home/customer/…’) #45 {main} thrown in /home/customer/www/staging16.ipffoundation.org/public_html/wp-includes/formatting.php on line 449

The page I need help with: [log in to see the link]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer