WooCommerce Product Variations – The variation is a required field
-
Hi there,
For all product variations on my WooCommerce site, I am getting the following error:
“Date of course is a required field”
As shown here:
https://snipboard.io/q4te2g.jpg
After looking into this further, I have checked the variations and added a variation with a price as shown below:
https://snipboard.io/tDN1da.jpg
The strange thing that happens here though is that when I set the above values and click on ‘Save Changes’, all three selections revert back to ‘Any Date of course…’
I tested this on my local and this is working fine, I don’t get this error. So I am thinking it’s an issue with a setting on the server possibly?
Has anybody come across this issue? If so, how would this be resolved?
Thanks in advance!
The page I need help with: [log in to see the link]
-
Hello,
I tested this on my local and this is working fine
Do you have the same plugins and theme on your test environment? Can you also clear transients and cache in WooCommerce > Status > Tools and check again?
Hi, I’ve just tried that and it’s the same, I can confirm I have the same plugins on both local and live site.
Hi,
Thank you for the update. Could you please share a copy of your site’s System Status? 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.
Here we go:
### WordPress Environment ### WordPress address (URL): https://www.souterstraining.com Site address (URL): https://www.souterstraining.com WC Version: 5.1.0 REST API Version: ? 5.1.0 WC Blocks Version: ? 4.4.3 Action Scheduler Version: ? 3.1.6 WC Admin Version: ? 2.0.2 Log Directory Writable: ? WP Version: 5.7 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.2.34 PHP Post Max Size: 512 MB PHP Time Limit: 180 PHP Max Input Vars: 5000 cURL Version: 7.75.0 OpenSSL/1.1.1k SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.28-MariaDB Max Upload Size: 2 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.1.0 WC Database Prefix: wp_ Total Database Size: 23.34MB Database Data Size: 16.74MB Database Index Size: 6.60MB wp_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.08MB + Index: 0.11MB + Engine InnoDB wp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_logs: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_c2c_config: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp_learndash_pro_quiz_category: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_form: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_learndash_pro_quiz_lock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_master: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_prerequisite: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_question: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_learndash_pro_quiz_statistic: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_statistic_ref: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_learndash_pro_quiz_template: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_pro_quiz_toplist: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_learndash_user_activity: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wp_learndash_user_activity_meta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_options: Data: 2.36MB + Index: 0.13MB + Engine InnoDB wp_pmxi_files: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_hash: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_pmxi_history: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_images: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_pmxi_imports: Data: 0.08MB + Index: 0.00MB + Engine InnoDB wp_pmxi_posts: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp_pmxi_templates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 5.52MB + Index: 3.78MB + Engine InnoDB wp_posts: Data: 5.52MB + Index: 0.36MB + Engine InnoDB wp_rank_math_404_logs: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_links: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_rank_math_internal_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_rank_math_redirections: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_rank_math_redirections_cache: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_redirection_items: Data: 0.09MB + Index: 0.09MB + Engine InnoDB wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_smush_dir_images: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_term_relationships: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 0.08MB + Index: 0.09MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yith_wcwl_lists: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_indexable: Data: 0.20MB + Index: 0.22MB + Engine InnoDB wp_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_yoast_seo_links: Data: 0.11MB + Index: 0.11MB + Engine InnoDB ### Post Type Counts ### acf-field: 99 acf-field-group: 9 attachment: 340 nav_menu_item: 9 oembed_cache: 1 page: 84 post: 61 product: 209 product_variation: 8 revision: 934 shop_order: 30 tablepress_table: 8 testimonials: 3 wpcf7_contact_form: 4 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (20) ### Premmerce Permalink Manager for WooCommerce: by premmerce – 2.3.1 Advanced Custom Fields PRO: by Elliot Condon – 5.9.5 Akismet Anti-Spam: by Automattic – 4.1.9 All-in-One WP Migration Unlimited Extension: by ServMask – 2.39 All-in-One WP Migration: by ServMask – 7.40 Classic Editor: by WordPress Contributors – 1.6 Contact Form 7 - Dynamic Text Extension: by Chris Mavricos SevenSpark – 2.0.3 Honeypot for Contact Form 7: by Nocean – 2.0.5 Contact Form 7: by Takayuki Miyoshi – 5.4 Site Kit by Google: by Google – 1.29.0 Paymentsense Gateway for WooCommerce: by Paymentsense – 3.0.34 Really Simple SSL: by Really Simple Plugins – 4.0.13 Redirection: by John Godley – 5.0.1 Rank Math SEO: by Rank Math – 1.0.61.1 TablePress: by Tobias B?thge – 1.13 Tawk.to Live Chat: by Tawkto – 0.5.3 WooCommerce: by Automattic – 5.1.0 WP Rocket: by WP Media – 3.1.3.2 Smush Pro: by WPMU DEV – 3.8.4 WPMU DEV Dashboard: by WPMU DEV – 4.10.7 ### Inactive Plugins (1) ### YITH WooCommerce Wishlist: by YITH – 3.0.20 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### 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: #7 - /shop/ Basket: #8 - /cart/ Checkout: #9 - /checkout/ My account: #10 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Souters Version: 1.0.0 Author URL: https://silvawebdesigns.com Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: souters/woocommerce/archive-product.php souters/woocommerce/cart/proceed-to-checkout-button.php souters/woocommerce/content-single-product.php souters/woocommerce/loop/loop-start.php souters/woocommerce/single-product/related.php souters/woocommerce/single-product.php ### Action Scheduler ### Complete: 168 Oldest: 2021-03-10 13:13:41 +0000 Newest: 2021-04-05 18:28:16 +0000 ### Status report information ### Generated at: 2021-04-06 07:26:00 +00:00
It looks like you’ve removed variations from the product. Does the same issue occur when you re-add attribute?
I have the same version of WooCommerce and WordPress installed on my test site and variable products are working properly. If the issue still persists on your site, I believe it’s caused by something that’s unique to your store (e.g. custom code if not conflict with plugin or theme).
We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
- The topic ‘WooCommerce Product Variations – The variation is a required field’ is closed to new replies.