Validation Error on Checkout
-
I am receiving messages from customers saying that they are getting the error “Billing State / County is a required field.” even though the Billing State / County has been entered with a valid State.
I have seen a few issues with this relating to the Paypal Payment Gateway, but the error is when entering the Billing Details and is BEFORE any payment details are entered.
I have narrowed down the steps to reproduce the error:
1. Place any product in the Basket
2. Show the Basket
3. Proceed to Checkout
4. Fill in First Name, Last Name, Country (e.g. United States), Street Address, Town/City, State/County (e.g. California), Postcode/ZIP (e.g. 94230), email address.
5. Click Next – This should now go to the Billing Details screen.
6. Click Back To Basket
7. Click Proceed to Checkout
8. Click Next
— Error “Billing State / County is a required field.”The error can be “cleared” by changing the Country to (for example) United Kingdom, clicking Next and then going back to change it back to United States and re-entering the State with the same details as before.
Obviously, this is not something I can ask my customers to do!!I am using:
Wordpress 5.5.1
WooCommerce 4.5.2
Theme: OceanWPChild, a child theme of OceanWP 1.9.0Any help would be greatly appreciated
The page I need help with: [log in to see the link]
-
I have also discovered that even if you remove everything from the basket and then start again, the Billing Details are retained (presumably in a cookie or the browser’s cache?) and automatically filled in and still produce the error when clicking Next…
-
This reply was modified 4 years, 5 months ago by
newtong64.
Hi there,
Just to check: Are you using any checkout field editor plugins? Is the checkout page template being overridden by a custom one in your child theme? If you’re unsure, please share a copy of your status report here as found under **WooCommerce > Status** in order for us to check from our side.
Thanks!
Hi there.
Thank you for your reply.
I am using “Flexible Checkout Fields” by WP Desk.I have checked with the Ocean WP authors and they replied with:
“OceanWP doesn’t check nor validate ZIP codes or countries, we only mainly cover the layout and design, and when a client enters a ZIP code unfamiliar to the records WooCommerce has, then this error occurs. Try making the State field not required, and see if anything changes.”The State field is already marked as not required, but it still comes up with the error!
Here is the status report…
### WordPress Environment ### WordPress address (URL): https://www.prettystitchmarkers.com Site address (URL): https://www.prettystitchmarkers.com WC Version: 4.5.2 REST API Version: ? 4.5.2 WC Blocks Version: ? 3.5.0 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 1.5.0 Log Directory Writable: ? WP Version: 5.5.1 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.20 PHP Post Max Size: 128 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1g-fips SUHOSIN Installed: – MySQL Version: 5.7.26-29-log Max Upload Size: 128 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 4.5.2 WC Database Prefix: _OO7_ Total Database Size: 8.93MB Database Data Size: 7.33MB Database Index Size: 1.60MB _OO7_woocommerce_sessions: Data: 0.52MB + Index: 0.04MB + Engine MyISAM _OO7_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_order_items: Data: 0.01MB + Index: 0.01MB + Engine MyISAM _OO7_woocommerce_order_itemmeta: Data: 0.17MB + Index: 0.08MB + Engine MyISAM _OO7_woocommerce_tax_rates: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_actionscheduler_actions: Data: 0.03MB + Index: 0.03MB + Engine MyISAM _OO7_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_actionscheduler_logs: Data: 0.02MB + Index: 0.02MB + Engine MyISAM _OO7_adtribes_my_conversions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_b2s_posts: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_b2s_posts_drafts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_b2s_posts_favorites: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_b2s_posts_network_details: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_b2s_posts_sched_details: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_b2s_user: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_b2s_user_contact: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_b2s_user_network_settings: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_commentmeta: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_comments: Data: 0.05MB + Index: 0.02MB + Engine MyISAM _OO7_duplicator_packages: Data: 0.03MB + Index: 0.02MB + Engine InnoDB _OO7_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_nextend2_image_storage: Data: 0.02MB + Index: 0.02MB + Engine InnoDB _OO7_nextend2_section_storage: Data: 0.02MB + Index: 0.09MB + Engine InnoDB _OO7_nextend2_smartslider3_generators: Data: 0.02MB + Index: 0.00MB + Engine InnoDB _OO7_nextend2_smartslider3_sliders: Data: 0.02MB + Index: 0.03MB + Engine InnoDB _OO7_nextend2_smartslider3_sliders_xref: Data: 0.02MB + Index: 0.02MB + Engine InnoDB _OO7_nextend2_smartslider3_slides: Data: 0.05MB + Index: 0.13MB + Engine InnoDB _OO7_nm_personalized: Data: 0.06MB + Index: 0.00MB + Engine MyISAM _OO7_options: Data: 2.91MB + Index: 0.09MB + Engine MyISAM _OO7_postmeta: Data: 2.09MB + Index: 0.45MB + Engine MyISAM _OO7_posts: Data: 0.44MB + Index: 0.08MB + Engine MyISAM _OO7_termmeta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM _OO7_terms: Data: 0.01MB + Index: 0.04MB + Engine MyISAM _OO7_term_relationships: Data: 0.03MB + Index: 0.06MB + Engine MyISAM _OO7_term_taxonomy: Data: 0.01MB + Index: 0.01MB + Engine MyISAM _OO7_tinvwl_analytics: Data: 0.02MB + Index: 0.02MB + Engine InnoDB _OO7_tinvwl_items: Data: 0.02MB + Index: 0.00MB + Engine InnoDB _OO7_tinvwl_lists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB _OO7_tm_taskmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_tm_tasks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_usermeta: Data: 0.05MB + Index: 0.02MB + Engine MyISAM _OO7_users: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_wcpdf_invoice_number: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_admin_notes: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_category_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_customer_lookup: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_order_product_lookup: Data: 0.02MB + Index: 0.02MB + Engine MyISAM _OO7_wc_order_stats: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_wc_order_tax_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_product_meta_lookup: Data: 0.02MB + Index: 0.03MB + Engine MyISAM _OO7_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wc_tax_rate_classes: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM _OO7_wpforms_tasks_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM _OO7_yoast_indexable: Data: 0.58MB + Index: 0.10MB + Engine MyISAM _OO7_yoast_indexable_hierarchy: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM _OO7_yoast_primary_term: Data: 0.01MB + Index: 0.01MB + Engine MyISAM _OO7_yoast_seo_links: Data: 0.03MB + Index: 0.01MB + Engine MyISAM _OO7_yoast_seo_meta: Data: 0.01MB + Index: 0.02MB + Engine MyISAM ### Post Type Counts ### attachment: 467 b2s_ex_post: 1 custom_css: 2 elementor_library: 1 feedback: 11 nav_menu_item: 30 oceanwp_library: 2 oembed_cache: 4 page: 14 popup_theme: 8 post: 5 product: 161 product_variation: 40 shop_coupon: 5 shop_order: 50 shop_order_refund: 1 site-review: 2 sp_wcslider: 1 wcps: 1 wcps_layout: 6 wpb_wcs_shortcode: 1 wpforms: 6 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (38) ### Blog2Social: Social Media Auto Post & Scheduler: by Blog2Social Adenion – 6.5.1 Coming Soon Page, Under Construction & Maintenance Mode by SeedProd: by SeedProd – 5.1.3 GDPR Cookie Consent: by WebToffee – 1.9.1 Duplicator: by Snap Creek – 1.3.38 Elementor: by Elementor.com – 3.0.11 Flexible Checkout Fields: by WP Desk – 2.5.7 Flexible Shipping: by WP Desk – 3.14.2 Gallery Custom Links: by Jordy Meow – 1.2.7 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 7.12.3 Insert Headers and Footers: by WPBeginner – 1.4.6 Jetpack by WordPress.com: by Automattic – 8.9.1 Ocean Elementor Widgets: by OceanWP – 1.2.3 Ocean Extra: by OceanWP – 1.6.6 Ocean Footer Callout: by OceanWP – 1.1.0 Ocean Hooks: by OceanWP – 1.1.3 Ocean Popup Login: by OceanWP – 1.2.0 Ocean Posts Slider: by OceanWP – 1.1.0 Ocean Pro Demos: by OceanWP – 1.1.1 Ocean Product Sharing: by OceanWP – 1.1.0 – Installed version not tested with active version of WooCommerce 4.5.2 Ocean Social Sharing: by OceanWP – 1.1.0 Ocean Sticky Header: by OceanWP – 1.2.0 Ocean Woo Popup: by OceanWP – 1.0.7 – Installed version not tested with active version of WooCommerce 4.5.2 OptinMonster API: by OptinMonster Team – 1.9.16 SG Optimizer: by SiteGround – 5.6.7 Site Reviews: by Paul Ryley – 4.7.0 TI WooCommerce Wishlist: by TemplateInvaders – 1.21.10 Title Remover: by WPGurus – 1.2.1 Trustpilot-reviews: by Trustpilot – 2.5.808 – Installed version not tested with active version of WooCommerce 4.5.2 WooCommerce Blocks: by Automattic – 3.5.0 Product Feed PRO for WooCommerce: by AdTribes.io – 8.8.8 WooCommerce Stripe Gateway: by WooCommerce – 4.5.2 – Installed version not tested with active version of WooCommerce 4.5.2 WooCommerce PDF Invoices & Packing Slips: by Ewout Fernhout – 2.6.1 PPOM for WooCommerce by N-MEDIA: by Najeeb Ahmad – 20.5 – Installed version not tested with active version of WooCommerce 4.5.2 WooCommerce: by Automattic – 4.5.2 WordPress Importer: by wordpressdotorg – 0.7 Yoast SEO: by Team Yoast – 15.0 WPB WooCommerce Category Slider PRO: by wpbean – 1.2.3 WPForms Lite: by WPForms – 1.6.2.3 ### Inactive Plugins (2) ### WooCommerce Multi-Step Checkout: by SilkyPress – 2.11 – Installed version not tested with active version of WooCommerce 4.5.2 WooCommerce PayPal Checkout Gateway: by WooCommerce – 2.1.0 ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: – ### WC Pages ### Shop base: ? Page ID is set but the page does not exist Basket: #160 - /cart/ Checkout: #161 - /checkout/ My account: #162 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: OceanWPChild Version: 1.0 Author URL: Child Theme: ? Parent Theme Name: OceanWP Parent Theme Version: 1.9.0 Parent Theme Author URL: https://oceanwp.org/about-me/ WooCommerce Support: ? ### Templates ### Overrides: oceanwp/woocommerce/cart/mini-cart.php oceanwp/woocommerce/content-single-product.php oceanwp/woocommerce/loop/loop-start.php oceanwp/woocommerce/single-product/title.php ### TI WooCommerce Wishlist Templates ### Overrides: – ### Action Scheduler ### Complete: 107 Oldest: 2020-09-24 08:23:33 +0000 Newest: 2020-10-07 00:44:55 +0000 Pending: 2 Oldest: 2020-10-07 16:29:16 +0000 Newest: 2020-10-08 00:44:55 +0000
Kind regards,
GrahamHi @newtong64. I’m sorry that we missed your reply. To figure out the cause of the issue, I recommend doing conflict testing on your site following this guide.
You may have already solved the issue. If there is no update on this thread within the next week, we will go ahead and resolve the thread. In that case, please feel free to start a new thread if you have additional questions.
-
This reply was modified 4 years, 5 months ago by
- The topic ‘Validation Error on Checkout’ is closed to new replies.