• Resolved MNX

    (@mononox)


    Hello there,

    I’ve just noticed that when I’m changing settings in your plugin, I have to resave my permalink settings because my woocommerce account pages (front-end) return a 404. Any idea what might cause this? Can you replicate this on your end?

    Kind regards,
    Sven

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hi Sven,

    The account’s sub-pages are loaded based on rewrite rules. When these rules aren’t present, those pages will return a 404 message.

    Now, plugins can add their own rules, and tell WordPress to flush (aka rebuild) them. When they’re flushed too early or added too late, things do go wrong.

    With that said, The SEO Framework adheres to all these rules, and so does WooCommerce: Add the rules on init, flush on shutdown. Unfortunately, many other plugins don’t, and this causes issues that may steer you in the wrong direction.

    So, there’s probably another plugin that adds custom rewrite rules and flushes the system too early. Why that happens whenever you save the SEO settings, is still a mystery to me. It could be that one plugin’s continuously flushing the rules in the admin area.

    Luckily, you can trigger this issue manually (save the SEO settings…), so it’s just a matter of disabling plugins one-by-one until the issue’s gone. With that, you’ll know which plugin’s conflicting, and you may wish to contact the author on that. Of course, themes also have the power to do this, but that’s ill-advised.

    Best of luck!

    The same problem over here, error 404 on woocommerce account page. Thanks for the information @cybr

    Thread Starter MNX

    (@mononox)

    Hi @cybr and thanks for the detailed info. I’ve tried to disable all plugins one-by-one but I couldn’t find anythng. It appears that every WooCommerce update causes the bug as well, which may or may not give us a hint as to what’s happening here?

    Best Regards,
    Sven

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello guys/gals ??

    I take that /my-account/ (the main page with [woocommerce_my_account]) always works, but every subsequent page (e.g. /my-account/orders/) sometimes fails?

    Sven, did you also deactivate The SEO Framework, and found that the issue recurred?
    If that’s true, then I am lost–then you might wish to take this up to the WooCommerce developers. Although, it might be the theme interfering.

    Thread Starter MNX

    (@mononox)

    Yes exactly, it’s the account’s subpages only.

    The issue only occurs when The SEO Framework is active.

    The issue appears on every theme I’ve tried.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello again, Sven!

    Thanks for the additional information. It affirms that my first reply holds.

    If you’re using WordPress 5.2 or later, you can quickly obtain information on your WordPress installation; most importantly, the list of active plugins. I’m confident that one’s conflicting. If you’re willing to share that list, then I can forward a bug report to the incompatible plugin’s author.

    You can find the list under “Tools -> Site Health -> Information”. There, you can copy the list, and send it over to me. You may do so confidentially, via my contact page. I highly discourage you from sharing that information here.

    The source of these issues has been pestering WordPress developers for over a decade. It’s time to fix them, once and for all:
    https://core.trac.www.ads-software.com/ticket/18450
    https://core.trac.www.ads-software.com/ticket/29118
    https://core.trac.www.ads-software.com/ticket/44171

    Thread Starter MNX

    (@mononox)

    You may have missed the part where I’ve disabled all other plugins one by one and tested is so it seems that this is something that happens only between your plugin and WooCommerce. Nothing else seems to make a difference really. I’ll send you that list if you want it but it doubt it’ll be useful. Checking with Woo support directly now, will let you know when I have something tangible.

    Plugin Author Sybre Waaijer

    (@cybr)

    Hi Sven,

    That’s correct. But plugins may also act on this system on plugin (de)activation. It’s unfortunately too easy to catch a red herring.

    Thread Starter MNX

    (@mononox)

    Copy that, just wanted to make sure that part came through ??

    Plugin Author Sybre Waaijer

    (@cybr)

    Hello ??

    I’m going to step out of the rewrite shenanigans, and implement a more sane solution, instead:
    https://github.com/sybrew/the-seo-framework/issues/442

    This issue should be resolved as of TSF v3.3.0. Cheers!

    Thread Starter MNX

    (@mononox)

    Very cool, thank you so much!

    I’ll mark this as resolved for now, since we’d probably continue this on Github. Chances are we don’t have to ??

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Bug with Permalinks / WooCommerce?’ is closed to new replies.