• Resolved oddmonster

    (@oddmonster)


    Anyone else having this happen?

    I created a new Achievement Type, wrote six badges for it, went back in and changed the name of the Achievement Type and immediately lost all six badges. Is this a known issue?

    I was able to replicate it happening on two different installations.

    https://wordpress.org/plugins/badgeos/

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

    (@tw2113)

    The BenchPresser

    This is technically not a *bug* but it is a limitation that trickles back into WordPress core. We use Custom Post Types for achievements, and when you rename a slug of a Post Type after you’ve created some, the values in the database don’t also get updated. So the achievements you’ve made aren’t lost, they just no longer match the slugs in the database.

    We don’t presently have a way to keep this coordinated with BadgeOS but should probably be considered in a future release. I’m seeing achievement renaming come up more often lately.

    The only solution I can think of right now is manual updating in the database for the posts in question.

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    We have added the ability to migrate between achievement names including updating all of the available achievements AND already awarded achievements to the user in 1.4.0

    Check the 1.4.0 changelog to see everything new that’s been added with this latest version.

    This is still not working in 1.4.3.

    I’ve tested and had all my badges wiped out on each test.

    ~AA~

    Michael Beckwith

    (@tw2113)

    The BenchPresser

    Just to be clear, the post type was switched, but the data was never actually lost.

    aapollo, if you can and would be so kind, could you help confirm a hopeful fix in this branch of the plugin? https://github.com/opencredit/badgeos/archive/renaming-fix.zip

    I don’t know if you have a dev site set up that could help confirm the fix, or if it’d all be on a live site.

    You’ll want to deactivate the core plugin first, before activating this one, to help prevent duplicate function errors.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Changing Achievement Type name wipes out badges’ is closed to new replies.