wc table dissappears from database
-
Hi, there!
Since last woocommerce update we get the message “Database tables missing – One or more tables required for WooCommerce to function are missing, some features may not work as expected. Missing tables: 1aLcQJcw0_wc_product_attributes_lookup.”
Then, we create the table in the database, and attributes’ filters work again, but they only last a while: the table dissapearsand we have to create it again
Could you please help me? Many thanks in advance
The page I need help with: [log in to see the link]
-
Hello @gramenauer!
Please consider updating your WooCommerce database from the “WooCommerce → Status → Tolls → Update Database” area and see if that helps. Please make sure to create a backup of your site before updating the database.
If updating the database doesn’t help then please share your WooCommerce error logs and System Status on this thread so we can take a look at your configuration and check the issue further:
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.
Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
Hi, Mashi
Thanks for your reply. I am afraid updating the database did not fix the problem.
This is the system report (no fatal error logs found)
### WordPress Environment ### WordPress address (URL): https://meetbio.es Site address (URL): https://meetbio.es WC Version: 6.5.1 REST API Version: ? 6.5.1 WC Blocks Version: ? 7.4.3 Action Scheduler Version: ? 3.4.0 Log Directory Writable: ? WP Version: 5.9.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: es_ES External object cache: – ### Server Environment ### Server Info: Apache/2.4.46 (Debian) PHP Version: 7.4.26 PHP Post Max Size: 35 MB PHP Time Limit: 300 PHP Max Input Vars: 5000 cURL Version: 7.52.1 OpenSSL/1.0.2u SUHOSIN Installed: – MySQL Version: 5.5.5-10.3.34-MariaDB-1:10.3.34+maria~stretch-log Max Upload Size: 35 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.5.1 WC Database Prefix: 1aLcQJcw0_ Total Database Size: 35.06MB Database Data Size: 26.68MB Database Index Size: 8.38MB 1aLcQJcw0_woocommerce_sessions: Data: 0.27MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 1aLcQJcw0_woocommerce_order_items: Data: 0.17MB + Index: 0.06MB + Engine InnoDB 1aLcQJcw0_woocommerce_order_itemmeta: Data: 1.52MB + Index: 0.77MB + Engine InnoDB 1aLcQJcw0_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB 1aLcQJcw0_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_actionscheduler_actions: Data: 1.52MB + Index: 0.86MB + Engine InnoDB 1aLcQJcw0_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_actionscheduler_logs: Data: 1.52MB + Index: 0.39MB + Engine InnoDB 1aLcQJcw0_cmplz_cookiebanners: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_cmplz_cookies: Data: 0.04MB + Index: 0.01MB + Engine MyISAM 1aLcQJcw0_cmplz_services: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_comments: Data: 0.20MB + Index: 0.09MB + Engine InnoDB 1aLcQJcw0_duplicator_pro_entities: Data: 0.01MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_duplicator_pro_packages: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_e_events: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_mailchimp_carts: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_mailchimp_jobs: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_nextend2_image_storage: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_nextend2_section_storage: Data: 0.06MB + Index: 0.01MB + Engine MyISAM 1aLcQJcw0_nextend2_smartslider3_generators: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_nextend2_smartslider3_sliders: Data: 0.05MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_nextend2_smartslider3_sliders_xref: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_nextend2_smartslider3_slides: Data: 0.08MB + Index: 0.01MB + Engine MyISAM 1aLcQJcw0_options: Data: 5.50MB + Index: 0.16MB + Engine InnoDB 1aLcQJcw0_postmeta: Data: 8.52MB + Index: 3.03MB + Engine InnoDB 1aLcQJcw0_posts: Data: 2.52MB + Index: 0.31MB + Engine InnoDB 1aLcQJcw0_termmeta: Data: 0.09MB + Index: 0.13MB + Engine InnoDB 1aLcQJcw0_terms: Data: 0.05MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_term_relationships: Data: 0.22MB + Index: 0.13MB + Engine InnoDB 1aLcQJcw0_term_taxonomy: Data: 0.05MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_tm_taskmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_tm_tasks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_usermeta: Data: 0.20MB + Index: 0.14MB + Engine InnoDB 1aLcQJcw0_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB 1aLcQJcw0_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_wc_order_product_lookup: Data: 0.17MB + Index: 0.19MB + Engine InnoDB 1aLcQJcw0_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB 1aLcQJcw0_wc_order_tax_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_wc_product_download_directories: Data: 0.02MB + Index: 0.11MB + Engine InnoDB 1aLcQJcw0_wc_product_meta_lookup: Data: 0.06MB + Index: 0.09MB + Engine InnoDB 1aLcQJcw0_wc_rate_limits: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_woodmart_wishlists: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_woodmart_wishlist_products: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_wpforms_tasks_meta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB 1aLcQJcw0_wpmailsmtp_tasks_meta: Data: 0.01MB + Index: 0.00MB + Engine MyISAM 1aLcQJcw0_yoast_indexable: Data: 2.52MB + Index: 0.64MB + Engine InnoDB 1aLcQJcw0_yoast_indexable_hierarchy: Data: 0.14MB + Index: 0.16MB + Engine InnoDB 1aLcQJcw0_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB 1aLcQJcw0_yoast_primary_term: Data: 0.05MB + Index: 0.03MB + Engine InnoDB 1aLcQJcw0_yoast_seo_links: Data: 0.36MB + Index: 0.22MB + Engine InnoDB ### Post Type Counts ### attachment: 1339 cms_block: 64 elementor_library: 2 mc4wp-form: 1 nav_menu_item: 66 page: 47 portfolio: 9 post: 10 product: 286 product_variation: 14 revision: 1 shop_coupon: 11 shop_order: 169 woodmart_sidebar: 2 woodmart_slide: 5 wpcf7_contact_form: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (24) ### Billage: by Billage – 1.4 Classic Editor: by WordPress Contributors – 1.6.2 Classic Widgets: by WordPress Contributors – 0.3 Complianz | GDPR/CCPA Cookie Consent: by Really Simple Plugins – 6.1.6.1 Contact Form 7: by Takayuki Miyoshi – 5.5.6 Yoast Duplicate Post: by Enrico Battocchi & Team Yoast – 4.4 Elementor: by Elementor.com – 3.6.5 Export media with selected content: by Joost de Keijzer – 2.1.4 Facebook for WooCommerce: by Facebook – 2.6.13 Site Kit by Google: by Google – 1.74.0 Loco Translate: by Tim Whitlock – 2.6.1 Really Simple SSL: by Really Simple Plugins – 5.3.2 Show-Hide/Collapse-Expand: by Bunte Giraffe – 1.2.5 Smart Slider 3: by Nextend – 3.5.1.4 Password Strength Settings for WooCommerce: by Daniel Santoro – 3.0.0 WooCommerce Redsys Gateway Light: by José Conti – 3.0.6 Checkout Fields Manager for WooCommerce: by QuadLayers – 5.5.6 WooCommerce: by Automattic – 6.5.1 Woodmart Core: by – 1.0.33 WordPress Importer: by wordpressdotorg – 0.7 Yoast SEO: by Team Yoast – 18.8 WP Mail SMTP: by WPForms – 3.4.0 WP-Sweep: by Lester 'GaMerZ' Chan – 1.1.5 Custom Product Tabs for WooCommerce: by YIKES Inc. – 1.7.7 ### Inactive Plugins (10) ### Bizum WooCommerce: by Bizum – 3.0.3 Custom Twitter Feeds: by Smash Balloon – 1.8.4 Jetpack: by Automattic – 10.9 Preloader: by Alobaidi – 1.0.9 Redsys WooCommerce: by Redsys – 3.1.1 Spotlight - Social Media Feeds: by RebelCode – 1.0.1 WebP Converter for Media: by Mateusz Gbiorczyk – 4.3.4 WooCommerce Payments: by Automattic – 4.1.0 Wordfence Security: by Wordfence – 7.5.9 WP Fastest Cache: by Emre Vona – 1.0.1 ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php maintenance.php: maintenance.php ### Settings ### API Enabled: – Force SSL: – Currency: EUR (€) Currency Position: right_space 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: #6 - /tienda/ Cart: #7 - /carrito/ Checkout: #8 - /finalizar-compra/ My account: #9 - /mi-cuenta/ Terms and conditions: #1629 - /aviso-legal/ ### Theme ### Name: Woodmart Version: 6.4.2 Author URL: https://themeforest.net/user/xtemos 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: woodmart/woocommerce/archive-product.php woodmart/woocommerce/cart/cart-item-data.php woodmart/woocommerce/cart/cart.php woodmart/woocommerce/cart/cross-sells.php woodmart/woocommerce/cart/mini-cart.php woodmart/woocommerce/checkout/form-checkout.php woodmart/woocommerce/checkout/thankyou.php woodmart/woocommerce/content-product-cat.php woodmart/woocommerce/content-product.php woodmart/woocommerce/content-single-product.php woodmart/woocommerce/content-widget-product.php woodmart/woocommerce/global/breadcrumb.php woodmart/woocommerce/global/form-login.php woodmart/woocommerce/global/quantity-input.php woodmart/woocommerce/loop/add-to-cart.php woodmart/woocommerce/loop/loop-end.php woodmart/woocommerce/loop/loop-start.php woodmart/woocommerce/loop/no-products-found.php woodmart/woocommerce/loop/orderby.php woodmart/woocommerce/loop/pagination.php woodmart/woocommerce/loop/sale-flash.php woodmart/woocommerce/myaccount/form-login.php woodmart/woocommerce/product-searchform.php woodmart/woocommerce/single-product/add-to-cart/grouped.php woodmart/woocommerce/single-product/add-to-cart/variable.php woodmart/woocommerce/single-product/meta.php woodmart/woocommerce/single-product/product-attributes.php woodmart/woocommerce/single-product/product-image.php woodmart/woocommerce/single-product/product-thumbnails.php woodmart/woocommerce/single-product/rating.php woodmart/woocommerce/single-product/related.php woodmart/woocommerce/single-product/sale-flash.php woodmart/woocommerce/single-product/tabs/description.php woodmart/woocommerce/single-product/tabs/tabs.php woodmart/woocommerce/single-product/title.php woodmart/woocommerce/single-product/up-sells.php woodmart/woocommerce/single-product.php ### Action Scheduler ### Complete: 2,963 Oldest: 2022-04-18 15:46:03 +0000 Newest: 2022-05-16 16:37:27 +0000 Failed: 1 Oldest: – Newest: – Pending: 2 Oldest: 2022-05-16 17:56:50 +0000 Newest: 2022-05-17 10:38:11 +0000 ### Status report information ### Generated at: 2022-05-16 16:49:59 +00:00
Just as additional info: the table is deleted as soon as we click on regenerate the product attributes lookup table
-
This reply was modified 2 years, 9 months ago by
gramenauer.
Hello,
Please go to
WooCommerce > status > tools > scheduled actions > pending
locate the pending actions and run them, allow some time for them to run.I am wondering if after receiving the update of the new WooCommerce version there is still something pending to be up to date.
You can also switch your theme to Storefront then disable all plugins except WooCommerce, at this point, try again to Update database, and verify database tables.
More info is below:
https://docs.woocommerce.com/document/how-to-test-for-conflicts/Finally check if the tables are created this way. Let us know if this worked for you.
Hi, Igor
I run two pending actions, then I installed Storefront, disabled plugins and updated database again. I verified database: all the tables were there.
But, when I clicked on Regenerate the product attributes lookup table, the table wc_product_attributes_lookup was deleted.
I created table again (from a backup), regenerated one product, and the table was still there. Regenerated another one, the table survived… but when I tried a full table regeneration, the table was deleted again.
Hope this will give some clues about the issues’ cause
Hello,
Thanks for the additional information.
The product lookup table was introduced in the WooCommerce 6.3 release, and it triggers a request to upgrade the database: https://developer.woocommerce.com/2022/02/02/new-product-filtering-by-attributes-rolling-out-in-woocommerce-6-3/
It sounds like you are stumbling on a bug affecting the database upgrade. That is set to get fixed with the WooCommerce 6.6 release: https://github.com/woocommerce/woocommerce/issues/32065
In the meantime, you can disable the lookup table by going to WooCommerce > Settings > Products > Advanced and try it again when 6.6 is released.
To test version upgrades without affecting your live site, you can use a staging site (your host might have that feature, but you can create it with WP Staging as an alternative).
Hope this helps!
Hi, Paulo
Thanks for your message. I disabled lookup table and it seems it works.
Thank you very much again!
Glad to hear it – thanks for letting us know!
Please feel free to open a new topic if you have any other questions.
-
This reply was modified 2 years, 9 months ago by
- The topic ‘wc table dissappears from database’ is closed to new replies.