Critical Error when submitting donation
-
When a user attempts to submit a donation through WP Give, we are getting a generic WordPress error: “There has been a critical error on this website.”
Talking with the hosting provider, they said it is an issue with the code of the plugin. Here is the error from the error log:
[23-Jun-2023 11:20:33 UTC] WordPress database error Table ‘[…].JUb_give_revenue’ doesn’t exist for query INSERT INTO
JUb_give_revenue
(donation_id
,form_id
,amount
) VALUES (310, 83, 100) made by require(‘wp-blog-header.php’), require_once(‘wp-load.php’), require_once(‘wp-config.php’), require_once(‘wp-settings.php’), do_action(‘init’), WP_Hook->do_action, WP_Hook->apply_filters, give_post_actions, do_action(‘give_purchase’), WP_Hook->do_action, WP_Hook->apply_filters, give_process_donation_form, give_send_to_gateway, do_action(‘give_gateway_offline’), WP_Hook->do_action, WP_Hook->apply_filters, give_offline_process_payment, give_insert_payment, do_action(‘give_insert_payment’), WP_Hook->do_action, WP_Hook->apply_filters, Give\Helpers\Hooks::Give\Helpers{closure}, call_user_func_array, Give\Revenue\DonationHandler->handle, Give\Revenue\Repositories\Revenue->insert, Give\Framework\Database\DB::__callStatic, Give\Framework\Database\DB::runQueryWithErrorChecking, Give\Framework\Database\DB::Give\Framework\Database{closure}, call_user_func_array
[23-Jun-2023 11:20:33 UTC] PHP Fatal error: Uncaught Give\Framework\Database\Exceptions\DatabaseQueryException: Database Query in /home/domainprivacy/destituteorphans.org/wp-content/plugins/give/src/Framework/Database/DB.php:247
Stack trace:0 /[…]/wp-content/plugins/give/src/Framework/Database/DB.php(95): Give\Framework\Database\DB::runQueryWithErrorChecking(Object(Closure))
1 /[…]/wp-content/plugins/give/src/Revenue/Repositories/Revenue.php(47): Give\Framework\Database\DB::__callStatic(‘insert’, Array)
2 /[…]/wp-content/plugins/give/src/Revenue/DonationHandler.php(30): Give\Revenue\Repositories\Revenue->insert(Array)
3 [internal function]: Give\Revenue\DonationHandler->handle(310)
4 /[…]/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array(Array, Array)
5 /[…]/wp-includes/class-wp-hook.php(310): Give\Helpers\Hooks::Give\Helpers{closure}(310)
6 /ho in /[…]/wp-content/plugins/give/src/Framework/Database/DB.php on line 247
- The topic ‘Critical Error when submitting donation’ is closed to new replies.