[Resolved] Updating GP Premium & permalinks

Home Forums Support [Resolved] Updating GP Premium & permalinks

Home Forums Support Updating GP Premium & permalinks

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1477558
    vast

    Hi Tom,

    The post has been updated since in exploring it further, the upgrade and the occurrence of the issue (links redirecting to the home page) appears to be coincidental.

    Instead it points to add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); which has been added to the functions.php file.

    The steps to reproduce these are;
    1. Embed the code `add_filter( ‘rewrite_rules_array’, ‘disable_embeds_rewrites’ ); to the functions.php file.
    2. Access Settings > Permalink

    Digging into WordPress further, the action results in the internal WordPress rewrite rules being replaced with an empty value.

    To resolve the issue, either remove and/or comment out add_filter( 'rewrite_rules_array', 'disable_embeds_rewrites' ); when upgrading WordPress and/or accessing the permalink settings. The problem may also manifest if a plugin interfaces with permalinks (untested).

    #1477586
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    This sounds like an issue with your permalinks.

    What custom format are you using?

    What custom functions are you removing in step 3?

    #1478087
    vast

    The original post has been updated. Hopefully if anyone else experiences a similar issue, it may save them from the many hours of looking for a needle in the haystack.

    #1478827
    Tom
    Lead Developer
    Lead Developer

    Glad you got it sorted – is that function something you added to your own functions.php file?

    Thanks for sharing the solution ๐Ÿ™‚

    #1479114
    vast

    It was added to the child theme functions.php file.

    #1479273
    Tom
    Lead Developer
    Lead Developer

    Got it – thanks again for sharing ๐Ÿ™‚

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.