• Hello! We have been trying to find a solution to the problem with broken link structures and templates for quite some time now.

    Issue: Any links to the woocommerce profile (/my-account/*) start throwing a 404 error. Also, the store dashboard pages (Dokan) – also give a 404 error. Other pages – such as Cart and Checkout – apply the post template, and not pages.

    The workaround is to update your permalink settings. After that, everything works fine for a while. Changing the theme from child to parent also solves the problem. The question is, are the link rewriting rules updated when the topic is changed? Or is the problem in the child theme?

    The main difficulty with the fact that it is still not clear how exactly to cause an error is that you have to constantly check the specified pages. Checking which plugin conflicts is quite difficult, since turning off plugins does not solve the problem, the only solution is to update the permalink settings.

    Have you experienced this and what could be the problem? The error mainly affects Woocommerce and Dokan pages, there are no problems with the rest of the pages.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Changing the theme from child to parent also solves the problem.

    That indicates a child theme issue, but if changing themes causes the rewrite rules to be regenerated, it could be more of a symptom than the root cause. It could be akin to opening the permalinks settings screen. (you don’t really need to save anything there if you’ve no need for a different perma-structure, loading the page automatically flushes and regenerates the rules)

    Similar issues have been reported, but I’m unaware of anyone identifying the root cause so far. The problem is that debugging is difficult if we cannot induce the problem on demand. We don’t want to wait around to see if it happens on its own. For example, if a particular scheduled task corrupts the rules every single time, we can then isolate the cause by manually calling that very same task after deactivating suspected plugins.

    Try to narrow down the time frame in which problems begin. Look at your access log to see what requests were made in that time. Try repeating the same requests until you can determine which one triggered the issue. If you can do that, isolating which theme or plugin is the cause becomes simpler.

Viewing 1 replies (of 1 total)

The topic ‘Broken link and template structure’ is closed to new replies.