Mandatory fields invalid validated
-
I am using the latest WordPress and latest Woocommerce.
I have a very strange behaviour.
In the checkoutform a number of fields are mandatory but despite that I have filled them in Woocommerce complains that they have to be filled in. The fields are not marked as invalid in read, just the a text is shown. Some of the fields involved is billing_address_1, billing_state, billing_zip.The strange thing is that this is not the case if the user is logged in. Then everything works fine. I have tried turning the cache and security plugins off but no difference.
This happens on one of my sites all the time and I have managed to reproduce it once on another site.
What might cause the problem?
It has not been that before. I have just moved the site from one webhotell to another using Updraft Plus. I have moved other sites the same way without getting any problem.The page I need help with: [log in to see the link]
-
I have noticed that the fields it complains about is not part of billing.
It looks like this:
Address 1 m?ste fyllas i.
Stat m?ste fyllas i.
Zip m?ste fyllas i.
Day Phone m?ste fyllas i.And if I leaf for example last name by purpose emtpy it says:
Fakturering Efternamn m?ste fyllas i.m?ste fyllas i is swedish for have to be entered.
Fakturering is Billing.
Efternamn is last name.The fields it complains about were are they in the form?
I understand the billing fields are showing the following errors even after you’ve entered valid information in it:
`
Address 1 must be entered.
City must be filled in.
State must be filled in.
Zip must be filled in.
Day Phone must be filled in.
I was able to replicate this behavior on your site. Could you please share a copy of your site’s System Status to understand how it is configured? You can find it via WooCommerce > Status.
Select “Get system report” and then “Copy for support”.? Once you’ve done that, paste it here in your response.Thanks!
Here are the report!
The strange thing is that if I by purpose leave for example the Gatuadress empty then it says “Fakturering Gatuadress mast be filled in” not just Adress 1. What is Adress 1 and what is Fakturering Gatuadress? What is the difference.
### WordPress Environment ###
WordPress address (URL): https://navigationsakademien.com
Site address (URL): https://navigationsakademien.com
WC Version: 4.5.2
REST API Version: ? 4.5.2
WC Blocks Version: ? 3.1.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: 205 MB
WP Debug Mode: –
WP Cron: ?
Language: sv_SE
External object cache: –### Server Environment ###
Server Info: Apache
PHP Version: 7.4.11
PHP Post Max Size: 256 MB
PHP Time Limit: 50
PHP Max Input Vars: 5000
cURL Version: 7.58.0
OpenSSL/1.1.1SUHOSIN Installed: –
MySQL Version: 5.5.5-10.3.25-MariaDB-1:10.3.25+maria~bionic
Max Upload Size: 256 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: www_
Total databasstorlek: 41.75MB
Datastorlek f?r databas: 28.66MB
Indexstorlek f?r databas: 13.09MB
www_woocommerce_sessions: Data: 0.19MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_order_itemmeta: Data: 0.09MB + Index: 0.09MB + Motor InnoDB
www_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Motor InnoDB
www_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_aiowps_events: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_aiowps_failed_logins: Data: 0.19MB + Index: 0.00MB + Motor InnoDB
www_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_aiowps_login_activity: Data: 0.06MB + Index: 0.00MB + Motor InnoDB
www_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_commentmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_comments: Data: 0.06MB + Index: 0.09MB + Motor InnoDB
www_ewwwio_images: Data: 0.13MB + Index: 0.11MB + Motor InnoDB
www_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_formmaker: Data: 0.09MB + Index: 0.00MB + Motor InnoDB
www_formmaker_backup: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_formmaker_blocked: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_formmaker_display_options: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_formmaker_query: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_formmaker_sessions: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_formmaker_submits: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_formmaker_themes: Data: 0.14MB + Index: 0.00MB + Motor InnoDB
www_formmaker_views: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_frm_fields: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_frm_forms: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_frm_items: Data: 0.28MB + Index: 0.08MB + Motor InnoDB
www_frm_item_metas: Data: 1.52MB + Index: 0.22MB + Motor InnoDB
www_links: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_options: Data: 2.45MB + Index: 0.17MB + Motor InnoDB
www_postmeta: Data: 9.50MB + Index: 1.88MB + Motor InnoDB
www_posts: Data: 4.52MB + Index: 0.28MB + Motor InnoDB
www_statistics_exclusions: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_statistics_historical: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_statistics_pages: Data: 1.52MB + Index: 5.16MB + Motor InnoDB
www_statistics_search: Data: 0.06MB + Index: 0.08MB + Motor InnoDB
www_statistics_useronline: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_statistics_visit: Data: 0.06MB + Index: 0.02MB + Motor InnoDB
www_statistics_visitor: Data: 2.52MB + Index: 3.02MB + Motor InnoDB
www_termmeta: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_terms: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_term_relationships: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_usermeta: Data: 0.05MB + Index: 0.03MB + Motor InnoDB
www_users: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_download_log: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Motor InnoDB
www_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wfBadLeechers: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfBlockedCommentLog: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfBlockedIPLog: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfBlocks7: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_wfConfig: Data: 0.30MB + Index: 0.00MB + Motor InnoDB
www_wfCrawlers: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfFileChanges: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfFileMods: Data: 1.52MB + Index: 0.00MB + Motor InnoDB
www_wfHits: Data: 0.13MB + Index: 0.05MB + Motor InnoDB
www_wfHoover: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wfIssues: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_wfKnownFileList: Data: 1.52MB + Index: 0.00MB + Motor InnoDB
www_wfLeechers: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfLocs: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfLogins: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_wfNet404s: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_wfNotifications: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfPendingIssues: Data: 0.02MB + Index: 0.06MB + Motor InnoDB
www_wfReverseCache: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfScanners: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_wfSNIPCache: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_wfStatus: Data: 0.05MB + Index: 0.03MB + Motor InnoDB
www_wfVulnScanners: Data: 0.02MB + Index: 0.00MB + Motor InnoDB
www_yoast_indexable: Data: 0.11MB + Index: 0.08MB + Motor InnoDB
www_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Motor InnoDB
www_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Motor InnoDB
www_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Motor InnoDB
www_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Motor InnoDB
www_yoast_seo_meta: Data: 0.06MB + Index: 0.00MB + Motor InnoDB### Post Type Counts ###
attachment: 69
custom_css: 2
customize_changeset: 11
elementor_library: 21
fmemailverification: 1
form-maker: 1
frm_form_actions: 1
frm_styles: 1
nav_menu_item: 14
oembed_cache: 1
page: 38
post: 2
product: 42
revision: 1221
shop_coupon: 3
shop_order: 79### Security ###
Secure connection (HTTPS): ?
Hide errors from visitors: ?### Active Plugins (19) ###
All In One WP Security: av Tips and Tricks HQ
Peter Petreski
Ruhul
Ivy – 4.4.4Autocomplete WooCommerce Orders: av QuadLayers – 1.3.4
Autoptimize: av Frank Goossens (futtta) – 2.7.8
Classic Editor: av WordPress Contributors – 1.6
Disable REST API: av Dave McHale – 1.5.1
Elementor: av Elementor.com – 3.0.11
EWWW Image Optimizer: av Exactly WWW – 5.7.1
Formidable Forms: av Strategy11 – 4.07.01
GA Google Analytics: av Jeff Starr – 20200815
Really Simple SSL: av Really Simple Plugins – 3.3.5
Page Builder by SiteOrigin: av SiteOrigin – 2.11.5
UpdraftPlus – Backup/Restore: av UpdraftPlus.Com
DavidAnderson – 1.16.29Checkout Field Editor for WooCommerce: av ThemeHigh – 1.4.4
Woo Variations Table: av Alaa Rihan – 2.2.0 – Den installerade versionen har inte testats med den aktiva versionen av WooCommerce 4.5.2
WooCommerce: av Automattic – 4.5.2
WordPress phpinfo(): av Chris Flannagan – 16.3
Yoast SEO: av Team Yoast – 15.1
WP-Members: av Chad Butler – 3.3.6
WP Statistics: av VeronaLabs – 12.6.13### Inactive Plugins (3) ###
Scalable Vector Graphics (SVG): av Sterling Hamilton – 3.4
ThemeGrill Demo Importer: av ThemeGrill – 1.6.7
WP Super Cache: av Automattic – 1.7.1### Settings ###
API Enabled: –
Force SSL: –
Currency: SEK (kr)
Currency Position: right_space
Thousand Separator:
Decimal Separator: .
Number of Decimals: 0
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 ###
Butikbas: #4 – /butik/
Varukorg: #5 – /varukorg/
Kassan: #6 – /kassan/
Mitt konto: #7 – /mitt-konto/
Allm?nna villkor: #437 – /kopvillkor/### Theme ###
Name: Flash Child Theme
Version: 1.0
Author URL: https://themegrill.com
Child Theme: ?
Parent Theme Name: Flash
Parent Theme Version: 1.3.8
Parent Theme Author URL: https://themegrill.com
WooCommerce Support: ?### Templates ###
Overrides: flash-child/woocommerce/emails/customer-completed-order.php
### Action Scheduler ###
F?rdigbehandlad: 38
Oldest: 2020-09-17 19:56:52 +0200
Newest: 2020-10-14 11:06:07 +0200V?ntar: 1
Oldest: 2020-10-18 16:38:37 +0200
Newest: 2020-10-18 16:38:37 +0200`
Thank you for the system status report. I see that you are using Checkout Field Editor for WooCommerce: av ThemeHigh – 1.4.4 plugin, is it possible that there are some settings in it that might be causing this errors?
Usually, isolated behavior like what you describe and which has not displayed during our cross-testing can be related to code with another plugin or a theme that is causing a potential conflict of some kind.
This kind of problem is usually caused by either a conflict with your theme or with another plugin.
?
The best way to determine this is to:- Temporarily switch your theme to Storefront
- Disable all plugins except for WooCommerce
- Repeat the action that is causing the problem
If you’re not seeing the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.
I tought that that would be the answer. ??
The checkout editor is installed to help solving the problem. I had code in the functions.php file with unset field lines for non wanted fields. But to check if there was something wrong with that code I installed the plugin.The strange thing is if I switch to the default WordPress Theme, Twenty Twenty, and disable the plugin I get some additional fields visible.
Below the field More information I get
Notes,
Adress 1,
Adress 2,
City,
State,
Zip,
County,
Day PhoneBut above the More information line
Gatuaderess,
Ort,
TelfonIs visible.
I can not attach a screenshot here but it looks like there are some fields that is multiple inserted and not visible using the Flash theme but visible using the default theme, It is the unvisible fields that is causing the problem.
And if I am logged in with the plugin active and the flash theme everything is working fine.With the Storefront theme the additional fields are visible with the plugin activated.
I’m not quite sure if I understand your test result. To confirm does the checkout work fine when you disable all the plugins except WooCommerce and switch the theme to Storefront? You mentioned there are additional fields displaying on the checkout page when you do the conflict test. If you don’t already have a screenshot service installed, here are a few options:
* https://awesomescreenshot.com/ There is also a walkthrough guide here: https://en.support.wordpress.com/make-a-screenshot/.
In this picture you can see the duplicate fields that is visible if using the WordPress default theme or the Storefront theme, https://snipboard.io/i6DVa0.jpg
They are not visible using the Flash theme.
One more thing, the duplicate fields is the once visible bellow Mer information
Ort and City is the same as well as Gatuadress (not visible in screenshot) and Adress 1Now I have figured out that it is the plugin WP Members plugin that was the cause of the problem.
Disableing it solved it.
Hi @erikture
I’m glad you were able to identify the source of the problem. I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
- The topic ‘Mandatory fields invalid validated’ is closed to new replies.