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 15 replies - 1 through 15 (of 18 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please confirm if you are using the Remove Base option in Rank Math > General Settings > WooCommerce?

    Alternatively, you could add the following snippet to flush the permalinks every hour and prevent the error from appearing:

    add_action('my_hourly_event', 'do_this_hourly');
     
    function my_activation() {
        if ( !wp_next_scheduled( 'my_hourly_event' ) ) {
            wp_schedule_event(time(), 'hourly', 'my_hourly_event');
        }
    }
     
    add_action('wp', 'my_activation');
     
    function do_this_hourly() {
        global $wp_rewrite;
        $wp_rewrite->flush_rules();
    }

    Here’s how you can add filter/hook to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

    sorry but I can’t understand your answer… I user the activate/deactivate button from the plugin list.
    What do you want me to do with the remove base option and with this hooks adds?

    If you meant wat I do to save permalinks withou change, I use wordpress general settings –> permalinks–> save

    Hello,

    It looks like the permalinks are not sticking for more than a couple of hours and that’s why you’re facing this issue frequently. We’ve seen some similar issues in the past and the most common fix for this kind of issue is to refresh the permalinks programmatically.

    To do that, you can use the filter on your website as we mentioned above.

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

    Thank you.

    Sorry can you be more clear on how implement the filter?

    By the way this is just a work around non a definitive solution. I’ve had this website for three years and never had this problem till the end of November 2024

    I can’t see all these options in rankmath… should i reset ?

    Hello,

    Can you please confirm which option you’re not able to see in Rank Math? You can also share a screenshot here by using any image-sharing tool like https://imgur.com/upload so that we can check this further for you.

    Regarding the shop page issue, please note that it is completely related to the Rank Math plugin. As we already mentioned, this issue could occur if your permalinks do not stick. When you deactivate/activate the Rank Math plugin, it clears the cache and that’s why the page works again.

    However, you can add the filter code to your theme’s functions.php file or can you a plugin like Code Snippet to add the filter as mentioned in this guide: https://rankmath.com/kb/wordpress-hooks-actions-filters/

    If you still face any issues, you can edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section so that we can check this further.

    Please do take a complete backup of your website before sharing the information with us.

    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

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

    Thank you.

    I did a reset and these are my settings now
    https://imgur.com/a/MqwhEpf

    Using Code Snippets plugin I added exactly this code

    add_action(‘my_hourly_event’, ‘do_this_hourly’);

    function my_activation() {
    if ( !wp_next_scheduled( ‘my_hourly_event’ ) ) {
    wp_schedule_event(time(), ‘hourly’, ‘my_hourly_event’);
    }
    }

    add_action(‘wp’, ‘my_activation’);

    function do_this_hourly() {
    global $wp_rewrite;
    $wp_rewrite->flush_rules();
    }

    and checked Only Run in Administration area
    Is this correct?

    Hello,

    We can see all the settings that are available in the free version of the plugin are showing on your WooCommerce settings.

    Regarding the filter code, it should work now. Please observe the issue on your site and if you face this again, please let us know here.

    We are here to assist you.

    Thank you.

    Hi support,
    we applied this solution on Sunday, and everything worked fine on Monday. Today we detected the issue three times till now and had to fix them by saving permalinks again. Any idea?

    Any news? I don’t know what to do

    Hello,

    In this case, we might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    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 15 replies - 1 through 15 (of 18 total)

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