• Resolved Tony Hisir

    (@copperrefections)


    Hi,

    I have a problem with the main categories. They keep on disappearing from time to time. Subcategories are still there but when the main categories disappear the URLs of the subcategory pages change.

    Instead of /category/main category-name/subcategory-name/

    It becomes /category/subcategory-name/

    I have to reload all the main categories. After that I have to move the subcategories under the related main categories. Took me 2 days.

    I will greatly appreciate your help in fixing this problem, so the main categories do not disappear again. This is the 5th time in 3 years.

    Thank you,

    Tony Hisir

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 20 total)
  • Hi there @copperrefections 👋

    Welcome to WooCommerce Support. I’d be happy to help you with this.

    From what I gather, the category permalinks change sometimes. Correct?

    I have to reload all the main categories. After that I have to move the subcategories under the related main categories. Took me 2 days.

    I’m not sure that I fully understand. Could you elaborate further on how you the main categories are being reloaded, please?

    Furthermore, can you please share a screenshot of what you see at that screen? That will help us understand the issue. I’d recommend utilizing a tool like https://snipboard.io/ for sharing it here.

    Looking forward to hearing from you!

    Stef

    (@serafinnyc)

    Hi @copperrefections can you please go to Settings > Permalinks and simply click Save. Don’t do anything else, but that. Then clear your cache on both server and local browser.

    Then check.

    Thread Starter Tony Hisir

    (@copperrefections)

    Hi @serafinnyc,

    I did that. Thank you.

    Stef

    (@serafinnyc)

    Are you saying you did that before you posted to this forum or just now? If the latter, did it help?

    Thread Starter Tony Hisir

    (@copperrefections)

    Hi @anastas10s,

    For example;

    /category/colorful-earrings/horse-earrings/

    “colorful-earrings” is the parent category and “horse-earrings” is the subcategory.

    The main / parent category disappears. I do not know how and why. I noticed this when the URL of the subcategory becomes;

    /category/horse-earrings/

    instead of

    /category/colorful-earrings/horse-earrings/

    I spent 2 days creating the main/parent categories again and put the subcategories under the parent categories. Subcategories are still there so I do not have to create them again. But I have to search them find them and put them under the respective parent categories after I create them.

    I already did that. They are working OK now. But I am afraid that they will disappear again.

    I as mentioned this has happened before. I would like to fix the problem so it does not happen again.

    I will appreciate your help

    Thank you.

    Stef

    (@serafinnyc)

    I’m curious if you have only products showing in the settings. What’s set here in Customizer? Can you take a screenshot?

    https://loom.com/i/04301b22c81b490e835dcbcdaf9341a4

    Hi @copperrefections,

    Thanks again for getting back to us!

    I as mentioned this has happened before. I would like to fix the problem so it does not happen again.

    I understand this has ever happened before. So that I can understand your site better, could you share a copy of your site’s System Status report? You can access it through WooCommerce > Status. Select ‘Get system report’ and then ‘Copy for support’ (after scrolling down a bit).

    Once done, please paste it here in your response or through a text-sharing service like https://gist.github.com/.

    Look forward to hearing back from you.

    Thread Starter Tony Hisir

    (@copperrefections)

    Hi @serafinnyc,

    I did it after I read your post. Not before.

    My website Permalink Settings

    Custom Structure >>>>/%postname%/

    Product category base >>>>category

    Product tag base>>>>product-tag

    Custom base>>>>/product/

    As far as I remember Permalink Settings has been like this for a long time. I did not change anything there.

    I am not an expert but something I do with the website triggers the parent categories to disappear. I do not know what that is.

    Is there are way to make a backup of all the categories; parent and subcategories? I will use the backup until we figure out the problem and solve it.

    Thread Starter Tony Hisir

    (@copperrefections)

    Hi @ckadenge, Is this what is needed;

    ` WordPress Environment
    
    WordPress address (URL): https://www.copperreflections.com
    Site address (URL): https://www.copperreflections.com
    WC Version: 8.4.0
    REST API Version: ✔ 8.4.0
    WC Blocks Version: ✔ 11.6.2
    Action Scheduler Version: ✔ 3.7.0
    Log Directory Writable: ✔
    WP Version: 6.4.2
    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: 8.2.13
    PHP Post Max Size: 512 MB
    PHP Time Limit: 300
    PHP Max Input Vars: 3000
    cURL Version: 7.87.0
    OpenSSL/1.1.1w
    
    SUHOSIN Installed: –
    MySQL Version: 8.0.35
    Max Upload Size: 512 MB
    Default Timezone is UTC: ✔
    fsockopen/cURL: ✔
    SoapClient: ✔
    DOMDocument: ✔
    GZip: ✔
    Multibyte String: ✔
    Remote Post: ✔
    Remote Get: ✔ Database
    
    WC Database Version: 8.4.0
    WC Database Prefix: wp_
    Total Database Size: 302.44MB
    Database Data Size: 221.53MB
    Database Index Size: 80.91MB
    wp_woocommerce_sessions: Data: 41.08MB + Index: 2.19MB + 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: 2.52MB + Index: 0.48MB + Engine InnoDB
    wp_woocommerce_order_itemmeta: Data: 14.52MB + Index: 12.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.05MB + Index: 0.13MB + 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.02MB + Index: 0.03MB + Engine InnoDB
    wp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
    wp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_litespeed_avatar: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_litespeed_crawler: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_litespeed_crawler_blacklist: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
    wp_litespeed_img_optm: Data: 3.52MB + Index: 0.77MB + Engine InnoDB
    wp_litespeed_img_optming: Data: 0.08MB + Index: 0.09MB + Engine InnoDB
    wp_litespeed_url: Data: 2.52MB + Index: 2.78MB + Engine InnoDB
    wp_litespeed_url_file: Data: 2.52MB + Index: 7.52MB + Engine InnoDB
    wp_options: Data: 5.50MB + Index: 1.17MB + Engine InnoDB
    wp_postmeta: Data: 89.61MB + Index: 32.11MB + Engine InnoDB
    wp_posts: Data: 13.52MB + Index: 2.50MB + 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.16MB + Engine InnoDB
    wp_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_term_relationships: Data: 4.52MB + Index: 2.52MB + Engine InnoDB
    wp_term_taxonomy: Data: 1.52MB + Index: 0.75MB + Engine InnoDB
    wp_termmeta: Data: 1.52MB + Index: 0.69MB + Engine InnoDB
    wp_terms: Data: 1.52MB + Index: 0.97MB + Engine InnoDB
    wp_usermeta: Data: 2.52MB + Index: 3.03MB + Engine InnoDB
    wp_users: Data: 0.13MB + Index: 0.14MB + Engine InnoDB
    wp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + 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.05MB + 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_attributes_lookup: Data: 4.52MB + Index: 3.52MB + Engine InnoDB
    wp_wc_product_download_directories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wc_product_meta_lookup: Data: 0.50MB + Index: 0.70MB + Engine InnoDB
    wp_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + 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_wfblockediplog: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfblocks7: Data: 0.47MB + Index: 0.33MB + Engine InnoDB
    wp_wfconfig: Data: 1.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wffilemods: Data: 7.52MB + Index: 0.00MB + Engine InnoDB
    wp_wfhits: Data: 0.23MB + Index: 0.05MB + Engine InnoDB
    wp_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfissues: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
    wp_wfknownfilelist: Data: 3.52MB + Index: 0.00MB + Engine InnoDB
    wp_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wflogins: Data: 0.13MB + Index: 0.03MB + Engine InnoDB
    wp_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_wfls_role_counts: Data: 0.00MB + Index: 0.00MB + Engine MEMORY
    wp_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfnotifications: Data: 0.11MB + Index: 0.00MB + Engine InnoDB
    wp_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
    wp_wfreversecache: Data: 0.20MB + Index: 0.00MB + Engine InnoDB
    wp_wfsecurityevents: Data: 0.16MB + Index: 0.00MB + Engine InnoDB
    wp_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
    wp_wfstatus: Data: 0.16MB + Index: 0.11MB + Engine InnoDB
    wp_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wfwaffailures: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wpfm_backup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_wsmea_conditional_payment_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
    wp_yoast_indexable: Data: 10.52MB + Index: 3.59MB + Engine InnoDB
    wp_yoast_indexable_hierarchy: Data: 1.52MB + Index: 0.94MB + Engine InnoDB
    wp_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
    wp_yoast_primary_term: Data: 0.11MB + Index: 0.11MB + Engine InnoDB
    wp_yoast_seo_links: Data: 0.42MB + Index: 0.19MB + Engine InnoDB Post Type Counts
    
    aiosrs-schema: 3
    attachment: 5727
    blocks: 3
    cms_block: 19
    custom_css: 3
    dflip: 5
    getgenie_history: 3
    mc4wp-form: 1
    nav_menu_item: 86
    oembed_cache: 9
    page: 62
    post: 148
    postman_sent_mail: 55
    product: 5111
    rank_math_schema: 2
    review: 1
    saswp: 3
    schema: 3
    shop_order: 793
    woodmart_sidebar: 2
    wpcf7_contact_form: 2
    wppb-ul-cpt: 1 Security
    
    Secure connection (HTTPS): ✔
    Hide errors from visitors: ✔ Active Plugins (18)
    
    WooCommerce Wholesale Pricing: by Danyo Borg – 2.2.2
    Classic Editor: by WordPress Contributors – 1.6.3
    CMB2: by CMB2 team – 2.10.1
    Contact Form 7: by Takayuki Miyoshi – 5.8.4
    Disable Bloat for WordPress & WooCommerce: by Disable Bloat – 3.4.2
    Specific checkout for wholesale customers: by Curran Van Waarde –
    WPBakery Page Builder: by Michael M - WPBakery.com – 7.3
    LiteSpeed Cache: by LiteSpeed Technologies – 6.0
    Profile Builder Basic: by Cozmoslabs – 3.9.8
    Profile Builder: by Cozmoslabs – 3.10.7
    Really Simple CAPTCHA: by Takayuki Miyoshi – 2.2
    Redirection: by John Godley – 5.3.10
    CTX Feed: by WebAppick – 6.3.8
    WooCommerce Stripe Gateway: by WooCommerce – 7.7.0
    WooCommerce: by Automattic – 8.4.0
    Wordfence Security: by Wordfence – 7.11.0
    Yoast SEO: by Team Yoast – 21.7
    Yoast SEO: WooCommerce: by Team Yoast – 16.0 Inactive Plugins (0) Dropin Plugins (2)
    
    maintenance.php: maintenance.php
    object-cache.php: object-cache.php 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)
    exclude-from-search (exclude-from-search-2)
    featured (featured)
    outofstock (outofstock)
    rated-1 (rated-1)
    rated-2 (rated-2)
    rated-3 (rated-3)
    rated-4 (rated-4)
    rated-4 (rated-4-2)
    rated-5 (rated-5)
    
    Connected to Woo.com: –
    Enforce Approved Product Download Directories: –
    HPOS feature screen enabled: –
    HPOS feature enabled: –
    Order datastore: WC_Order_Data_Store_CPT
    HPOS data sync enabled: – WC Pages
    
    Shop base: #7 - /shop/
    Cart: #8 - /cart/
    Checkout: #9 - /checkout/
    My account: ❌ Page does not contain the [woocommerce_my_account] shortcode.
    Terms and conditions: #11505 - /privacy-policy/ Theme
    
    Name: Flatsome Child
    Version: (update to version 0 is available)
    Author URL:
    Child Theme: ✔
    Parent Theme Name: Flatsome
    Parent Theme Version: 3.18.2
    Parent Theme Author URL: https://uxthemes.com
    WooCommerce Support: ✔ Templates
    
    Overrides: flatsome/woocommerce/archive-product.php
    flatsome/woocommerce/cart/cart-empty.php
    flatsome/woocommerce/cart/cart-shipping.php
    flatsome-child/woocommerce/cart/cart.php
    flatsome/woocommerce/cart/mini-cart.php
    flatsome/woocommerce/checkout/form-checkout.php
    flatsome/woocommerce/checkout/form-coupon.php
    flatsome/woocommerce/checkout/order-received.php
    flatsome/woocommerce/checkout/terms.php
    flatsome/woocommerce/checkout/thankyou.php
    flatsome-child/woocommerce/content-product-cat.php
    flatsome/woocommerce/content-product.php
    flatsome/woocommerce/content-single-product.php
    flatsome/woocommerce/content-widget-product.php
    flatsome/woocommerce/global/breadcrumb.php
    flatsome/woocommerce/global/quantity-input.php
    flatsome/woocommerce/global/wrapper-end.php
    flatsome/woocommerce/global/wrapper-start.php
    flatsome/woocommerce/loop/loop-end.php
    flatsome/woocommerce/loop/loop-start.php
    flatsome/woocommerce/loop/pagination.php
    flatsome/woocommerce/loop/rating.php
    flatsome/woocommerce/loop/result-count.php
    flatsome/woocommerce/loop/sale-flash.php
    /home/copperr1/public_html/wp-content/plugins/profile-builder-hobbyist/add-ons-advanced/woocommerce/templates/myaccount-edit-profile.php
    flatsome/woocommerce/myaccount/form-login.php
    flatsome/woocommerce/myaccount/navigation.php
    flatsome/woocommerce/notices/error.php
    flatsome/woocommerce/notices/notice.php
    flatsome/woocommerce/notices/success.php
    flatsome/woocommerce/product-searchform.php
    flatsome-child/woocommerce/single-product/add-to-cart/simple.php
    flatsome/woocommerce/single-product/photoswipe.php
    flatsome/woocommerce/single-product/price.php
    flatsome/woocommerce/single-product/product-image.php
    flatsome/woocommerce/single-product/product-thumbnails.php
    flatsome/woocommerce/single-product/rating.php
    flatsome/woocommerce/single-product/related.php
    flatsome/woocommerce/single-product/review.php
    flatsome/woocommerce/single-product/sale-flash.php
    flatsome/woocommerce/single-product/share.php
    flatsome/woocommerce/single-product/short-description.php
    flatsome/woocommerce/single-product/tabs/tabs.php
    flatsome/woocommerce/single-product/title.php
    flatsome/woocommerce/single-product/up-sells.php
    flatsome/woocommerce/single-product-reviews.php
    flatsome/woocommerce/single-product.php Admin
    
    Enabled Features: activity-panels
    analytics
    product-block-editor
    coupons
    core-profiler
    customer-effort-score-tracks
    import-products-task
    experimental-fashion-sample-products
    shipping-smart-defaults
    shipping-setting-tour
    homescreen
    marketing
    mobile-app-banner
    navigation
    onboarding
    onboarding-tasks
    product-variation-management
    product-virtual-downloadable
    remote-inbox-notifications
    remote-free-extensions
    payment-gateway-suggestions
    shipping-label-banner
    subscriptions
    store-alerts
    transient-notices
    woo-mobile-welcome
    wc-pay-promotion
    wc-pay-welcome-page
    
    Disabled Features: customize-store
    minified-js
    new-product-management-experience
    product-external-affiliate
    settings
    async-product-editor-category-field
    
    Daily Cron: ✔ Next scheduled: 2023-12-15 05:42:15 -06:00
    Options: ✔
    Notes: 9
    Onboarding: completed Action Scheduler
    
    Complete: 4
    Oldest: 2023-12-13 08:19:39 -0600
    Newest: 2023-12-13 22:40:03 -0600
    
    Pending: 1
    Oldest: 2023-12-14 08:19:39 -0600
    Newest: 2023-12-14 08:19:39 -0600 Status report information
    
    Generated at: 2023-12-14 00:56:39 -06:00
    `

    Hey Tony,

    Thanks for sharing that – It seems this is an intermittent issue, which can be quite tricky!

    Checking your System Status Report, I notice the following plugins:

    • Disable Bloat for WordPress & WooCommerce: by Disable Bloat – 3.4.2
    • LiteSpeed Cache: by LiteSpeed Technologies – 6.0
    • Wordfence Security: by Wordfence – 7.11.0

    When the issue first popped up (3 years ago), do you perhaps recall if any of the above mentioned plugins were currently active? If so, it’s possible that one of these might be interfering with how categories are stored or displayed, causing them to vanish.

    This being said, if any of those were active at the time the issue first surfaced, can you try deactivating this, as it may just resolve the issue.

    In the meantime, I’d like to take a look at an fatal errors that may be logged. Can you please navigate to WooCommerce → Status → Logs and share a copy of any fatal error log found there.

    Is there are way to make a backup of all the categories; parent and subcategories? I will use the backup until we figure out the problem and solve it.

    Certainly! You can export your categories, including both parent and subcategories, using the built-in Product export feature which can be found when navigating to WooCommerce > Products:

    This will create a CSV file containing your categories’ data that you can later import back into your site if needed.

    You can read more about exporting and importing product data here:

    Cheers!

    Thread Starter Tony Hisir

    (@copperrefections)

    Hi @beautyofcode,

    Thank you very much for all the information. I really appreciate it.

    I have been using those plugins for a while. I do not know if these plugins are the cause.

    I went to WooCommerce → Status → Logs There were errors from the Profile Builder plugin. I already told them about this. They said would be fixed in the next update.

    I export the product categories. Thank you for the advice.

    I will keep an eye on this. Hopefully it would not happen again.

    Thank you very much for all your help,

    Tony

    Hey Tony,

    I went to WooCommerce → Status → Logs There were errors from the Profile Builder plugin. I already told them about this. They said would be fixed in the next update.

    Ah, gotcha – thanks for letting us know!

    Since this has been marked as resolved, feel free to create a new topic if you need any further help. We’re happy to help should the issue happen to pop up again. 🙂

    Also, if you have a minute, we’d love it if you could leave us a review:

    https://wordpress.org/support/plugin/woocommerce/reviews/

    Cheers!

    Thread Starter Tony Hisir

    (@copperrefections)

    I already gave you 5 star review. 🙂

    Stef

    (@serafinnyc)

    I have been using those plugins for a while. I do not know if these plugins are the cause.

    Apps, as well as Themes change every day & week. So does WP core. With that comes many changes and often it’s related to these things. That’s the beauty of being in an open source platform. Software is always scaling and will for its entirety. That’s why it’s best to update things in a staging environment before doing so on a live site.

    Thread Starter Tony Hisir

    (@copperrefections)

    Hi,

    I found this in the public_html/error_log

    [14-Dec-2023 11:51:47 UTC] The Automattic\WooCommerce\Admin\API\Options::get_options function is deprecated since version 6.3.

    Is there a way to fix this?

    Thank you.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘problem with the main categories’ is closed to new replies.