Categories error

#775507
  • Resolved Rémy CETRE
    Rank Math free

    Hello,
    I wanted to let you know about a bug that occurs from time to time: sometimes I have to deactivate and reactivate the extension, because when I click on a category, either a 404 error is displayed or only the bottom ux block appears and not the products. I’ve checked, deactivating all my extensions one by one, and it’s Rank math every time.
    If it helps a bit, I’ll share some images with you.
    I hope I’ve been able to give you some guidance.
    Best regards,
    Rémy, customer

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hello,

    I apologize for the inconvenience you are facing with Rank Math causing issues when clicking on a category on your website. It seems like there might be a conflict with other plugins or themes causing this behavior.

    To troubleshoot this issue, you can perform a quick conflict check on your website. Please ensure to take a complete backup of your site before proceeding with the conflict check. Here’s how you can do it:

    1. Enable Troubleshooting Mode.
    2. Disable Rank Math and check if the issue persists.
    3. If the issue is resolved after disabling Rank Math, try disabling other plugins one by one to identify the conflicting plugin or theme.

    If you are still facing issues after performing the conflict check, please feel free to share the images with us by replying to this ticket. Our support team will assist you further in resolving the category display problem.

    Thank you for bringing this to our attention, and we appreciate your cooperation in troubleshooting this issue.

    Best regards,
    Rank Math Support Team

    Sources:
    How to Manage Affiliate Links Using Rank Math » Rank Math
    How to Find Out Where 404 Errors Are Coming From » Rank Math
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    How to Find Out Where 404 Errors Are Coming From » Rank Math
    Random URLs Redirecting Even When No Redirect Was Created » Rank Math

    Rémy CETRE
    Rank Math free

    Hello,

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

    Thank you.

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    Please head over to your WordPress Dashboard > Settings > Permalinks and save the page without changing anything.

    If the issue persists, 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.

    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/

    We really look forward to helping you.

    Rémy CETRE
    Rank Math free

    Thanks for your help again. The thing is that the problem can occur, I deactivate the extension and reactivate it, and the error may not occur for several months and then return at a random time.

    I shared you some pictures of the Permalinks settings.

    Hello,

    Thank you for your patience.

    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 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/

    Hope that helps.

    Rémy CETRE
    Rank Math free

    Hi, thanks again for your reply. I put the snippet, but when I save and apply I have this message :
    The extract is automatically disabled due to an error on line 12:
    Impossible to redeclare the do_this_hourly function.

    Hello,

    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.

    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/

    Looking forward to helping you.

    Thank you.

    Hi team, I renamed your function to avoid any conflict, no error message. Take a look :

    add_action(‘my_hourly_event’, ‘do_this_hourly_custom’);

    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_custom() {
    global $wp_rewrite;
    $wp_rewrite->flush_rules();
    }

    Hello,

    You can change the custom function name on the filter without any issues.

    However, could you please confirm if you’re still facing the issue with categories on your website?

    Looking forward to helping you.

    Thank you.

    Everything seems to work properly now, I will comeback to you if I have an issue with that, thanks a lot 🙂

    Hello,

    We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

Viewing 11 replies - 1 through 11 (of 11 total)

The ticket ‘Categories error’ is closed to new replies.