Critical Error when someone tries to make payment
-
When someone tries to make a donation they are receiving a critical error.
I have the following add-ons
Per Form Gateways
Emails Report
Stripe Gateway
I deactivated the add-ons and still get the error. I get this message when debug is on:
Deprecated: Return type of MyCLabs\Enum\Enum::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in?/home/mywaemax/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php?on line?246The page I need help with: [log in to see the link]
-
WordPress Environment Home URL: https://mywaema.org Site URL: https://mywaema.org WP Version: 6.5.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: – WP Cron: ? Language: en_US Permalink Structure: /%postname%/ Show on Front: page Page on Front: Home (#41295) Page for Posts: Unset Table Prefix Length: wp4c_ Table Prefix Length: 5 Table Prefix Status: Acceptable Admin AJAX: Accessible Registered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, request-pending, request-confirmed, request-failed, request-completed, expired, preview, wc-active, wc-switched, wc-expired, wc-pending-cancel, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft, refunded, failed, revoked, cancelled, abandoned, processing, preapproval, upgraded, wcm-active, wcm-free_trial, wcm-delayed, wcm-complimentary, wcm-pending, wcm-paused, wcm-expired, wcm-cancelled Server Environment Hosting Provider: DBH: localhost, SRV: mywaema.org TLS Connection: Connection uses TLS 1.3 TLS Connection: Probably Okay Server Info: Apache PHP Version: 8.1.28 PHP Post Max Size: 128 MB PHP Time Limit: 180 PHP Max Input Vars: 5000 PHP Max Upload Size: 64 MB cURL Version: 7.88.0, OpenSSL/1.1.1t SUHOSIN Installed: – Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? gzip: ? GD Graphics Library: ? Multibyte String: ? Remote Post: ? Remote Get: ? GiveWP Configuration GiveWP Version: 3.10.0 GiveWP Cache: Enabled Database Updates: All DB Updates Completed. Database Updates: Few Database Migrations still need to run. Database Tables: ? wp4c_give_donors? wp4c_give_donormeta? wp4c_give_comments? wp4c_give_commentmeta? wp4c_give_sessions? wp4c_give_formmeta? wp4c_give_sequential_ordering? wp4c_give_donationmeta? wp4c_give_revenue? wp4c_give_migrations? wp4c_give_log GiveWP Cache: Enabled GiveWP Cache: ?New Donation?Donation Receipt?Donation Processing Receipt?New Offline Donation?Offline Donation Instructions?New User Registration?User Registration Information?Donation Note?Email access?Daily Email Report?Weekly Email Report?Monthly Email Report Upgraded From: 3.9.0 Test Mode: Disabled Currency Code: USD Currency Position: Before Decimal Separator: . Thousands Separator: , Success Page: https://mywaema.org/donate/donation-confirmation/ Failure Page: https://mywaema.org/donate/donation-failed/ Donation History Page: GiveWP Forms Slug: /donations/ Enabled Payment Gateways: Stripe - Credit Card Default Payment Gateway: Stripe - Credit Card PayPal IPN Notifications: N/A Donor Email Access: Enabled Stripe Webhook Notifications: January 13, 2024 6:53 am Active GiveWP Add-ons Give - Email Reports: ? Unlicensed – by GiveWP – 1.1.4 Give - Per Form Gateways: ? Unlicensed – by GiveWP – 2.0.0 Give - Stripe Gateway: ? Unlicensed – by GiveWP – 2.5.0 Other Active Plugins Admin Columns: by AdminColumns.com – 4.6.1 Admin Menu Editor Pro: by Janis Elsts – 2.24.2 All-in-One WP Migration: by ServMask – 7.81 All-in-One WP Migration Unlimited Extension: by ServMask – 2.57 Asset CleanUp: Page Speed Booster: by Gabe Livan – 1.3.9.3 Asset CleanUp Pro: Page Speed Booster: by Gabe Livan – 1.2.5.0 Autocomplete WooCommerce Orders: by QuadLayers – 3.3.0 CBX User Online & Last Login: by codeboxr – 1.2.12 Checkout Field Editor for WooCommerce (Pro): by ThemeHigh – 3.5.1 Disable cart page for WooCommerce: by Code4Life – 1.2.7 Divi Blog Pro: by DiviPeople – 1.2.26 Donation For Woocommerce: by wpexpertsio – 3.4.6.2 Email Encoder - Protect Email Addresses: by Jannis Thuemmig – 2.2.1 Events Manager: by Pixelite – 6.4.7.3 Events Manager Pro: by Pixelite – 3.2.8.1 Events Manager Pro - Stripe: by Pixelite – 2.4 GTmetrix for WordPress: by GTmetrix – 0.4.8 ILAAOM Events Aggregator: by VisionFriendly.com – 1.0.0 Image optimization service by Optimole: by Optimole – 3.12.10 LoginWP (Formerly Peter's Login Redirect): by LoginWP Team – 3.0.8.5 Logo Carousel Slider: by wpWax – 2.1.3 MailPoet: by MailPoet – 4.49.1 MailPoet Premium: by MailPoet – 4.49.0 MalCare WordPress Security Plugin - Malware Scanner, Cleaner, Security Firewall: by MalCare Security – 5.55 Marquee xml rss feed scroll: by Gopi Ramasamy – 7.9 Members: by MemberPress – 3.2.9 Metorik Helper: by Metorik – 1.7.1 Payment Plugins for Stripe WooCommerce: by Payment Plugins, [email protected] – 3.3.61 Premmerce WooCommerce Customers Manager: by Premmerce – 1.1.14 ShopMagic Advanced Filters: by WP Desk – 2.1.10 ShopMagic Delayed Actions: by WP Desk – 3.1.11 ShopMagic for WooCommerce: by WP Desk – 4.2.13 ShopMagic for WooCommerce Memberships: by WP Desk – 1.5.11 ShopMagic for WooCommerce Subscriptions: by WP Desk – 1.6.11 Site Kit by Google: by Google – 1.125.0 Theme My Login: by Theme My Login – 7.1.7 User Menus: by Code Atlantic – 1.3.2 WooCommerce: by Automattic – 8.8.3 WooCommerce Memberships: by SkyVerge – 1.26.4 WooCommerce Points and Rewards: by WooCommerce – 1.8.0 WooCommerce Referral System: by Codup.io – 1.3.10.5 Woo Subscriptions: by WooCommerce – 6.1.0 WP-Optimize - Clean, Compress, Cache: by David Anderson, Ruhani Rabin, Team Updraft – 3.3.2 WPCode Lite: by WPCode – 2.1.12 WP Job Manager: by Automattic – 2.3.0 WP Mail Logging: by WP Mail Logging Team – 1.12.0 WP Store Locator: by Tijmen Smit – 2.2.241 Yoast SEO: by Team Yoast – 22.6 Inactive Plugins Checkout Field Editor for WooCommerce: by ThemeHigh – 2.0.1 Refer a Friend: by Addify – 1.1.0 Active MU Plugins ASACU - WP Store Locator - Paid Memberships Pro Integration: by VisionFriendly.com – 1.0.2 Asset CleanUp Pro: Plugin Filtering: by Gabriel Livan – 1.0 ilaaom-events-manager-pro-hide-profile-fields.php: by – ilaaom-pmpro-show-address-fields-on-profile.php: by – njaaom-pmpro-extra-expiration-warning-emails-custom-frequency.php: by – vf-logging-functions.php: by – Theme Name: Divi Child Theme Version: Author URL: Child Theme: Yes Parent Theme Name: Divi Parent Theme Version: 4.25.0 Parent Theme Author URL: https://www.elegantthemes.com
I also get this when I looked at the error log in GiveWP…
I upgraded the donation form to the new version, and Stripe is connected, but now it is saying that there are no gateways connect on the form.
Debug log showed this on I attempted payment before upgrading the form from Legacy.
[03-May-2024 03:17:17 UTC] WordPress database error Unknown column ‘phone’ in ‘field list’ for query SELECT id, user_id AS userId, email, phone, name, purchase_value AS totalAmountDonated, purchase_count AS totalNumberOfDonations, payment_ids AS paymentIds, date_created AS createdAt, token, verify_key AS verifyKey, verify_throttle AS verifyThrottle, give_donormeta_attach_meta_firstName.meta_value AS firstName, give_donormeta_attach_meta_lastName.meta_value AS lastName, give_donormeta_attach_meta_prefix.meta_value AS prefix FROM wp4c_give_donors LEFT JOIN wp4c_give_donormeta give_donormeta_attach_meta_firstName ON ID = give_donormeta_attach_meta_firstName.donor_id AND give_donormeta_attach_meta_firstName.meta_key = ‘_give_donor_first_name’ LEFT JOIN wp4c_give_donormeta give_donormeta_attach_meta_lastName ON ID = give_donormeta_attach_meta_lastName.donor_id AND give_donormeta_attach_meta_lastName.meta_key = ‘_give_donor_last_name’ LEFT JOIN wp4c_give_donormeta give_donormeta_attach_meta_prefix ON ID = give_donormeta_attach_meta_prefix.donor_id AND give_donormeta_attach_meta_prefix.meta_key = ‘_give_donor_title_prefix’ WHERE user_id = ‘3525’ 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_stripe’), WP_Hook->do_action, WP_Hook->apply_filters, Give\Framework\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayRegisterAdapter::Give\Framework\LegacyPaymentGateways\Adapters\{closure}, Give\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayAdapter->handleBeforeGateway, Give\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayAdapter->getOrCreateDonor, Give\DonationForms\Actions\GetOrCreateDonor->__invoke, Give\Donors\Models\Donor::whereUserId, Give\Donors\Repositories\DonorRepositoryProxy->__call, Give\Donors\Repositories\DonorRepository->getByWpUserId, Give\Donors\Models\DonorModelQueryBuilder->get, Give\Framework\Database\DB::__callStatic, Give\Framework\Database\DB::runQueryWithErrorChecking, Give\Framework\Database\DB::Give\Framework\Database\{closure}, call_user_func_array [03-May-2024 03:17:17 UTC] PHP Fatal error: Uncaught Give\Framework\Database\Exceptions\DatabaseQueryException: Database Query in /home/mywaemax/public_html/wp-content/plugins/give/src/Framework/Database/DB.php:247 Stack trace: #0 /home/mywaemax/public_html/wp-content/plugins/give/src/Framework/Database/DB.php(95): Give\Framework\Database\DB::runQueryWithErrorChecking(Object(Closure)) #1 /home/mywaemax/public_html/wp-content/plugins/give/src/Donors/Models/DonorModelQueryBuilder.php(22): Give\Framework\Database\DB::__callStatic(‘get_row’, Array) #2 /home/mywaemax/public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php(76): Give\Donors\Models\DonorModelQueryBuilder->get() #3 /home/mywaemax/public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepositoryProxy.php(68): Give\Donors\Repositories\DonorRepository->getByWpUserId(3525) #4 /home/mywaemax/public_html/wp-content/plugins/give/src/Donors/Models/Donor.php(113): Give\Donors\Repositories\DonorRepositoryProxy->__call(‘getByWpUserId’, Array) #5 /home/mywaemax/public_html/wp-content/plugins/give/src/DonationForms/Actions/GetOrCreateDonor.php(30): Give\Donors\Models\Donor::whereUserId(3525) #6 /home/mywaemax/public_html/wp-content/plugins/give/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php(348): Give\DonationForms\Actions\GetOrCreateDonor->__invoke(3525, ‘ErenR1122@gmail…’, ‘Eren’, ‘Raymond’, ”, ”) #7 /home/mywaemax/public_html/wp-content/plugins/give/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php(89): Give\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayAdapter->getOrCreateDonor(370467, 3525, ‘ErenR1122@gmail…’, ‘Eren’, ‘Raymond’, ”, ”) #8 /home/mywaemax/public_html/wp-content/plugins/give/src/Framework/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayRegisterAdapter.php(43): Give\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayAdapter->handleBeforeGateway(Array, Object(Give\PaymentGateways\Gateways\Stripe\CreditCardGateway)) #9 /home/mywaemax/public_html/wp-includes/class-wp-hook.php(324): Give\Framework\LegacyPaymentGateways\Adapters\LegacyPaymentGatewayRegisterAdapter::Give\Framework\LegacyPaymentGateways\Adapters\{closure}(Array) #10 /home/mywaemax/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #11 /home/mywaemax/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #12 /home/mywaemax/public_html/wp-content/plugins/give/includes/gateways/functions.php(234): do_action(‘give_gateway_st…’, Array) #13 /home/mywaemax/public_html/wp-content/plugins/give/includes/process-donation.php(213): give_send_to_gateway(‘stripe’, Array) #14 /home/mywaemax/public_html/wp-includes/class-wp-hook.php(324): give_process_donation_form(Array) #15 /home/mywaemax/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(”, Array) #16 /home/mywaemax/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #17 /home/mywaemax/public_html/wp-content/plugins/give/includes/actions.php(88): do_action(‘give_purchase’, Array) #18 /home/mywaemax/public_html/wp-includes/class-wp-hook.php(324): give_post_actions(”) #19 /home/mywaemax/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #20 /home/mywaemax/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) #21 /home/mywaemax/public_html/wp-settings.php(695): do_action(‘init’) #22 /home/mywaemax/public_html/wp-config.php(98): require_once(‘/home/mywaemax/…’) #23 /home/mywaemax/public_html/wp-load.php(50): require_once(‘/home/mywaemax/…’) #24 /home/mywaemax/public_html/wp-blog-header.php(13): require_once(‘/home/mywaemax/…’) #25 /home/mywaemax/public_html/index.php(17): require(‘/home/mywaemax/…’) #26 {main} thrown in /home/mywaemax/public_html/wp-content/plugins/give/src/Framework/Database/DB.php on line 247
Hi, @zabriskie42.
Glad you reached out.
It looks like you are missing something in your database. Since you are using our add-ons, you are a paid user, we cannot support you on the free WP forum. And as a paid user, you have access to our priority support. Please reach out here https://givewp.com/priority-support and we will happily help you.
Looking forward to helping you get to the bottom of this!
Great, I submitted a priority support ticket.
Thank you.
- The topic ‘Critical Error when someone tries to make payment’ is closed to new replies.