• Some of the older sites, running wpmu 2.9.2, get 404’s every now and then due to permalink failure. Apparently the content in rewrite_rules changes.

    Anyone has any idea of what the problem might be?
    I have tried to sum up some information below. Just write if you want more information..

    A little bit about the changes in rewrite_rules
    Most of the time changes are (correct -> incorrect);
    kategori -> Kategori (Category pages fail)
    etikett -> Taggar (Tag pages fail)
    etc…
    (kategori = category, etikett/taggar = tag)
    So just a change of content, lower case to higher case. Since ‘Kategori’ and ‘Taggar’ is default for swedish wordpress, we can assume that it just resets (while ignoring settings in permalink_structure etc).

    A little bit about wierdness around..
    permalink_structure and tag_base remains intact. It seems like whatever is changing rewrite_rules is also ignoring the content of permalink_structure and tag_base.

    Temporary fix
    We discovered pretty quick that resaving permalinks solves the problem, temporarily. At a start this was good enough, as permalink failure only happened once in a while. Now it happens more often, last week more than once a day.
    So we made a script that every 5 minute removes content from rewrite_rules. This is enough to make it work as it should.

    A little about the installation
    All sites are using domain mappings, w3tc, All in One SEO, Gravity Forms, Smart Youtube, and WP-Polls. Some sites are running Sociable and NextGEN Gallery. Think that list is pretty accurate. (There are a lot of sites on this installation, so it’s quite hard to be 100% accurate.)

Viewing 8 replies - 1 through 8 (of 8 total)
  • Then you have a plugin flushing the rewrite rules. This is also fixed n later version, so you really need to take the time to plan for upgrading.

    https://wpmututorials.com/how-to/upgrading-to-3-0/

    Thread Starter Zahak

    (@zahak)

    Doesn’t really make sense since nothing has been done to the plugins (no activation or deactivation, no updating etc). Also, shouldn’t be to hard to grep for rewrite_rules, but nothing interesting was found.

    How is this fixed in later versions? What is/was the issue about plugins flushing rewrite rules? As long as they use wordpress functions for it, they should be alright?

    Couldn’t agree more about upgrading, but that is currently not an option. At the moment there is not enough time to make all necessary upgrades for each theme (some themes are unfortunately relying on removed functions etc).

    If you’ve got theme relying on removed functions that’s not good.

    Functions are deprecated first – then removed after a long long time. themes change very little so I’m surprised to hear you say some of them have “removed” functions. Sure its not a theme that utilizes a *plugin* that relied on a deprecated function? Themes get upgraded too.

    Also, if you got hacked you’d find time to upgrade.

    Thread Starter Zahak

    (@zahak)

    Really don’t want to discuss wether or not to upgrade. We simply don’t have enough time for it right now. We will upgrade, beginning later this summer/early fall when most people at the magazines have their vacation.

    Sorry if I sound a bit grumpy, but I’d rather not work 24/7 (literally) right now ??

    THe only fix for this is upgrading.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Perhaps a better answer is this: You’re two major releases back and thus on a version that is unsupported. We’re not going to spend oodles of time helping you debug for free something we know is handled better in the newer versions.

    I would spend the time upgrading rather than trying to find what happened. Especially since I know w3tc has had some major updates, and may NOT be compatible with 2.9.x.

    And I know *specifically* for this issue, we were aware of the bug at the time and it got “magically” fixed in the next version. there were tickets, but the fix wasn’t intentional. The devs were head scratching for quite a while.

    Thread Starter Zahak

    (@zahak)

    Okey thanks anyway. Nice to know that we aren’t the only ones scratching our heads…

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Permalink failure due to wierd db change of rewrite_rules’ is closed to new replies.