give_get_state() returns false if no base state is selected. Should return empty array. When the default state is retrieved 'false' is converted to a string and is set as the default state.
Selecting a country with no states and no default state selected should have an empty input for county or state.
Input field for country or state is autopopulated with "false"
in Give/1.8.18
/includes/country-functions.php:38
replace with
$state = isset( $give_options['base_state'] ) ? $give_options['base_state'] : array();
Add this snippet to the theme functions.php
add_filter(
'give_give_states',
function($state)
{
return ($state === false ? [] : $state);
}
);
N/A

Home URL: https://www.childrenincrossfire.org
Site URL: https://www.childrenincrossfire.org
WP Version: 4.9.1
WP Multisite: β
WP Memory Limit: 256 MB
WP Debug Mode: β
WP Cron: β
Language: en_US
Permalink Structure: /%postname%/
Show on Front: page
Page on Front: Home (#27)
Page for Posts: Unset
Table Prefix Length: 6
Table Prefix Status: Acceptable
Admin AJAX: Inaccessible
Registered Post Statuses: publish, future, draft, pending, private, trash, auto-draft, inherit, wc-pending, wc-processing, wc-on-hold, wc-completed, wc-cancelled, wc-refunded, wc-failed, refunded, failed, revoked, cancelled, abandoned, processing, preapproval, give_subscription
Hosting Provider: DBH: localhost, SRV: www.childrenincrossfire.org
TLS Connection: Connection uses TLS 1.2
TLS Connection: Bad
Server Info: LiteSpeed
PHP Version: β 5.5.38 - We recommend a minimum PHP version of 5.6. See: PHP Requirements in Give
PHP Post Max Size: 100 MB
PHP Time Limit: 60
PHP Max Input Vars: 5000
PHP Max Upload Size: 100 MB
cURL Version: 7.54.0, OpenSSL/1.0.2k
SUHOSIN Installed: β
Default Timezone is UTC: β
fsockopen/cURL: β
SoapClient: β Your server does not have the SoapClient class enabled - some gateway plugins which use SOAP may not work as expected.
DOMDocument: β
gzip: β
GD Graphics Library: β
Multibyte String: β
Remote Post: β
Remote Get: β
Give Version: 1.8.17
Upgraded From: β
Test Mode: Disabled
Currency Code: GBP
Currency Position: Before
Decimal Separator: .
Thousands Separator: ,
Success Page: https://www.childrenincrossfire.org/donation-confirmation/
Failure Page: https://www.childrenincrossfire.org/donation-failed/
Donation History Page: https://www.childrenincrossfire.org/donation-history/
Give Forms Slug: /donations/
Enabled Payment Gateways: Stripe - Credit Card
Default Payment Gateway: Stripe - Credit Card
PayPal IPN Verification: Enabled
PayPal IPN Notifications: N/A
Admin Email Notifications: Enabled
Donor Email Access: Enabled
Give Use Sessions: Enabled
Session: Enabled
Session Name: PHPSESSID
Cookie Path: /
Save Path: /tmp
Use Cookies: Enabled
Use Only Cookies: Enabled
Give - Form Field Manager: β Licensed β by WordImpress β 1.2.4
Give - Recurring Donations: β Licensed β by WordImpress β 1.4.2
Give - Stripe Gateway: β Licensed β by WordImpress β 1.5.1
Akismet Anti-Spam: by Automattic β 4.0.1
Bootstrap 3 Shortcodes: by Michael W. Delaney, Filip Stefansson, and Simon Yeldon β 3.3.10
Duplicate Post: by Enrico Battocchi β 3.2.1
Envira Gallery: by Envira Gallery Team β 1.7.1
Gravity Forms: by rocketgenius β 1.9.13.7
iThemes Security: by iThemes β 6.6.1
MetaSlider: by Team Updraft β 3.6.6
Postman SMTP: by Jason Hendriks β 1.7.2
Redirection: by John Godley β 2.10.1
Regenerate Thumbnails: by Alex Mills (Viper007Bond) β 2.3.1
Seriously Simple Podcasting: by Castos β 1.19.3
TablePress: by Tobias BΓ€thge β 1.9
Thumbnail Upscale: by Stanislav Khromov β 1.1
UpdraftPlus - Backup/Restore: by UpdraftPlus.Com, DavidAnderson β 1.13.16
WooCommerce: by Automattic β 3.2.5
Wordfence Security: by Wordfence β 6.3.22
WP-Optimize: by David Anderson, Ruhani Rabin, Team Updraft β 2.1.1
WP Fastest Cache: by Emre Vona β 0.8.7.5
WP Fastest Cache Premium: by Emre Vona β 1.4.2
WP Maintenance Mode: by Designmodo β 2.0.9
WP Quiz: by MyThemeShop β 1.1.0
Yoast SEO: by Team Yoast β 5.8
Advanced Sidebar Menu: by Mat Lipe β 7.0.1
Compress JPEG & PNG images: by TinyPNG β 2.2.6
Contact Form 7: by Takayuki Miyoshi β 4.9.2
Google XML Sitemaps: by Arne Brachhold β 4.0.9
Name: Children in Crossfire
Version: 1.1
Author URL:
Child Theme: Yes
Parent Theme Name: White Whale Framework
Parent Theme Version: 1.0.0
Parent Theme Author URL: http://whitewhaleweb.com
Thanks for reporting. @raftaar1191 is looking into it asap.
@hahn208 @DevinWalker I have tried to reproduce this issue with the latest code of Give 1.8.18 branch and the current version of Give 1.8.17, but I couldn't reproduce this issue.

@emgk It looks like you used his reproduce steps... but on 1.8.18 - can you verify the bug in the current release version of 1.8.17?
Yes @DevinWalker, I have tested it with Give version 1.8.17 but couldn't able to reproduce it.
It looks like the issue stemmed from a line of JS that I added on DOM loaded document.querySelector('#billing_country').selectedIndex=0; which sets the country to none by default. I added a trigger to fire the onchange event on that element, which has fixed the problem.
Thanks for following up!
Most helpful comment
Thanks for reporting. @raftaar1191 is looking into it asap.