404 error on Woocommerce category after updates, clear cache, add new & ???

#100184
  • Resolved Shpr
    free

    We have been experiencing ‘random’ 404 errors on our Woocommerce since adding RankMath. We are not sure exactly what causes them, but re-saving permalinks (settings -> permalinks) seems to fix the problem.

    However, we do not know when there is a problem until someone tells us or we visit ourselves. 🙁

    We think it happens when cache is purged, a new category is added &/or other updates (such as adding/updating plugins, woocommerce settings etc) but we cannot pinpoint exactly. It’s really frustrating and concerning.

    Some Relevant Settings:

    * Rank Math > General settings > Redirections: Auto post redirect = ON
    * Rank Math > Links > Strip category base = OFF
    * Rank Math > Woocommerce > Remove base = OFF
    * Rank Math > Woocommerce > Remove category base = ON
    * Rank Math > Woocommerce > Remove parent slugs = OFF
    * Settings > Permalinks > Common settings: = Custom Structure – /%category%/%postname%/

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

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I have shared it with the devs and they will be looking into it. If you find any other details to make us easier to reproduce it, please let us know.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress logins in the designated Sensitive Data section.
    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.

    Hello,

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

    Thank you.

    Hello,

    I tried creating a new Product Category, deleting it, updating the WooCommerce Settings but still I was not able to reproduce the issue. Can you please try making some changes in the Staging site and tell us if you get any 404 error on the Category page?

    Looking forward to helping you.

    I have 4 sites and all of them ran into the same problem. Everytime update rank math or woocommerce, woocomemrce category page alway 404 or random redirect to a blog post.

    I have to go to everysingle category, pressing update to get all of them work back to normal. And there are ton of categories. It’s so frustrating, because we running ads for all of those website, sometime I lose a lot of customter because of that.

    Times to times, i have the same problem with redirect PRODUCT CATEGORY. After turn off, save, turn on, save – it works again well.

    PS Then redirect is broken, “product category” menu item have shorten link (without base /product-category/) – but not working (404 error)

    I have the same error

    Fast repair – save Woocommerce redirect page settings (without changing)

    i do not want to do this everyday…. I think i’m going to uninstall this plugin

    Or try to find error. Or do not use redirect product category, until developer fix error

    Hello,

    I see the issue on your site but I couldn’t reproduce it on my setup. The Product category on your site throws a 404 error after creating a new category and updating the Settings. Can you please add your site’s FTP access details in the Sensitive Data Section so we can debug the issue by editing some plugin files?

    Looking forward to helping you.

    I can’t reproduce it too. But times to times shit happened. I next times – how can i test why is it happened? Which files copy to you? (before and after error)

    Yes, you can’t reproduce it. I happen very randomly.

    Hello,

    The issue can be brought about by one of the plugin updates might have resulted in flush rewrite rules needing to be refreshed:
    https://developer.wordpress.org/reference/functions/flush_rewrite_rules/

    It might not be related to Rank Math. If you encounter the issue again, please let us know.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Error happened again – with no action at all except editing product(((
    No update plugins, no install\uninstall …

Viewing 15 replies - 1 through 15 (of 19 total)

The ticket ‘404 error on Woocommerce category after updates, clear cache, add new & ???’ is closed to new replies.