Support » Plugin: Achievements for WordPress » "Achievement Unlocked Box" Causing odd Re-Direct Loop

  • I am running Achievements 3 on a Multisite network with Buddypress.

    However, the plugin is NOT network activated as of yet. It is running solely on the main buddypress community page.

    I created a simple test achievement. It was awarded simply when you Favorite an activity stream entry 1 time.

    I Published it, and then proceeded to go and favorite an activity stream entry. The next time I reloaded a page, the ‘achievement unlocked’ notification popped up with the icon and name of the test achievement. It correctly worked when I tried the FB/Twitter share feature (which is great!).

    However, when I went to click the blue box asking to take you to see your achievements, the page simply reloaded and the unlocked achievement box reappeared. Over and over. No matter where I clicked, it wouldn’t disappear and no matter what URL on our network I typed in it always loaded with the achievement unlock box blocking the content with no way to close it.

    I was forced to set the achievement to DRAFT status as to not prevent our users from browsing the site.

    Any ideas what could be causing this?

    We are using the “BuddyPress Social” theme from WPMUDev.

Viewing 15 replies - 1 through 15 (of 32 total)
  • Plugin Author Paul Gibbs


    > when I went to click the blue box asking to take you to see your achievements, the page simply reloaded

    Which URL does it take you to? If you open that URL in another window, does it work, or does it 404?

    By a strange coincidence, I found a similar issue when working on Achievements last night; I couldn’t figure out how I caused it (and I hadn’t seen it before), I wonder if it’s the same. Do you know how to / are you comfortable looking at a record in the database and letting me know the value of something?

    Yes, I can tell you the value of a database item.
    Let me know what you need (I will be out this evening, but will get it to you asap)

    In regards to your other questions:

    If you happen to be sitting on the main Activity Stream when the achievement unlock box pops up, hitting f5/reload simply reloads the Activity Stream with the box STILL there.

    If you attempt to click any other navigation items on the “white out” portion of the page behind the box, you aren’t able to since the box has focus.

    If you click the “see other achievements” box you get taken to this url

    And when that page loads, you cannot see any of the content, because the unlock box loads on top of everything and once again you cannot close it nor take focus away from it.

    Nothing causes it to 404 or open in a new window. It just reloads the same url’s in a neverending loop seemingly.

    Plugin Author Paul Gibbs


    > If you click the “see other achievements” box you get taken to this url
    That and everything above it is the current expected behaviour. The URL should clear the notification, but clearly not 🙂

    Can you look in the wp_usermeta table for this:
    meta_key = wp__dpa_notifications
    user_id = (your user ID that you get this problem with)

    Copy/paste the meta_value here. It’ll look something like this:

    Here you go Paul:


    Plugin Author Paul Gibbs


    Ah hah. See

    If you want, try making that code change to see if it clears the problem.

    Made those code changes.

    Problem persists, unfortunately.

    The Achievement Unlocked box appears correctly, but any attempt to close is unsuccessful, and if you navigate to another page (by entering another URL in the site, or by clicking ‘see other achievements’) you are taken to the appropriate page, BUT the Unlocked box re-appears and won’t go away.

    Plugin Author Paul Gibbs


    Hmm, that’s unfortunate. I’ll update here if and when I get any more ideas.

    If you’re interested in taking a look at our back-end to see any potential theme/plugin conflicts, just let me know and we can communicate on twitter/skype to make that happen.

    We’ve been looking forward to Achievements for such a long time,, it truly would take our network to the next level, it’s a bummer that our site is breaking it 🙁

    Plugin Author Paul Gibbs


    How about..

    1) Make sure you have backups of everything.
    2) Download this
    which is the very latest dev version of achievements.
    3) Unzip, rename the directory to “achievements”, and replace the version that’s on your site at the moment.
    4) See if problem goes away.

    Hi Paul,

    Thanks for the download link.

    I’ve done as you suggested, and I think we’re making progress!

    Now the Achievement Unlock box ‘goes away’ if I click outside of it and I am then able to browse on the desired page normally.

    However, anytime the page is reloaded or a new page is accessed, the same Achievement Unlock box reappears. This happens indefinitely until I either set the achievement to “draft” status or deactivate the plugin.

    So the Unlock “focus” issue seems to be resolved, but it’s still reappearing in an odd fashion.

    Any thoughts?
    (THANK you for your assistance)

    Plugin Author Paul Gibbs


    > Now the Achievement Unlock box ‘goes away’ if I click outside of it
    Yes, this is new in 3.1 (you’re using a beta of 3.1).

    > it’s still reappearing in an odd fashion.
    Once I can figure out how to recreate it, I’ll try to fix it 🙂

    Would it be advantageous to you to have an account on our network to see it for yourself? If so, I’d be happy to set you up. Just let me know.

    Plugin Author Paul Gibbs


    It’s hard to know whether access to the site would be of any help in debugging. I’ve got another question for you:

    In the database, look in your Posts table — may you show me all the details for ID = 10577 please? If you don’t want to post it here, you can get my email from

    I’ve sent you an email Paul.

    Thanks for the continued support.

    Plugin Author Paul Gibbs


    Thanks. Unfortunately everything looked splendid. Will think about some more, and I’ll do some debugging in multisite.

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘"Achievement Unlocked Box" Causing odd Re-Direct Loop’ is closed to new replies.