Products don’t show in my shop

#930677
  • Hi, it’s a couple of weeks I’m suffering of a recurring problem: my products don’t show in my shop. I found two way to temporary fix this issue:
    – save permalinks without change
    – activate/deactivate/ update rankmath plugin

    These options are all temporary since after a while products don’t show again.

    Do you have some idea/suggestion of why this happens?

    Do you have any idea of how to definitely solve the problem?

    Here is my shop page https://www.tasteitalianflavour.com/shop/
    Here is an error log
    2024-12-11T10:56:19+00:00 Critico Uncaught Error: Class “ActionScheduler_StoreSchema” not found in /web/htdocs/www.tasteitalianflavour.com/home/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:53
    Contesto aggiuntivo
    {
    “error”: {
    “type”: 1,
    “file”: “/web/htdocs/www.tasteitalianflavour.com/home/wp-content/plugins/seo-by-rank-math/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php”,
    “line”: 53
    },
    “remote-logging”: true,
    “backtrace”: [
    “”,
    “#0 /web/htdocs/www.tasteitalianflavour.com/home/wp-includes/class-wp-hook.php(322): ActionScheduler_DBStore->init()”,
    “#1 /web/htdocs/www.tasteitalianflavour.com/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”,
    “#2 /web/htdocs/www.tasteitalianflavour.com/home/wp-includes/plugin.php(517): WP_Hook->do_action()”,
    “#3 /web/htdocs/www.tasteitalianflavour.com/home/wp-settings.php(704): do_action()”,
    “#4 /web/htdocs/www.tasteitalianflavour.com/home/wp-config.php(79): require_once(‘…’)”,
    “#5 /web/htdocs/www.tasteitalianflavour.com/home/wp-load.php(50): require_once(‘…’)”,
    “#6 /web/htdocs/www.tasteitalianflavour.com/home/wp-blog-header.php(13): require_once(‘…’)”,
    “#7 /web/htdocs/www.tasteitalianflavour.com/home/index.php(17): require(‘…’)”,
    “#8 {main}”,
    “thrown”
    ]
    }
    Mostra messaggio originale

Viewing 3 replies - 16 through 18 (of 18 total)
  • Hello,

    We can see the shop page is now working properly without any issues. If you face the issue again, please let us know here before fixing it so that we can troubleshoot the issue further for you.

    Looking forward to helping you.

    Thank you.

    Maybe scheduling the snippet every 30 minutes instead of hourly could help? Can you help me? I don’t know how to modify the snippet

    Hello,

    In this case, you can replace the filter code with the following one:

    add_filter('cron_schedules', 'add_thirty_minute_interval');
    function add_thirty_minute_interval($schedules) {
        $schedules['thirty_minutes'] = array(
            'interval' => 1800, 
            'display'  => __('Every 30 Minutes')
        );
        return $schedules;
    }
    
    add_action('my_thirty_minute_event', 'do_this_every_thirty_minutes');
    
    function my_activation() {
        if ( !wp_next_scheduled('my_thirty_minute_event') ) {
            wp_schedule_event(time(), 'thirty_minutes', 'my_thirty_minute_event');
        }
    }
    
    add_action('wp', 'my_activation');
    
    function do_this_every_thirty_minutes() {
        global $wp_rewrite;
        $wp_rewrite->flush_rules();
    }
    

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 3 replies - 16 through 18 (of 18 total)

The ticket ‘Products don’t show in my shop’ is closed to new replies.