davelester / WPBadger

A lightweight badge issuing platform built using WordPress
Other
43 stars 13 forks source link

Unable to receive assertion #21

Closed timnewham closed 11 years ago

timnewham commented 11 years ago

Hi, I've just installed the latest version of WPBadger on a totally fresh WP3.4.1 site (twenty twelve theme) on my own cloud server. Badge appears here: http://31.222.165.94/wordpress/?badge=openbadge101 (should I see a "featured image"? I've uploaded a png to the post).

I can go through the process of awarding a badge.

When a learner goes to accept the badge (from http://31.222.165.94/wordpress/?award=282091916585341#), they get an error:

We have encountered the following problem: trying to grab url http://31.222.165.94/wordpress/?award=185326276021078&json=1 got error ParseError: Failed to parse JSON at http://31.222.165.94/wordpress/?award=185326276021078&json=1: Unexpected token

Can anyone help? I'm only quasi-technical (know enough to download and install wordpress and edit config files, but don't know enough to debug or write code)

Thanks!

Tim Newham tim@think-associates.co.uk

davelester commented 11 years ago

Two things about your badge description:

  1. There's no need to include HTML in the description, including linking to an external file.
  2. I tested your assertion file, and the Open Badges Infrastructure enforces a limit of 128 characters for badge descriptions. Try reducing the length of your description and see if you experience the same error. I've also added this as a ticket on github, Issue #22.

Dave

timnewham commented 11 years ago

Thank you Dave.

I've now created a new test badge here with minimal information/characters (it's just called "A" with no other information): http://31.222.165.94/wordpress/?badge=a

And I now get, on award: http://31.222.165.94/wordpress/?award=784077297709882

"We have encountered the following problem: badge assertion appears to be invalid".

(if this is getting into more "user support" than "bug fixing, do let me know :) )

Tim

PS: As an aside, I'd assumed that the OBI would allow me lots of text, html etc to describe a badge, so that the issuer could record: a) the assessment criteria for a badge and (b) when awarding, the evidence that the learner has submitted to achieve the badge. But I guess that's a question I should pose over at the OpenBadges community...

davelester commented 11 years ago

Can you do me a favor and update your badge version to 1.0, instead of 1? The OBI specifies the format of badge numbers, which need to be x.x, or x.x.x. I hope to add a notification about this in an upcoming release, WPBadger 0.8, and have made this part of the todo for Issue #3.

timnewham commented 11 years ago

Done (and awarded to wpbadger@noreply.github.com at http://31.222.165.94/wordpress/?award=538730179984122)

Tim Newham Think Associates Ltd 07887 923032

-----Original Message----- From: Dave Lester [notifications@github.com] Received: Wednesday, 08 Aug 2012, 10:14PM To: davelester/WPBadger [WPBadger@noreply.github.com] CC: Tim Newham [tim@think-associates.co.uk] Subject: Re: [WPBadger] Unable to receive assertion (#21)

Can you do me a favor and update your badge version to 1.0, instead of 1? The OBI specifies the format of badge numbers, which need to be x.x, or x.x.x. I hope to add a notification about this in an upcoming release, WPBadger 0.8, and have made this part of the todo for Issue #3https://github.com/davelester/WPBadger/issues/3.

— Reply to this email directly or view it on GitHubhttps://github.com/davelester/WPBadger/issues/21#issuecomment-7597714.

davelester commented 11 years ago

Great. Two additional things:

  1. Add a description for the badge. It should be between 1 and 128 characters long.
  2. Update the email address you've awarded the badge to. It should be the same as your mozilla persona

Once you've done this, can you try accepting the badge and let me know how it goes?

timnewham commented 11 years ago

Yes! That all works now, thank you very much Dave. So to summarise:

Version must be x.x or x.x.x format Description must exist and be between 1 and 128 characters. If in doubt, don't include html in description.

Proof (no need to look, just posting here because I'm proud....) http://beta.openbadges.org/share/0dee7de1891f3a06f1bdbef25c3ac0f3