Attributes get deleted on Save of product
-
We are facing the issue that attributes set for variations are getting deleted on save of product. But it not delete on every save. when we add attributes first time, and create variations, these are saved very well. But if we make any change in variation either price or any other field and then try to save the product, the attributes get deleted this time.
Please review the case on your level for variation, try to edit variation you will face it on second or third save.
-
Hi @sunildhanda
Thanks for reaching out!
I understand that the attributes used for variations are deleted once you modify them on a second or third save, is that correct?
This is weird as I have not faced this issue before when modifying attributes on my site.
I’d like to understand your site properly, can you please share your System Status Report, that will help us further troubleshoot.
You can find it via
WooCommerce > Status
. SelectGet system report
and thenCopy for support
. Once you’ve done that, you can paste it into your reply here.Yes you understand correctly, the system report as follow:
### WordPress Environment ### WordPress address (URL): http://localhost/wordpress602 Site address (URL): http://localhost/wordpress602 WC Version: 6.7.0 REST API Version: ✔ 6.7.0 WC Blocks Version: ✔ 7.8.3 Action Scheduler Version: ✔ 3.4.0 Log Directory Writable: ✔ WP Version: 6.0.3 WP Multisite: – WP Memory Limit: 256 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache/2.4.51 (Win64) PHP/7.4.26 PHP Version: 7.4.26 PHP Post Max Size: 8 MB PHP Time Limit: 120 PHP Max Input Vars: 2500 cURL Version: 7.70.0 OpenSSL/1.1.1l SUHOSIN Installed: – MySQL Version: 5.7.36 Max Upload Size: 8 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 6.7.0 WC Database Prefix: wp602_ Total Database Size: 25.72MB Database Data Size: 20.95MB Database Index Size: 4.77MB wp602_woocommerce_sessions: Data: 0.23MB + Index: 0.02MB + Engine InnoDB wp602_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp602_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp602_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp602_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_actionscheduler_actions: Data: 0.25MB + Index: 0.20MB + Engine InnoDB wp602_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_actionscheduler_logs: Data: 0.17MB + Index: 0.14MB + Engine InnoDB wp602_aioseo_cache: Data: 0.14MB + Index: 0.03MB + Engine InnoDB wp602_aioseo_notifications: Data: 0.03MB + Index: 0.06MB + Engine InnoDB wp602_aioseo_posts: Data: 0.19MB + Index: 0.02MB + Engine InnoDB wp602_aioseo_redirects: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wp602_aioseo_redirects_404: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_aioseo_redirects_404_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_aioseo_redirects_hits: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_aioseo_redirects_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp602_aioseo_terms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wp602_layerslider: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_layerslider_revisions: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_options: Data: 1.39MB + Index: 0.08MB + Engine InnoDB wp602_postmeta: Data: 2.52MB + Index: 1.97MB + Engine InnoDB wp602_posts: Data: 0.33MB + Index: 0.27MB + Engine InnoDB wp602_termmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wp602_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_usermeta: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp602_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp602_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wp602_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp602_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp602_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp602_wc_product_attributes_lookup: Data: 0.08MB + Index: 0.08MB + Engine InnoDB wp602_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wc_product_meta_lookup: Data: 0.08MB + Index: 0.13MB + Engine InnoDB wp602_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp602_wfconfig: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp602_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wffilemods: Data: 7.52MB + Index: 0.00MB + Engine InnoDB wp602_wfhits: Data: 0.27MB + Index: 0.05MB + Engine InnoDB wp602_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp602_wfknownfilelist: Data: 3.52MB + Index: 0.00MB + Engine InnoDB wp602_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wflogins: Data: 0.16MB + Index: 0.03MB + Engine InnoDB wp602_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp602_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp602_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp602_wfstatus: Data: 0.16MB + Index: 0.13MB + Engine InnoDB wp602_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp602_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB ### Post Type Counts ### attachment: 376 nav_menu_item: 14 page: 14 post: 1 product: 35 product_variation: 389 revision: 32 shop_order: 17 wp_global_styles: 1 ### Security ### Secure connection (HTTPS): ❌ Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates. Hide errors from visitors: ✔ ### Active Plugins (23) ### LayerSlider WP: by Kreatura Media – 6.11.2 Add From Server: by Dion Hulse – 3.4.5 All in One SEO Pro: by All in One SEO Team – 4.2.6 All-in-One WP Migration Unlimited Extension: by ServMask – 2.46 All-in-One WP Migration: by ServMask – 7.66 Authorize.net Payment Gateway For WooCommerce: by Eshan Varma – 6.8 Classic Editor: by WordPress Contributors – 1.6.2 Classic Widgets: by WordPress Contributors – 0.3 Cookie Notice & Compliance for GDPR / CCPA: by Hu-manity.co – 2.4.1 Facebook for WooCommerce: by Facebook – 2.6.19 Google Analytics for WordPress by MonsterInsights: by MonsterInsights – 8.9.1 Jetpack: by Automattic – 11.1.1 ThemeHunk MegaMenu Plus: by Themehunk – 1.0.7 Unyson: by ThemeFuse – 2.7.27 Product Feed PRO for WooCommerce: by AdTribes.io – 11.8.9 WooCommerce Authorize.Net Gateway: by SkyVerge – 3.7.2 WooCommerce Shipping & Tax: by WooCommerce – 1.26.3 WooCommerce USPS Shipping: by WooCommerce – 4.4.22 WooCommerce Variation Swatches and Photos: by Lucas Stark – 2.1.5 WooCommerce: by Automattic – 6.7.0 (update to version 7.0.0 is available) Wordfence Security: by Wordfence – 7.7.1 WPDE Categories Widget: by WPDE – 1.5.2 WPForms Lite: by WPForms – 1.7.5.5 ### Inactive Plugins (1) ### Lockdown WP Admin: by Sean Fisher – 2.3.2 ### Settings ### API Enabled: – Force SSL: – Currency: USD ($) 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: – Enforce Approved Product Download Directories: – ### WC Pages ### Shop base: #7 - /shop/ Cart: #8 - /cart/ Checkout: #9 - /checkout/ My account: #10 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Property Two Version: 1.0 Author URL: https://websiteservice4all.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 ### Archive Template: Your theme has a woocommerce.php file you will not be able to override the woocommerce/archive-product.php custom template since woocommerce.php has priority over archive-product.php. This is intended to prevent display issues. Overrides: propertytwo/woocommerce/content-product.php propertytwo/woocommerce/content-single-product.php propertytwo/woocommerce/emails\email-footer.php propertytwo/woocommerce/emails\email-header.php propertytwo/woocommerce/emails\email-order-items.php propertytwo/woocommerce/loop\add-to-cart.php propertytwo/woocommerce/loop\price.php propertytwo/woocommerce/loop\rating.php propertytwo/woocommerce/single-product\add-to-cart\simple.php propertytwo/woocommerce/single-product\product-image.php propertytwo/woocommerce/single-product\related.php propertytwo/woocommerce/single-product\short-description.php propertytwo/woocommerce/single-product\tabs\description.php propertytwo/woocommerce/single-product.php ### Authorize.Net Credit Card ### Environment: Production Tokenization Enabled: – Debug Mode: Off Webhooks Enabled: ❌ Not generated ### Admin ### Enabled Features: activity-panels analytics coupons customer-effort-score-tracks experimental-products-task experimental-import-products-task experimental-fashion-sample-products experimental-product-tour homescreen marketing mobile-app-banner navigation onboarding onboarding-tasks remote-inbox-notifications remote-free-extensions payment-gateway-suggestions shipping-label-banner subscriptions store-alerts transient-notices wc-pay-promotion wc-pay-welcome-page wc-pay-subscriptions-page Disabled Features: minified-js settings Daily Cron: ✔ Next scheduled: 2022-10-19 15:17:22 +00:00 Options: ✔ Notes: 68 Onboarding: completed ### Action Scheduler ### Complete: 702 Oldest: 2022-10-03 16:30:00 +0000 Newest: 2022-10-19 14:07:37 +0000 Pending: 13 Oldest: 2022-10-19 14:22:17 +0000 Newest: 2022-10-25 21:15:26 +0000 ### Status report information ### Generated at: 2022-10-19 14:18:47 +00:00
Hello,
Thanks for providing the system report.
WC Version: 6.7.0
The first step is, you can update your WooCommerce to the latest version.
Then you can navigate to WooCommerce > status > tools > update database.
If the issue persists, you can switch your theme to Storefront, and deactivate all plugins except WooCommerce. As explained on our Self Service Guide.
Does this make a difference? Please let us know how that goes.
@ihereira we updated the WooCommerce and Facebook for Woocommerce. But the problem remains same. In the meantime I deactivate all plugins and activate one by one and analyze that the coflict occur when the Facebook for Woocommerce activated with ThemeHunk MegaMenu Plus. Stand alone its working fine when both plugins are activated separately. The problem start when these two plugins activated with woocommerce. Now we only have three plugins active, woocommerce, Facebook and ThemeHunk MegaMenu Plus. So please review it technically whats wrong with plugin and get effect woocommerce with Menu plugin.
I am also a developer and looking within these two plugins. Please take a look, we have to solve it immediately, since we are adding products and client getting update with that the attrubutes get removed again and again. So please help us soon. I hope we to look the on save actions and filters.
Hello,
May I ask, can you please share a copy of any fatal error log found under WooCommerce > System Status > Logs (if any). Thanks.
No logs for today under, Woo->Logs, and not such fatal error in php error logs.
Hi @sunildhanda
I understand that Facebook for WooCommerce and ThemeHunk MegaMenu Plus are working fine when both are activated, however, when you activate WooCommerce, there arises a problem.
WC Version: 6.7.0 Facebook for WooCommerce: by Facebook – 2.6.19
Can you please try to update these plugins to their latest versions and see if this resolves the issue?
Let us know how it goes!
I already replied that I have updated all plugins. There is no update available. Please dignose the plugin what it making issue with a mega menu plugin, the plugin you guys are providing to woocommerce, then why its affected with a menu plugin, please dignose it and let me know for a fix asap.
Hi there @sunildhanda 👋
Please dignose the plugin what it making issue with a mega menu plugin, the plugin you guys are providing to woocommerce, then why its affected with a menu plugin, please dignose it and let me know for a fix asap.
From what I understand, based on the System Status report, the MegaMenu plugin activated on your site is:
ThemeHunk MegaMenu Plus: by Themehunk – 1.0.7
Furthermore, as seen on the
ThemeHunk MegaMenu Plus: by Themehunk – 1.0.7
plugin screen, it has not been updated for a year; nor tested with the latest 3 major releases of WordPress itself.Here is a link to its support forum.
Kindly keep in mind we are not developers and only offer support for existing functionality.
Please see our Support Policy: http://www.woocommerce.com/support-policy/
I hope that helps!
What the hell is this, I am saying that the plugin Facebook for woocommerce is making issue, as I deactivate it, the issue resolve.
Why you peoples are not dignosing your plugin, instead typing here me for heat and trial method, which I already did. I write the ticket only after the hit and trial and only confirmation that Facebook For Woocommerce is making issue.
Hello,
I understand how frustrating this can be. It is difficult to check an issue without error logs being generated. WooCommerce and its extensions are dynamic, i.e. they will be updated regularly, unfortunately, due to the variable and vast number of plugins, we can not make every combination with third party plugins to guarantee compatibility.
May I ask, does the issue is present with all products? Or some of them? Can you please send a screenshot of the attributes before being deleted? Do the attributes contain special characters?
If you reconnect Facebook for WooCommerce does the issue is still present?
https://woocommerce.com/document/facebook-for-woocommerce-how-to-re-connect/Let us know if this makes a difference.
Yes, the issue with all products. No attribute has any special character.
It should not be affected from facebook connection, since it affected on save/update of product.
FYI, I have deactivated all plugins, now only Woocommerce, MegaMenu and Facebook plugins active. So please ask your plugin developer to look the case.
Hi @sunildhanda
May I know if the problem still persists if the MegaMenu plugin is deactivated?
Furthermore, does this happen when you are using the default Storefront theme and only WooCommerce plugin is enabled?
I just want to be sure that it is not the MegaMenu plugin that is causing the conflict here.
Let us know how it goes!
The we are facing on a product edit page, not on a Menu page. The menu plugin not have a relation with of woocommerce, the only plugin have relation with woocommerce if Facebook here. The menu plugin is used from long time, there is no issue before, the issue starts after the Facebook plugin added.
Hello!
I would recommend doing a conflict test to check if there are any conflicts with other plugins or the theme:
* Temporarily switch your theme to the [Storefront](https://wordpress.org/themes/storefront/) or Twenty Twenty theme.
* Try to reproduce the problem: by trying to save the products. If the issue is resolved, it is a theme conflict. If not, continue to the next step.* Temporarily deactivate all plugins except WooCommerce and Facebook.
* Try to reproduce the problem again. If the issue is resolved, it is a plugin conflict. To figure out which plugin is causing the problem, continue to the next step.* Reactivate your other plugins one by one, testing after each, until you find the one causing conflict.
* For more detailed instructions, check out [How to test for plugin and theme conflicts](https://docs.woocommerce.com/document/how-to-test-for-conflicts/).
Please let us know how that goes.
- The topic ‘Attributes get deleted on Save of product’ is closed to new replies.