You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't figured out completely yet what's going on and where it's going wrong, but there is definitely a (or several) bugs in the whole strip category base option handling.
Tested and observed on WP 3.5.2, virgin WP install with virgin WP SEO.
Theme TwentyTwelve, no other plugins active [note: no WPML!], but the Debug Bar with some add-ons.
Issue 1:
Turn on category base
Go to a category page => 404
Seems that this happens because the rewrite rules get deleted, but haven't been renewed yet. Saving Settings->Permalinks solves this.
Issue 2:
Next, once you have gotten rid of the 404.
Turn off category base
Go to a page where the category base was off => expected behaviour 'reverse redirect', i.e. redirect to category/term, observed behaviour: 404
It seems that the plugin does not account for users turning the option off and outside links still pointing to the category-base-stripped version of the url.
Issue 3:
Manually add the word category to the url in the address bar & load => page redirects back to the category base stripped url resulting in 404
Similarly, it seems that this happens because the rewrite rules get deleted, but not renewed.
I haven't tested this in other WP versions, results may vary ;-)
Relevant files involved AFAICS:
wp-seo.php
inc/class-rewrite.php (only gets loaded when option turned, that might be part of the problem)
admin/class-admin.php
Issue #87 and issue #72 might be related to these bugs.
I haven't figured out completely yet what's going on and where it's going wrong, but there is definitely a (or several) bugs in the whole strip category base option handling.
Tested and observed on WP 3.5.2, virgin WP install with virgin WP SEO.
Theme TwentyTwelve, no other plugins active [note: no WPML!], but the Debug Bar with some add-ons.
Issue 1:
Seems that this happens because the rewrite rules get deleted, but haven't been renewed yet. Saving Settings->Permalinks solves this.
Issue 2:
Next, once you have gotten rid of the 404.
It seems that the plugin does not account for users turning the option off and outside links still pointing to the category-base-stripped version of the url.
Issue 3:
Similarly, it seems that this happens because the rewrite rules get deleted, but not renewed.
I haven't tested this in other WP versions, results may vary ;-)
Relevant files involved AFAICS:
Issue #87 and issue #72 might be related to these bugs.
We might also want to have a look at the code of WP No Category Base - WPML compatible for inspiration.
Forum threads mentioning this (recurring or similar) issue - quite a large number can found, going back at least two years, amongst which:
"For bugfixing: I noticed it breakes every time agan when I edit the description of a category."
The text was updated successfully, but these errors were encountered: