Problem with Primary Category
-
Hello,
I found a problem in Woocommerce.I had some products that I previously placed in two categories. After that I removed one of the categories and kept them in one category. The Category that I removed was the primary?category.Now, when I open the product the Breadcrumbs show the wrong category. I tried to find the problem and found that when we mark a category as the primary?category, even if we remove it, its data won’t be removed completely from the database and because of this the product?Breadcrumbs still shows the wrong category.Please check the video below.
https://uupload.ir/view/20220410_003554_9jjm.mp4/
-
Hello there,
I understand the breadcrumb on your site is showing the wrong category for some products that were previously in two categories.
May I ask for more info? In your video, during the part where you were editing the Learning Book For Persian Tar & Setar Vol 3 book, do you intend it to show the Music or Educational category in the breadcrumb?
Let me know so I can assist you further.
Previously it was in the Educational category as the primary category but I created a new category with the name “Music” and changed the product category to “Music” but in breadcrumb still showed “Educational”.
Hi @azadbakhsh,
I checked your site (https://shopipersia.com/product/learning-book-for-persian-tar-setar-vol-3/), and the breadcrumb shows Music.
Please try visiting your site using another web browser.
Also, try clearing your web browser’s cache to see if the breadcrumb shows correctly. You can read more here: https://wordpress.com/support/browser-issues/#clearing-your-browser-cache.
Let me know if this works for you.
If you have paid attention, in the video that I attached in the first post I fixed the breadcrumb error of (https://shopipersia.com/product/learning-book-for-persian-tar-setar-vol-3/).
It is Okay. Please fix the breadcrumb of below product:
https://shopipersia.com/product/radif-for-oud-musical-instrument-by-mansour-nariman/The up Product belonged to the Music Category but in breadcrumb mentioned Educational category.
I cleared the Cache. The problem is not from Cache.
- This reply was modified 2 years, 7 months ago by azadbakhsh.
Hi @azadbakhsh,
Thanks for sending the details. Can you navigate to WooCommerce > Status > Tools and “Regenerate” Product lookup tables as well as “Recount Terms” and see if that helps?
If that doesn’t work, to help us better assist you, could you please share a screenshot of the product categories?
We will be waiting.
Kind regards,
It didn’t work.
Please check the below video:
https://uupload.ir/view/20220410_155506_pew3.mp4/Still in breadcrumb showing the wrong category.
Hi @azadbakhsh! Thanks for writing back!
I went ahead and checked your Music category which seems to be correct:
https://shopipersia.com/category/persian-books-store/music/
Since you mentioned that you have already cleared your site’s cache (not only from your browser), can you double-check if your hosting company doesn’t have any caching system on their side too?
If you’re still having issues with that, 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.
All the best,
### WordPress Environment ### WordPress address (URL): https://shopipersia.com Site address (URL): https://shopipersia.com WC Version: 6.3.1 REST API Version: ? 6.3.1 WC Blocks Version: ? 6.9.0 Action Scheduler Version: ? 3.4.0 WC Admin Version: ? 3.2.1 Log Directory Writable: ? WP Version: 5.9.3 WP Multisite: – WP Memory Limit: 2 GB WP Debug Mode: – WP Cron: ? Language: en_US External object cache: – ### Server Environment ### Server Info: LiteSpeed PHP Version: 7.4.28 PHP Post Max Size: 64 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 5.7.37 Max Upload Size: 64 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.3.1 WC Database Prefix: wp_ Total Database Size: 797.39MB Database Data Size: 645.84MB Database Index Size: 151.55MB wp_woocommerce_sessions: Data: 1.00MB + Index: 0.03MB + Engine MyISAM wp_woocommerce_api_keys: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_attribute_taxonomies: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_downloadable_product_permissions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_order_items: Data: 0.18MB + Index: 0.09MB + Engine MyISAM wp_woocommerce_order_itemmeta: Data: 1.13MB + Index: 0.73MB + Engine MyISAM wp_woocommerce_tax_rates: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_woocommerce_tax_rate_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zones: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_locations: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_shipping_zone_methods: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokens: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_payment_tokenmeta: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_woocommerce_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM cache_data: Data: 0.02MB + Index: 0.00MB + Engine InnoDB coinremitter_order_address: Data: 0.02MB + Index: 0.13MB + Engine InnoDB coinremitter_payments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB coinremitter_webhook: Data: 0.02MB + Index: 0.00MB + Engine InnoDB crypto_files: Data: 0.02MB + Index: 0.33MB + Engine InnoDB crypto_membership: Data: 0.02MB + Index: 0.09MB + Engine InnoDB crypto_payments: Data: 0.02MB + Index: 0.31MB + Engine InnoDB crypto_products: Data: 0.02MB + Index: 0.25MB + Engine InnoDB user_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_actionscheduler_actions: Data: 0.34MB + Index: 0.15MB + Engine MyISAM wp_actionscheduler_claims: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_actionscheduler_groups: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_actionscheduler_logs: Data: 0.36MB + Index: 0.26MB + Engine MyISAM wp_adtribes_my_conversions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_alm: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_commentmeta: Data: 0.15MB + Index: 0.14MB + Engine MyISAM wp_comments: Data: 0.89MB + Index: 0.32MB + Engine MyISAM wp_e_events: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wp_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wp_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_links: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_litespeed_avatar: Data: 1.52MB + Index: 0.39MB + Engine InnoDB wp_litespeed_url: Data: 9.52MB + Index: 9.08MB + Engine InnoDB wp_litespeed_url_file: Data: 2.52MB + Index: 7.44MB + Engine InnoDB wp_mclean_refs: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wp_mclean_scan: Data: 0.25MB + Index: 0.06MB + Engine InnoDB wp_options: Data: 12.89MB + Index: 0.72MB + Engine MyISAM wp_pinterest_automatic: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_postmeta: Data: 467.01MB + Index: 76.60MB + Engine MyISAM wp_posts: Data: 42.26MB + Index: 4.89MB + Engine MyISAM wp_sbb_badips: Data: 0.31MB + Index: 0.13MB + Engine InnoDB wp_sbb_badref: Data: 1.52MB + Index: 0.22MB + Engine InnoDB wp_sbb_blacklist: Data: 0.38MB + Index: 0.13MB + Engine InnoDB wp_sbb_fingerprint: Data: 0.09MB + Index: 0.02MB + Engine InnoDB wp_sbb_http_tools: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_sbb_stats: Data: 0.05MB + Index: 0.02MB + Engine InnoDB wp_sbb_visitorslog: Data: 24.55MB + Index: 5.55MB + Engine InnoDB wp_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_termmeta: Data: 0.57MB + Index: 0.29MB + Engine MyISAM wp_terms: Data: 0.24MB + Index: 0.31MB + Engine MyISAM wp_term_relationships: Data: 15.05MB + Index: 26.66MB + Engine MyISAM wp_term_taxonomy: Data: 1.62MB + Index: 0.17MB + Engine MyISAM wp_usermeta: Data: 0.80MB + Index: 0.38MB + Engine MyISAM wp_users: Data: 0.04MB + Index: 0.04MB + Engine MyISAM wp_wcpdf_invoice_number: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wc_admin_notes: Data: 0.01MB + Index: 0.00MB + Engine MyISAM wp_wc_admin_note_actions: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_category_lookup: Data: 0.01MB + Index: 0.02MB + Engine MyISAM wp_wc_customer_lookup: Data: 0.07MB + Index: 0.06MB + Engine MyISAM wp_wc_download_log: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_coupon_lookup: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_order_product_lookup: Data: 0.13MB + Index: 0.10MB + Engine MyISAM wp_wc_order_stats: Data: 0.07MB + Index: 0.05MB + Engine MyISAM wp_wc_order_tax_lookup: Data: 0.04MB + Index: 0.05MB + Engine MyISAM wp_wc_product_attributes_lookup: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wp_wc_product_meta_lookup: Data: 2.52MB + Index: 3.20MB + Engine InnoDB wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_reserved_stock: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wc_webhooks: Data: 0.00MB + Index: 0.00MB + Engine MyISAM wp_wdr_order_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_order_item_discounts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wdr_rules: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_woocommerce_prl_deploymentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_woocommerce_prl_deployments: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wp_woocommerce_prl_frequencies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_woocommerce_prl_tracking_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_prl_tracking_conversions: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wp_woocommerce_prl_tracking_views: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wp_wpforms_entries: Data: 0.06MB + Index: 0.02MB + Engine InnoDB wp_wpforms_entry_fields: Data: 0.05MB + Index: 0.05MB + Engine InnoDB wp_wpforms_entry_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wp_wpforms_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wp_wpmailsmtp_tasks_meta: Data: 0.04MB + Index: 0.01MB + Engine MyISAM wp_yith_wcwl: Data: 0.02MB + Index: 0.01MB + Engine MyISAM wp_yith_wcwl_lists: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_indexable: Data: 48.50MB + Index: 6.40MB + Engine MyISAM wp_yoast_indexable_hierarchy: Data: 1.04MB + Index: 2.30MB + Engine MyISAM wp_yoast_migrations: Data: 0.00MB + Index: 0.01MB + Engine MyISAM wp_yoast_primary_term: Data: 1.38MB + Index: 1.43MB + Engine MyISAM wp_yoast_seo_links: Data: 3.37MB + Index: 0.95MB + Engine MyISAM wp_yoast_seo_meta: Data: 0.10MB + Index: 0.09MB + Engine MyISAM ### Post Type Counts ### ae_global_templates: 1 aol_ad: 1 aol_application: 2 attachment: 33404 aw_workflow: 1 book_author: 1 br_labels: 1 cmm4e_menu: 1 cmm4e_menu_theme: 1 cost-calc: 2 custom_css: 7 customize_changeset: 1 e-landing-page: 5 elementor_library: 8 elementskit_content: 1 faq: 14 footer: 14 fpf_fields: 1 hrf_faq: 4 hrw_transactions_log: 1 hrw_wallet: 1 iksm: 1 jet-menu: 1 jet-woo-builder: 2 language_switcher: 4 mailpoet_page: 1 mc4wp-form: 2 megamenu: 7 nav_menu_item: 316 ninja-table: 1 notice: 1 notificationx: 1 nutrition-label: 1 ocscw_size_chart: 10 oembed_cache: 90 page: 24 pi_shipping_method: 1 plus-mega-menu: 1 polylang_mo: 1 popup: 5 popup_theme: 11 post: 40 postman_sent_mail: 250 prl_engine: 2 product: 18332 product_variation: 167 revision: 3 schema: 2 seopress_schemas: 1 shop_coupon: 9 shop_order: 819 sidebar: 2 size-chart: 12 specs-table: 6 staff: 5 tablepress_table: 1 taxopress_logs: 6 ufaq: 1 um_directory: 1 um_form: 2 um_tab: 1 user_registration: 1 wafs: 1 was: 16 watermark: 1 wc_afrsm: 1 wc_whsm: 1 wcp_ruleset: 3 wcpa_pt_forms: 1 woo_mb_template: 50 wpforms: 4 wppb-ul-cpt: 1 wpseo_locations: 7 wpuf_contact_form: 4 wpuf_input: 16 xlwcty_thankyou: 1 yith-wcdppm-rule: 1 yith-wcgpf-feed: 1 yith-wcpsc-wc-chart: 1 ywdpd_discount: 5 ywrac_cart: 1 ywrac_email: 2 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (40) ### Click to Chat: by HoliThemes – 3.9 Disable Cart Fragments: by Optimocha – 2.0 Disable/Remove Google Fonts: by Fonts Plugin – 1.3.7 Elementor Pro: by Elementor.com – 3.2.0 Elementor: by Elementor.com – 3.6.2 ELEX WooCommerce Bulk Edit Products, Prices & Attributes (Basic): by ELEXtensions – 1.2.3 Kirki Customizer Framework: by David Vongries – 4.0.23 LiteSpeed Cache: by LiteSpeed Technologies – 4.6 Martfury Addons: by DrFuri – 2.4.6 Meta Box: by MetaBox.io – 5.6.2 Product Specifications for WooCommerce: by Am!n A.Rezapour – 0.5.2 Sw Product Brand: by WpThemeGo – 1.0.10 Advanced Editor Tools (previously TinyMCE Advanced): by Automattic – 5.6.0 Trustpilot-reviews: by Trustpilot – 2.5.901 WooCommerce Variation Swatches Pro: by Drfuri – 1.0.7 Woo Discount Rules PRO 2.0: by Flycart – 2.4.0 Woo Discount Rules: by Flycart – 2.4.0 Product Feed PRO for WooCommerce: by AdTribes.io – 11.5.1 Woocommerce Single Product Page Customizer Pro: by Geek Code Lab – 1.3 WooCommerce Advanced Shipping: by Jeroen Sormani – 1.0.14 WooCommerce Conditional Shipping and Payments: by WooCommerce – 1.12.1 WooCommerce Deals: by Drfuri – 1.0.9 CURCY - WooCommerce Multi Currency Premium: by VillaTheme – 2.1.31 WooCommerce PDF Invoices & Packing Slips: by WP Overnight – 2.14.4 WooCommerce Product Add-ons: by WooCommerce – 4.8.1 WooCommerce Product Recommendations: by SomewhereWarm – 1.4.7 WooCommerce Product Stock Alert: by WC Marketplace – 1.7.4 WooCommerce: by Automattic – 6.3.1 WooCommerce Email Customizer with Drag and Drop Email Builder: by Flycart Technologies LLP – 1.5.16 Yoast SEO Premium: by Team Yoast – 18.3 Yoast SEO: by Team Yoast – 18.5.1 WP Mail SMTP: by WPForms – 3.3.0 WPB Show Product Sales Number for WooCommerce: by wpbean – 1.0.2 WPForms Custom Captcha: by WPForms – 1.3.0 WPForms: by 20script – 1.6.3 Yoast SEO: WooCommerce: by Team Yoast – 14.5 ????? ?????? ?? ?? ???? ?????? ??????? ??????: by ????? ???? – 1.1 YITH WooCommerce Bulk Product Editing Premium: by YITH – 1.2.30 YITH WooCommerce Customize My Account Page: by YITH – 3.8.0 YITH WooCommerce Wishlist: by YITH – 3.8.0 ### Inactive Plugins (8) ### Advanced Database Cleaner PRO: by Younes JFR. – 3.1.7 Media Cleaner: by Jordy Meow – 6.3.2 Plugins Garbage Collector (Database Cleanup) Old!: by Vladimir Garagulya – 0.14 Size Chart WooCommerce: by – 1.0.1 StopBadBots: by Bill Minozzi – 7.08 TaxoPress: by TaxoPress – 3.6.0 User Roles and Capabilities: by mahabub – 1.2.6 Wordpress Pinterest Automatic: by ValvePress – 4.14.4 ### Dropin Plugins (1) ### advanced-cache.php: advanced-cache.php ### Must Use Plugins (1) ### .mu-plugin.php: by – ### Settings ### API Enabled: ? Force SSL: – Currency: EUR (€) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: bundle (bundle) 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: #1707 - /shop/ Cart: #6 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Martfury Version: 2.8.0 Author URL: https://demo2.drfuri.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: martfury/woocommerce/cart/cart-shipping.php martfury/woocommerce/cart/cart-totals.php martfury/woocommerce/cart/cart.php martfury/woocommerce/cart/mini-cart.php martfury/woocommerce/checkout/form-checkout.php martfury/woocommerce/checkout/form-coupon.php martfury/woocommerce/checkout/form-login.php martfury/woocommerce/checkout/terms.php martfury/woocommerce/content-product.php martfury/woocommerce/content-single-product.php martfury/woocommerce/content-widget-product.php martfury/woocommerce/global/form-login.php martfury/woocommerce/global/quantity-input.php martfury/woocommerce/global/wrapper-end.php martfury/woocommerce/global/wrapper-start.php martfury/woocommerce/loop/add-to-cart.php martfury/woocommerce/loop/orderby.php martfury/woocommerce/loop/pagination.php martfury/woocommerce/myaccount/form-login.php martfury/woocommerce/myaccount/form-lost-password.php martfury/woocommerce/myaccount/my-address.php martfury/woocommerce/single-product/add-to-cart/external.php martfury/woocommerce/single-product/add-to-cart/simple.php martfury/woocommerce/single-product/add-to-cart/variable.php martfury/woocommerce/single-product/meta.php martfury/woocommerce/single-product/product-image.php martfury/woocommerce/single-product/product-thumbnails.php martfury/woocommerce/single-product/rating.php martfury/woocommerce/single-product/related.php martfury/woocommerce/single-product/review-meta.php martfury/woocommerce/single-product/stock.php martfury/woocommerce/single-product/tabs/tabs.php martfury/woocommerce/single-product/up-sells.php martfury/woocommerce/single-product-reviews.php ### Action Scheduler ### Canceled: 1 Oldest: 2022-03-16 13:09:57 +0330 Newest: 2022-03-16 13:09:57 +0330 Complete: 1,351 Oldest: 2022-04-04 13:02:16 +0430 Newest: 2022-04-10 20:08:57 +0430 Failed: 13 Oldest: 2020-07-29 10:07:51 +0430 Newest: 2021-12-08 07:34:43 +0330 Pending: 2 Oldest: 2022-04-11 04:30:58 +0430 Newest: 2022-04-16 03:13:28 +0430 ### Product Recommendations ### Database Version: 1.4.7 Loopback Test: ? Task Queueing Test: ? Page Cache Test: ? Test failed. ### Status report information ### Generated at: 2022-04-10 20:09:24 +04:30
Hi @azadbakhsh!
Thank you for sending the System Status.
In this case, we suggest you purge any cache on your
LiteSpeed Cache
plugin or any other caching plugin and contact your host to disable any server caching.If the issue persists after that, please perform a conflict test by temporarily switching your theme back to Storefront, disabling all plugins except WooCommerce, and then check again if it solves the issue.
If that solves it, reactivate the theme first and check again. Then, reactivate your other plugins, testing after each, until you find the one causing conflict.
If you cannot perform a conflict test on your live site, we recommend creating a staging site using the WP Staging plugin.
You can find a more detailed explanation of how to do a conflict test here: https://docs.woocommerce.com/document/how-to-test-for-conflicts/.
Let us know how that goes for you!
Hi there,
We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.
Cheers!
- The topic ‘Problem with Primary Category’ is closed to new replies.