Yoast SEO
Remove 'category' from URL / WPML / bug? (9 posts)

  1. eaglejohn
    Posted 3 years ago #

    It seems that the option for removing the category base causes 404 errors when using WPML as well. Anyone else experiencing this issue?

    Edit: it seems that re-saving the Permalinks solves the issue?


  2. LinkeLoutje
    Posted 3 years ago #

    No it does not solve that problem, at least not for both languages. It somehow only fixes the language that is visited first, when I switch language the other doesn't work etc.

  3. theguitarlesson
    Posted 3 years ago #

    I have the same problem since the update to wp 3.5.2.

    If the "strip the category base" is ticked, all posts/pages show a 404, in fact, if you go to the wp-admin posts list, no posts show up at all.

    It must be something to do with the category base rewriting in the new version of WP, since I downloaded another category base rewrite plugin, and the result was the same, all pages got a 404.

    Please someone help in fixing this, now all my category pages will be missing for Google...

    Strangely enough, I have another site using the same theme and plugins, which doesn't experience this. The site which does, has 7000 categories and 55000 posts, I don't know if that can be of an issue, but it wasn't until the last WP update.

  4. theguitarlesson
    Posted 3 years ago #

    I just noticed that a huge error log is created, 2 mb in size, here is a snippet:

    [09-Jul-2013 19:34:46 UTC] WordPress database error MySQL server has gone away for query INSERT INTOwp_options(option_name,option_value,autoload) VALUES ('rewrite_rules', 'a:19585:{s:48:\"(0-9/1349)/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$\";s:52:\"index.php?category_name=$matches[1]&feed=$matches[2]\";s:31:\"(0-9/1349)/page/?([0-9]{1,})/?$\";s:53:\"index.php?category_name=$matches[1]&paged=$matches[2]\";s:13:\"(0-9/1349)/?$\";s:35:\"index.php?category_name=$matches[1]\";s:47:\"(0-9/311)/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$\";s:52:\"index.php?category_name=$matches[1]&feed=$matches[2]\";s:30:\"(0-9/311)/page/?([0-9]{1,})/?$\";s:53:\"index.php?category_name=$matches[1]&paged=$matches[2]\";s:12:\"(0-9/311)/?$\";s:35:\"index.php?category_name=$matches[1]\";s:43:\"(0-9)/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$\";s:52:\"index.php?category_name=$matches[1]&feed=$matches[2]\";s:26:\"(0-9)/page/?([0-9]{1,})/?$\
    It goes on and on for all categories.

    Anyone have any ideas?

  5. jrf
    Posted 3 years ago #

    Sounds like your server can't handle large queries... try saving the permalinks again. It's the option update for saving the permalinks rewrite structure that failed.

  6. astrasuite
    Posted 3 years ago #

    guitarlesson, I have had problems with Yoast's stripping of category, on and off, so I just skipped the feature and downloaded another plugin which I now use without ever having any problem.

    WP No Category Base - WPML compatible (http://wordpress.org/plugins/no-category-base-wpml/)

  7. theguitarlesson
    Posted 3 years ago #

    Thanks for the replies, but no luck.

    - I tried WP no category base already, as well as it's WPML version, interestingly, they don't even activate.

    - Saving the permalinks doesn't help either unfortunately.

    - My server is pretty powerful, it's a managed hybrid from wiredtree, hasn't let me down so far.

    What's interesting about all of this, is that it all started with the latest WP update. I don't want to revert to an older WP, since I'd be stuck there.

  8. LinkeLoutje
    Posted 3 years ago #

    Resaving the permalinks is indeed not the solution, unfortunately! I'll have a look at my error log. Can't tell whether downgrading would be an option since I only started using the categories since the latest upgrade.

  9. theguitarlesson
    Posted 3 years ago #

    I think downgrading is never is a good option, since newer version always have security fixes...

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.