• Resolved Jtree5757

    (@jtree5757)


    Hi,

    Just updated to 1.7.0 and it introduced a bug. Client updated some posts after we updated to 1.7.0 and the custom permalink field would default to a “/” upon saving. This ended up causing a redirect loop on the homepage. Removing the slash and re-saving does not fix the problem. I had to revert to 1.6.2 and search the postmeta table for custom_permalink = /. After finding the posts that had those, I simply edited the post as normal and removed the “/” and resaved. Tada.

    You can probably just delete the row from the database instead, but I wanted to make sure that the problem was indeed resolved and wouldn’t come right back.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @jtree5757

    Thank you for reaching out. I have checked and doesn’t find any issue on my test side. I have checked this on Default WordPress Post and Page.

    Can you provide some insights so I can further debug this issue.

    Thanks and Regards,
    Sami

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @jtree5757 Please answer the following questions.

    • Are you getting this issue on default WordPress post types or custom post types?
    • What’s your WordPress version?
    • What’s your PHP version?
    • Are you getting this issue on the new posts?
    • Are you getting console error before or after saving the post?
    • Are you using Classic Editor or Gutenberg?
    • If you are getting this issue on newer post then please provide a video of creating new post.
    • If you have any dev/staging server then please switch your theme to WordPress twenty twenty and disabled all other plugin and check this issue. If it works fine then start enabling it one-by-one and check which is conflicting with Custom Permalinks plugin.

    Also, if you any other information that helps me out then please share it with me.

    Thanks and Regards,
    Sami

    drew

    (@drewdrewchristophercom)

    Hello Sami,

    Great plugin, btw. It seems since the last update, edited Posts prior to this require a / otherwise it causes a redirect loop:
    This page isn’t workingwww.bestbuddies.org redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    Publish on: Jul 6, 2020 at 14:57
    EX: https://www.bestbuddies.org/newyork/eks-day – ERR_TOO_MANY_REDIRECTS
    EX: https://www.bestbuddies.org/newyork/eks-day/ – Works!

    Of course any posts after the update automatically add the /. If I remove it, it still works.

    WP: 5.5
    PHP version 7.4.2 (Supports 64bit values)
    Classic Editor – WP Bakery

    • This reply was modified 4 years, 3 months ago by drew.
    • This reply was modified 4 years, 3 months ago by drew.
    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    Hi @drewdrewchristophercom

    Are you sure that this issue is appearing on the post that doesn’t have trailing slash in it?

    I have tried to produce this issue but unable to generate it.

    Can you please confirm that it happening with all the old posts doesn’t have trailing slash? Also, does it happening with the newer post?

    Thanks and Regards,
    Sami

    drew

    (@drewdrewchristophercom)

    This issue happens on older posts before the update. A post was published back on: Jul 6, 2020, at 14:57.

    So someone on my team edited the permalink without the slash and it caused a redirect loop: This page isn’t workingwww.bestbuddies.org redirected you too many times.
    Try clearing your cookies.
    ERR_TOO_MANY_REDIRECTS

    So adding the slash fixed this issue.

    New posts DO NOT require the /.

    Hope this helps!

    • This reply was modified 4 years, 3 months ago by drew.
    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @drewdrewchristophercom Actually In my test site, I don’t have any old post that URL doesn’t have the slash in it. In new post, I am not getting any issue whether I have the slash in it or not.

    Regards,
    Sami

    Plugin Author Sami Ahmed Siddiqui

    (@sasiddiqui)

    @drewdrewchristophercom @jtree5757 As per not getting any response, I am marking this thread as resolved. Please feel free to open a new thread if you face any issue.

    Thanks and Regards,
    Sami

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘BUG: Field defaults to “/” when left empty and saving. Causes redirect loop’ is closed to new replies.