Fatal Error – Currency Code
-
Hi
Running into the following problem with the plugin as per WordPress notification under heading : Your Site is Experiencing a Technical Issue.
Can anyone advise please?
Error Details
=============
An error of type E_ERROR was caused in line 29 of the file Currency.php. Error message: Uncaught InvalidArgumentException: Currency code should be string in Currency.php:29
Stack trace:Thanks
Brendan
-
Hi Brendan,
Glad you reached out. I’ll need a little more information to get to the bottom of things here.
First, send along your system information. You can do this by navigating to Donations > Tools > System Info (tab) and click the button to “Get System Report” and copy/paste that in your reply here.
I also need the complete file name to have a clearer picture of where this issue is coming from.
Let me know if you have any questions about this along the way, I’m happy to help.
Hi Stephanie
Thanks for getting back to me. See below for System Report, as requested, and WordPress Error Report as emailed to me regarding error with file details. Let me know if you need anything else. Thanks
1. System Report :
##Starts
### WordPress Environment ### Home URL: https://clonakiltyfriendsofasylumseekers.ie Site URL: https://clonakiltyfriendsofasylumseekers.ie WP Version: 6.0.3 WP Multisite: – WP Memory Limit: 384 MB WP Debug Mode: – WP Cron: ? Language: en_US Permalink Structure: Show on Front: page Page on Front: Home (#8) Page for Posts: Blog (#16) Table Prefix Length: wp_ Table Prefix Length: 3 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, refunded, failed, revoked, cancelled, abandoned, processing, preapproval ### Server Environment ### Hosting Provider: DBH: localhost:3306, SRV: clonakiltyfriendsofasylumseekers.ie TLS Connection: Connection uses TLS Connection: Server Info: Apache PHP Version: 7.4.30 PHP Post Max Size: 64 MB PHP Time Limit: 60 PHP Max Input Vars: 5000 PHP Max Upload Size: 64 MB cURL Version: 7.71.0, OpenSSL/1.1.1p 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.23.0 GiveWP Cache: Enabled Database Updates: All DB Updates Completed. Database Updates: All Database Migrations Completed. Database Tables: ? wp_give_donors? wp_give_donormeta? wp_give_comments? wp_give_commentmeta? wp_give_sessions? wp_give_formmeta? wp_give_sequential_ordering? wp_give_donationmeta? wp_give_revenue? wp_give_migrations? wp_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.23.0 Test Mode: Enabled Currency Code: EUR Currency Position: Before Decimal Separator: . Thousands Separator: , Success Page: https://clonakiltyfriendsofasylumseekers.ie/?page_id=4 Failure Page: https://clonakiltyfriendsofasylumseekers.ie/?page_id=860 Donation History Page: https://clonakiltyfriendsofasylumseekers.ie/?page_id=6 GiveWP Forms Slug: /donations/ Enabled Payment Gateways: Test Donation, Offline Donation Default Payment Gateway: Test Donation PayPal IPN Notifications: N/A Donor Email Access: Enabled Stripe Webhook Notifications: N/A ### Active GiveWP Add-ons ### ### Other Active Plugins ### Duplicate Page: by mndpsingh287 – 4.4.9 Health Check & Troubleshooting: by The www.ads-software.com community – 1.5.0 Kadence Blocks – Gutenberg Blocks for Page Builder Features: by Kadence WP – 2.4.17 Kadence Starter Templates: by Kadence WP – 1.2.16 LiteSpeed Cache: by LiteSpeed Technologies – 5.2.1 Smash Balloon Custom Facebook Feed: by Smash Balloon – 4.1.5 Under Construction: by WebFactory Ltd – 3.93 ### Inactive Plugins ### Akismet Anti-Spam: by Automattic – 5.0.1 Hello Dolly: by Matt Mullenweg – 1.7.2 ### Active MU Plugins ### Health Check Troubleshooting Mode: by – 1.8.0 ### Theme ### Name: Kadence Version: 1.1.30 Author URL: https://www.kadencewp.com/ Child Theme: No – If you're modifying GiveWP on a parent theme you didn't build personally, then we recommend using a child theme. See: How to Create a Child Theme
###END
2. WordPress Error Report
Error Details ============= An error of type E_ERROR was caused in line 155 of the file /var/www/vhosts/clonakiltyfriendsofasylumseekers.ie/httpdocs/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php. Error message: Uncaught TypeError: Argument 2 passed to Give\Framework\Support\ValueObjects\Money::fromDecimal() must be of the type string, null given, called in /var/www/vhosts/clonakiltyfriendsofasylumseekers.ie/httpdocs/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php on line 143 and defined in /var/www/vhosts/clonakiltyfriendsofasylumseekers.ie/httpdocs/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php:155 Stack trace: #0 /var/www/vhosts/clonakiltyfriendsofasylumseekers.ie/httpdocs/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(143): Give\Framework\Support\ValueObjects\Money::fromDecimal(NULL, NULL) #1 /var/www/vhosts/clonakiltyfriendsofasylumseekers.ie/httpdocs/wp-content/plugins/give/src/Donations/Models/Donation.php(274): Give\Donations\DataTransferObjects\DonationQueryData::fromObject(Object(stdClass)) #2 /var/www/vhosts/clonakiltyfriendsofasylumseekers.ie/httpdocs/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(91
Hi Stephanie
Is there any possible chance of getting a reply on this please.
If not, we’ll have to work with another plugin.
Thanks
Brendan
Hi @brenmc,
I’ve tried replicating this in a couple different environments, but so far I haven’t been successful. I’ll need your help here to get to the bottom of things. Here are some questions that should help us get some traction:
When does this issue appear? Is it when a donation is made, or does it pop up when you activate the plugin? Knowing exactly how/when an issue is popping up will let me pinpoint where I should be testing.
If you can send along some clear steps that I can use to help replicate this issue, I would be happy to take another run at it.
Thanks!
Hi @brenmc,
I haven’t heard from you in a bit, so I’m going to mark this as resolved. If you are still having trouble, you can open a new ticket and we’ll be happy to give things another look! Be sure to include some of those details I mentioned above, that will give us some context to continue digging.
Have a great day!
- The topic ‘Fatal Error – Currency Code’ is closed to new replies.