On certain conditions, the Donations > Donations page will display a fatal error
complete
Matheus Martins
As an admin, I want to access my Donations page. However, after GiveWP 2.27.3, it breaks when I access it.
The error says:
An error of type E_ERROR was caused in line 50 of the file …give/vendor/myclabs/php-enum/src/Enum.php.
Error message: Uncaught UnexpectedValueException: Value ‘’ is not part of the enum Give\Donations\ValueObjects\DonationMode in /home/huliyoyeho0047/web/ocent-ibis-zala.instawp.xyz/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php:50
This post was marked as
complete
This post was marked as
ready for release
This post was marked as
in progress
Angela Blake
planned
E
Ed Booth
Experiencing the same issue.
[12-Jul-2023 17:51:39 UTC] PHP Fatal error: Uncaught UnexpectedValueException: Value '' is not part of the enum Give\Donations\ValueObjects\DonationMode in /home1/unchain4/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php:50
Stack trace:
#0 /home1/unchain4/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(161): MyCLabs\Enum\Enum->__construct(NULL)
#1 /home1/unchain4/public_html/wp-content/plugins/give/src/Donations/Models/Donation.php(276): Give\Donations\DataTransferObjects\DonationQueryData::fromObject(Object(stdClass))
#2 /home1/unchain4/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(111): Give\Donations\Models\Donation::fromQueryBuilderObject(Object(stdClass))
#3 /home1/unchain4/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(69): Give\Framework\Models\ModelQueryBuilder->getRowAsModel(Object(stdClass))
#4 /home1/unchain4/public_html/wp-content/plugins/give/src/Donations/Repositories/DonationRepository.php(66): Give\Framework\Models\ModelQueryBuilder->get()
#5 /home1/unchain4/public_html/wp-content/plugins/give/src/Donations/Models/Donation.php(113): Give\Donations\Repositories\DonationRepository->getById(32078)
#6 /home1/unchain4/public_html/wp-content/plugins/give-webhooks/src/Events/Donations/DonationUpdated.php(79): Give\Donations\Models\Donation::find(32078)
#7 [internal function]: GiveWebhooks\Events\Donations\DonationUpdated->eventLegacyHook(Object(Give_Payment), 32078)
#8 /home1/unchain4/public_html/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array(Array, Array)
#9 /home1/unchain4/public_html/wp-includes/class-wp-hook.php(308): Give\Helpers\Hooks::Give\Helpers\{closure}(Object(Give_Payment), 32078)
#10 /home1/unchain4/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#11 /home1/unchain4/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#12 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/class-give-payment.php(602): do_action('give_setup_paym...', Object(Give_Payment), 32078)
#13 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/class-give-payment.php(416): Give_Payment->setup_payment(32078)
#14 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/actions.php(295): Give_Payment->__construct(32078)
#15 /home1/unchain4/public_html/wp-includes/class-wp-hook.php(310): give_bc_v20_get_payment_meta('', 32078, '_give_payment_m...', true)
#16 /home1/unchain4/public_html/wp-includes/plugin.php(205): WP_Hook->apply_filters('', Array)
#17 /home1/unchain4/public_html/wp-includes/meta.php(633): apply_filters('get_post_metada...', NULL, 32078, '_give_payment_m...', true, 'post')
#18 /home1/unchain4/public_html/wp-includes/meta.php(572): get_metadata_raw('post', 32078, '_give_payment_m...', true)
#19 /home1/unchain4/public_html/wp-includes/post.php(2492): get_metadata('post', 32078, '_give_payment_m...', true)
#20 /home1/unchain4/public_html/wp-content/plugins/give/includes/misc-functions.php(974): get_post_meta(32078, '_give_payment_m...', true)
#21 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/class-give-payment.php(1356): give_get_meta(32078, '_give_payment_m...', true)
#22 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/class-give-payment.php(541): Give_Payment->get_meta()
#23 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/class-give-payment.php(416): Give_Payment->setup_payment(32078)
#24 /home1/unchain4/public_html/wp-content/plugins/give/includes/payments/class-payments-query.php(274): Give_Payment->__construct(32078)
#25 /home1/unchain4/public_html/wp-content/plugins/give/includes/admin/payments/class-payments-table.php(1001): Give_Payments_Query->get_payments()
#26 /home1/unchain4/public_html/wp-content/plugins/give/includes/admin/payments/class-payments-table.php(1025): Give_Payment_History_Table->payments_data()
#27 /home1/unchain4/public_html/wp-content/plugins/give/includes/admin/payments/payments-history.php(32): Give_Payment_History_Table->prepare_items()
#28 /home1/unchain4/public_html/wp-includes/class-wp-hook.php(308): give_payment_history_page('')
#29 /home1/unchain4/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
#30 /home1/unchain4/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#31 /home1/unchain4/public_html/wp-admin/admin.php(259): do_action('give_forms_page...')
#32 /home1/unchain4/public_html/wp-admin/edit.php(10): require_once('/home1/unchain4...')
#33 {main}
thrown in /home1/unchain4/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php on line 50