• Resolved Justin Graham

    (@justin-graham)


    So I am using ACF and multiple custom post types to run a customized industry CMS.

    Overnight I had an issue where the PAGE URL was returning a 404 Page not found error.

    1. Cleared Permalinks several times
    2. Recreated the page with a different name -loads fine.
    3. If I revert the new page title & slug back to the original title & slug name I get a 404 error.
    4. I thought there may be a conflict of categories slug and page slug with the same name.
    I found one conflict and renamed the Testimonials category to a different name & slug – but this did not make a difference.

    5. I Narrowed it down to the YOAST plugin activation/deactivation.
    If I deactivate Yoast – the original page URL that had the 404 error loads fine.

    I have had to roll back to Yoast 4.0.2

    I have set up a complete staging site where I can swap between Yoast 7.5.3 & Yoast 4.0.2
    When Yoast 7.5.3 is activated, Yoast creates 3 completely new rewrite rules for “example-ulr” in the database that were not there previously prior to activation.

    wp_options table > rewrite_rules

    s:57:”(example-ulr)/(?:feed/)?(feed|rdf|rss|rss2|atom)/?$”;
    s:52:”index.php?category_name=$matches[1]&feed=$matches[2]”;
    s:40:”(example-ulr)/page/?([0-9]{1,})/?$”;s:53:”index.php?category_name=$matches[1]&paged=$matches[2]”;
    s:22:”(example-ulr)/?$”;
    s:35:”index.php?category_name=$matches[1]”;
    s:14:”category/(.+)$”;

    So at this point, I have rolled back to keep the CMS active on client sites.
    I need to solve this issue be before upgrading eveyone.

    tested with WordPress 4.9.6 / WP 4.7.5
    and in comination with PHP version 5.6 / 7.0.3 / 7.1.17 / 7.2.5

Viewing 1 replies (of 1 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    We require that you perform a conflict check with the most recent version of Yoast SEO, v7.6.1.

    You can then try to perform the following:

    1. Make sure the issue doesn’t persist when Yoast SEO is disabled.
    2. Check for conflicts.
    3. Check for JavaScript errors with your console.

    If you find any JavaScript errors related to Yoast SEO or if there is a conflict with a plugin or a theme, you can create a new GitHub issue for our developers. Please report the issue to a third party developer as well.

    If you didn’t find any conflicts or errors, we think the issue is specific to your site. We’d need to investigate further but are unable to do so on these forums. You can purchase Yoast SEO Premium and receive our Premium email support and we can help you further.

Viewing 1 replies (of 1 total)
  • The topic ‘Yoast Breaking Custom Post Type rewite rules’ is closed to new replies.