Home Forums WoodMart support forum Products disappear from shop page

Products disappear from shop page

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #689327

    oliet
    Participant

    Hello,

    The problem is that products disappear from the https://lightconcept.ee/shop page. But if I log into the store’s admin panel through my hosting account (not /wp-admin), the products appear. After some time (a day or two) the goods disappear again. I also installed a copy of our shop on another server, and the products still appear. I also found a similar issue on your forum.

    https://xtemos.com/forums/topic/warning-on-php-does-not-load-the-products-in-shop-page/

    I wrote to hosting support about this issue but they claims the problem is in the theme code.

    #689335

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for contacting our support center.

    To better assist you, could you kindly test the functionality with default WordPress themes such as TwentyTwenty or WooCommerce Storefront? This will help us determine whether the issue stems from our theme or elsewhere.

    Regards

    #689347

    oliet
    Participant

    It’s a working e-shop, and if I switch to another theme, it will look different because all settings are made for the Woodmart theme. I can’t switch theme and wait untill products disappear again.

    #689369

    Artem Temos
    Keymaster

    Hello,

    The products displayed on the shop page are managed by WooCommerce, not the theme itself. To verify this, you can switch to the default theme and check if the products are still displayed. If they are, it indicates a problem with WooCommerce rather than the theme.

    Kind Regards

    #689517

    oliet
    Participant

    Ok, I will create a staging website and will try to switch to the default theme and then check if this issue persists but here is the ticket with the same issue

    https://xtemos.com/forums/topic/shop-page-disappears-periodically/

    #689529

    Artem Temos
    Keymaster

    The issue is different and doesn’t look the same. Please create a staging website and test how it works with the default theme to see if it is something related to WoodMart.

    #694948

    oliet
    Participant

    Hello,

    I created a subdomain on the server where the original e-shop is located and uploaded a copy of the e-shop there. The products don’t disappear on the subdomain. The subdomain has the same server settings as the main server. What could be wrong then? I tried to find the cause myself, but I couldn’t find it. I installed the Query Monitor plugin. And when the products aren’t displayed on the page, it shows these errors.

    Attempt to read property “post_count” on null

    wp-content/plugins/woocommerce/includes/widgets/class-wc-widget-price-filter.php:100
    WC_Widget_Price_Filter->widget()
    wp-includes/class-wp-widget.php:394
    WP_Widget->display_callback()
    wp-includes/widgets.php:845
    dynamic_sidebar(‘sidebar-shop’)
    wp-content/themes/woodmart/sidebar.php:38
    load_template(‘wp-content/themes/woodmart/sidebar.php’)
    wp-includes/template.php:745
    locate_template()
    wp-includes/general-template.php:136
    get_sidebar(‘shop’)
    wp-content/plugins/woocommerce/templates/global/sidebar.php:22
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1077
    woocommerce_get_sidebar()
    wp-includes/class-wp-hook.php:324
    do_action(‘woocommerce_sidebar’)
    wp-content/themes/woodmart/woocommerce/archive-product.php:41

    Attempt to read property “query_vars” on null

    wp-content/plugins/woocommerce/includes/class-wc-query.php:891
    WC_Query::get_main_meta_query()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:172
    Automattic\W\I\P\Filterer->get_filtered_term_product_counts()
    wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php:471
    WOODMART_Widget_Layered_Nav->get_filtered_term_product_counts()
    wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php:574
    WOODMART_Widget_Layered_Nav->layered_nav_list()
    wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php:250
    WOODMART_Widget_Layered_Nav->widget()
    wp-includes/class-wp-widget.php:394
    WP_Widget->display_callback()
    wp-includes/widgets.php:845
    dynamic_sidebar(‘sidebar-shop’)
    wp-content/themes/woodmart/sidebar.php:38
    load_template(‘wp-content/themes/woodmart/sidebar.php’)
    wp-includes/template.php:745
    locate_template()
    wp-includes/general-template.php:136
    get_sidebar(‘shop’)
    wp-content/plugins/woocommerce/templates/global/sidebar.php:22
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1077
    woocommerce_get_sidebar()
    wp-includes/class-wp-hook.php:324
    do_action(‘woocommerce_sidebar’)
    wp-content/themes/woodmart/woocommerce/archive-product.php:41

    Attempt to read property “query_vars” on null

    wp-content/plugins/woocommerce/includes/class-wc-query.php:903
    WC_Query::get_main_search_query_sql()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:304
    Automattic\W\I\P\Filterer->get_product_counts_query_using_lookup_table()
    wp-content/plugins/woocommerce/src/Internal/ProductAttributesLookup/Filterer.php:185
    Automattic\W\I\P\Filterer->get_filtered_term_product_counts()
    wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php:471
    WOODMART_Widget_Layered_Nav->get_filtered_term_product_counts()
    wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php:574
    WOODMART_Widget_Layered_Nav->layered_nav_list()
    wp-content/themes/woodmart/inc/widgets/class-widget-layered-nav.php:250
    WOODMART_Widget_Layered_Nav->widget()
    wp-includes/class-wp-widget.php:394
    WP_Widget->display_callback()
    wp-includes/widgets.php:845
    dynamic_sidebar(‘sidebar-shop’)
    wp-content/themes/woodmart/sidebar.php:38
    load_template(‘wp-content/themes/woodmart/sidebar.php’)
    wp-includes/template.php:745
    locate_template()
    wp-includes/general-template.php:136
    get_sidebar(‘shop’)
    wp-content/plugins/woocommerce/templates/global/sidebar.php:22
    wc_get_template()
    wp-content/plugins/woocommerce/includes/wc-template-functions.php:1077
    woocommerce_get_sidebar()
    wp-includes/class-wp-hook.php:324
    do_action(‘woocommerce_sidebar’)
    wp-content/themes/woodmart/woocommerce/archive-product.php:41

    #695102

    Artem Temos
    Keymaster

    Hello,

    Thank you for the detailed information and error logs you have provided.

    Since the issue does not occur on the subdomain with the same server settings, it suggests that the problem might be related to caching, plugins, or customizations on the main site rather than the WoodMart theme itself.

    Regards

Viewing 8 posts - 1 through 8 (of 8 total)