• Resolved gpowerhost

    (@gpowerhost)


    Greetings,
    When we install anything higher that v. 2.19.8, we get the below Fatal error when clicking on Donations->donations.

    `When seeking help with this issue, you may be asked for some of the following information:
    WordPress version 6.0.1
    Active theme: Divi Child (version 1.0.0)
    Current plugin: Give – Donation Plugin (version 2.21.4)
    PHP version 7.4.30

    Error Details
    =============
    An error of type E_ERROR was caused in line 50 of the file /home/[snip]/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php. Error message: Uncaught UnexpectedValueException: Value ‘submitted’ is not part of the enum Give\Donations\ValueObjects\DonationStatus in /home/[snip]/public_html/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php:50
    Stack trace:
    #0 /home/[snip]/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationResponseData.php(100): MyCLabs\Enum\Enum->__construct(‘submitted’)
    #1 /home/[snip]/public_html/wp-content/plugins/give/src/Donations/Endpoints/ListDonations.php(89): Give\Donations\DataTransferObjects\DonationResponseData::fromObject(Object(stdClass))
    #2 /home/[snip]/public_html/wp-includes/rest-api/class-wp-rest-server.php(1143): Give\Donations\Endpoints\ListDonations->handleRequest(Object(WP_REST_Request))
    #3 /home/[snip]/public_html/wp-includes/rest-api/class-wp-rest-server.php(990): WP_REST_Server->respond_to_request(Object(WP_REST_Request), ‘/give-api/v2/ad…’, Array, NULL)
    #4 /home/[snip]/public_html/wp-includes/rest-api.php(519): WP_REST_Server->dispatc

    Thank you for any insights that you might be able to provide.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gpowerhost

    (@gpowerhost)

    Here is a system report:

    ###########BEGIN

    ### WordPress Environment ###
    
    Home URL: https://[snip]
    Site URL: https://[snip]
    WP Version: 6.0.1
    WP Multisite: –
    WP Memory Limit: 368 MB
    WP Debug Mode: –
    WP Cron: –
    Language: en_US
    Permalink Structure: /%postname%/
    Show on Front: page
    Page on Front: Support [snip] (#477)
    Page for Posts: Unset
    Table Prefix Length: wp51_
    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, in-progress, failed, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, wc-checkout-draft, refunded, revoked, cancelled, abandoned, processing, preapproval, wc-paid, wc-tax-pending, wc-closed-tax-paid, wc-closed-prior, wc-fulfillment-hold, wc-submitted-tax-pen, wc-submitted, wc-service-inquiry, wc-fulfill, wc-paid-tax-pending, wc-fulfill-special, wc-closed, wc-reporting, wc-waiting-4-return, wc-wait-4-return-fre, wc-wait-4-return-lab
    
    ### Server Environment ###
    
    Hosting Provider: DBH: localhost, SRV: [snip]
    TLS Connection: Connection uses TLS 1.3
    TLS Connection: Probably Okay
    Server Info: Apache
    PHP Version: 7.4.30
    PHP Post Max Size: 64 MB
    PHP Time Limit: 360
    PHP Max Input Vars: 100000
    PHP Max Upload Size: 64 MB
    cURL Version: 7.71.0, OpenSSL/1.1.1d
    SUHOSIN Installed: –
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    gzip: ?
    GD Graphics Library: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### GiveWP Configuration ###
    
    GiveWP Version: 2.21.4
    GiveWP Cache: Enabled
    Database Updates: All DB Updates Completed.
    Database Updates: All Database Migrations Completed.
    Database Tables: ? wp51_give_donors? wp51_give_donormeta? wp51_give_comments? wp51_give_commentmeta? wp51_give_sessions? wp51_give_formmeta? wp51_give_sequential_ordering? wp51_give_donationmeta? wp51_give_revenue? wp51_give_migrations? wp51_give_log
    GiveWP Cache: Enabled
    GiveWP Cache: ?New Donation?Donation Receipt?New Offline Donation?Offline Donation Instructions?New User Registration?User Registration Information?Donation Note?Email access
    Upgraded From: 2.21.4
    Test Mode: Disabled
    Currency Code: USD
    Currency Position: Before
    Decimal Separator: .
    Thousands Separator: ,
    Success Page: https://[snip]/donation-confirmation/
    Failure Page: https://[snip]/donation-failed/
    Donation History Page: https://[snip]/donor-dashboard/
    GiveWP Forms Slug: /donations/
    Enabled Payment Gateways: Stripe - Credit Card, Offline Donation
    Default Payment Gateway: Stripe - Credit Card
    PayPal IPN Notifications: N/A
    Donor Email Access: Enabled
    Stripe Webhook Notifications: July 9, 2022 5:05 am
    
    ### Active GiveWP Add-ons ###
    
    ### Other Active Plugins ###
    
    Ajax Cart AutoUpdate for WooCommerce: by taisho – 1.5.5
    Akismet Anti-Spam: by Automattic – 4.2.5
    Bloom: by Elegant Themes – 1.3.12
    Breadcrumb: by PickPlugins – 1.5.27
    Bulk Change Media Author: by Ruslan Mikhno – 1.2
    Cart Insights for WooCommerce: by Berend de Jong – 1.4.3
    Disable Admin Notices Individually: by Creative Motion  – 1.3.0
    Disable Bloat for WordPress & WooCommerce: by Disable Bloat – 3.0.3
    Divi Responsive Helper: by Pee-Aye Creative – 2.2.3
    gPH AUG Front-end Styles: by gPowerHost – 1.1.02
    Maintenance Mode: by Lukas Juhas – 2.4.4
    Members: by MemberPress – 3.2.1
    Monarch Plugin: by Elegant Themes – 1.4.14
    Post Duplicator: by Metaphor Creations – 2.28
    Product Size Chart for Woocommerce: by Ciobanu George – 1.1.3
    Real-Time Find and Replace Pro: by Marios Alexandrou – 4.0.3
    Scheduled Sale Manager for WooCommerce: by Berend de Jong – 1.11.2
    Search Exclude: by Roman Pronskiy – 1.2.6
    Ultimate Order Combination: by Fahad Mahmood – 1.5.4
    User Switching: by John Blackbourn & contributors – 1.6.0
    User Switching in Admin Bar: by wpexpertsio – 1.4
    WooCommerce: by Automattic – 6.7.0
    WooCommerce - StampscomEndicia Integration: by Stamps.comEndicia – 2.0.0
    WooCommerce Bulk Stock Management: by WooCommerce – 2.2.31
    WooCommerce Cart Notices: by SkyVerge – 1.13.3
    WooCommerce Cost of Goods: by SkyVerge – 2.11.1
    WooCommerce Customer/Order/Coupon Export: by SkyVerge – 5.3.3
    WooCommerce Extended Coupon Features FREE: by Soft79 – 3.2.9
    WooCommerce Order Navigation: by woosmartcod.com – 1.1
    WooCommerce Order Status Manager: by SkyVerge – 1.13.3
    WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 3.0.0
    WooCommerce Sale Flash Pro: by WooCommerce – 1.2.22
    WooCommerce Shipment Tracking: by WooCommerce – 1.7.0
    WooCommerce Smart Coupons: by StoreApps – 5.6.0
    WooCommerce Stamps.com API integration: by WooCommerce – 1.3.26
    WooCommerce Stripe Gateway: by WooCommerce – 6.4.3
    WooCommerce Tab Manager: by SkyVerge – 1.14.1
    WooCommerce USPS Shipping: by WooCommerce – 4.4.74
    WooCommerce Waitlist: by Neil Pie – 2.3.2
    WooCommerce Warranty Requests: by WooCommerce – 1.9.33
    WP Crontrol: by John Blackbourn & crontributors – 1.14.0
    WP First Letter Avatar: by Dev49.net – 2.2.8
    WP Mail SMTP Pro: by WPForms – 3.4.0
    YITH WooCommerce Badge Management Premium: by YITH – 1.4.14
    
    ### Inactive Plugins ###
    
    Divi-Modules – Table Maker: by Divi-Modules – 2.0.1
    Follow-Up Emails: by WooCommerce – 4.9.24
    
    ### Theme ###
    
    Name: Divi Child
    Version: 1.0.0
    Author URL: https://www.elegantthemes.com
    Child Theme: Yes
    Parent Theme Name: Divi
    Parent Theme Version: 4.17.5
    Parent Theme Author URL: https://www.elegantthemes.com

    #############END

    Plugin Support Rick Alday

    (@mrdaro)

    Hi @gpowerhost,

    Happy to help.

    It happens when there’s a donation (usually a Manual Donation(s) entered with a date in the future. In this particular case, the donation seems to have a status that GivewWP does not recognize. There’s a bug report for a similar error that you’re seeing: https://feedback.givewp.com/bug-reports/p/entering-a-manual-donation-with-a-future-date-breaks-donations-donations

    The workaround is to either delete and reenter the donation with a current or past date, or edit the donation’s post_status to PUBLISH.
    When in wp_posts in the database, search for anything with post_status of “submitted”. Find the donation and change that to “publish”`

    https://screencast-o-matic.com/i/c3ioDvV0LHw

    Thread Starter gpowerhost

    (@gpowerhost)

    Thanks for the insight. In this case, the order had passed through a completed state and then progressed to a custom stated we use internally. When they’ve done this in the past, those orders just disappeared and they would then enter a consolidated entry for all those orders manually to keep the donation totals correct. It would be nice if there were a way to have custom statuses and be able to mark those statues as having been through the “Complete” status (which these all have prior, and perhaps you’d need pending and failed, etc.) so no matter the status it is now, they are equivalently know as completed and get accounted for.

    I appreicate the insight and I’m glad we were able to update the client.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uncaught UnexpectedValueException: Value ‘submitted’ is not part of the enum’ is closed to new replies.