• I have two achievement types: “monthly” and “quarter 1 contest”. After launching, I changed the name of “quarter 1 contest” to something else, but then decided to change it back. Ever since, the badges for that achievement type return a 404 when clicked. I’ve tried resetting permalinks numerous times, but it didn’t work. I’ve looked into the “wp_posts” table and found some of the achievements. The custom post type is set correctly to the original permalink.

    I’m at a loss – all badges return a 404 when clicked. Any ideas?

    https://www.ads-software.com/plugins/badgeos/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Have you tried without permalinks set at all? That’ll help determine if it’s a rewrite issue or a posts issue.

    Also is there a mix of before and after renaming achievements that are 404ing? For example, you made 2 achievements in the achievement type, renamed the achievement type to something else, made 1 more, and then renamed it back? A case of either the original 2 aren’t working any more, or the 1 isn’t?

    An important note is that the achievement types you set and name are used to register post types. We don’t automatically update the existing ones when renaming achievement types.

    Thread Starter dsutton01

    (@dsutton01)

    Just tried without permalinks (permalinks set to “Plain”). It works just fine.

    If I choose any other type of permalink, it doesn’t work.

    No, all achievements in the achievement type were already made when I change the name of the achievement type. I haven’t made any new ones since the name change.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Correct me if I’m wrong, but did I read correctly that you also changed it back to the original achievement name? It sounds like there a mismatch, and the old one isn’t being recognized still, thus the 404 part.

    Thread Starter dsutton01

    (@dsutton01)

    Yes, I changed it back to the original name. If there is a mismatch, how do I fix?

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    You would need to cross check in the database. I’m curious if it visually looks like it’s named the same, but the slug itself that’s being used is the same.

    Just for my reference, what is the post type for the achievement in question, which you can see in your wp admin in the URL.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 error when clicking on badge’ is closed to new replies.