Title: WPBadger assertions
Last modified: August 20, 2016

---

# WPBadger assertions

 *  [robertjpage](https://wordpress.org/support/users/robertjpage/)
 * (@robertjpage)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wpbadger-assertions/)
 * When I install the plug-in “WPBadger,” I seem to be able to make badge awards.
   However, on my test, when I was directed to the Mozilla Project Badge Backpack
   after receiving notification of receiving a badge, I received an error message
   saying that the site’s assertion appears to be invalid.
 * [http://wordpress.org/extend/plugins/wpbadger/](http://wordpress.org/extend/plugins/wpbadger/)

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Dave Lester](https://wordpress.org/support/users/davelester/)
 * (@davelester)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964661)
 * Is is possible to share the link to your awarded badge? With that url, I’ll be
   able to take a look at the assertion file to see what’s going on.
 *  Thread Starter [robertjpage](https://wordpress.org/support/users/robertjpage/)
 * (@robertjpage)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964710)
 * As a test recipient of a badge, here is the link I was sent:
    [http://www.mercurybrief.com/awards/570640600426122/](http://www.mercurybrief.com/awards/570640600426122/)
 *  Plugin Author [Dave Lester](https://wordpress.org/support/users/davelester/)
 * (@davelester)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964855)
 * Can you double-check that you’ve selected a specific badge to award from the 
   drop down menu? I looked closer at your assertion file (which is here if you’d
   like to look at some JSON: [http://www.mercurybrief.com/awards/570640600426122/json/](http://www.mercurybrief.com/awards/570640600426122/json/)),
   and the data for your badge is not listed there.
 *  Thread Starter [robertjpage](https://wordpress.org/support/users/robertjpage/)
 * (@robertjpage)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964874)
 * Many thanks. I created another test badge that I was able to award, and then 
   ultimately able to receive into my backpack. However, subsequent attempts to 
   create test badges, award them, and then actually receive them have been misses.
   I’m not able to distinguish between why the one test works, and the others have
   not. I have been selecting the badge from the drop-down menu on the right.
 *  Thread Starter [robertjpage](https://wordpress.org/support/users/robertjpage/)
 * (@robertjpage)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964891)
 * I inserted this piece of code into my functions.php file, which enabled me to
   avoid the “invalid assertions” error notice. The theme I’m using this with is“
   Currents” from WooThemes, updated within the last year.
 * add_theme_support( ‘post-thumbnails’
 * However, two other issues have popped up:
    1. While I select other awards in 
   the drop-down menu, I’m only able to award one badge. I will send you this award
   URL separately. 2. I have created 5 test badges, but only 3 can be displayed 
   in the drop-down menu.
 *  Plugin Author [Dave Lester](https://wordpress.org/support/users/davelester/)
 * (@davelester)
 * [14 years ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964932)
 * A few things:
 * * The code you added to your theme enabled support for post-thumbnails, a feature
   that WPBadger requires. When you installed the plugin, you should have been notified
   of this.
    * The award you shared with me checks out, and is for the Guanxi Badge
   No. 2. * I’m a little puzzled by this problem of badges that aren’t appearing.
   Can you click the badges tab in the WordPress admin, and tell me how many total
   badges are listed? Also make sure that those badges are listed as “Published”
   and not “Drafts”.
 *  [Flummix](https://wordpress.org/support/users/flummix/)
 * (@flummix)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964975)
 * Hi
 * I am having assertion problems when trying to award a badge.
    When I first create
   a badge – do I use as featured image or insert into post? Either way, at this
   point should I be able to preview the badge – I cannot preview as it says that
   the page does not exist. Is this perhaps why when it comes to awarding – there
   is the assertion error? Any help would be great. Thanks
 *  Plugin Author [Dave Lester](https://wordpress.org/support/users/davelester/)
 * (@davelester)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964976)
 * Use as featured image instead of inserting into the post. If the badge image 
   has not been set as a featured image (FYI, it must also be a png image) then 
   it will result in an assertion error.
 *  [m3shrom](https://wordpress.org/support/users/m3shrom/)
 * (@m3shrom)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964995)
 * Hi there!
 * Great work on the plugin Dave!
 * I’m having a similar error message.
 * [http://www.sunseed.org.uk/appropriate-technology/awards/304352328181266/json](http://www.sunseed.org.uk/appropriate-technology/awards/304352328181266/json)
 * I had a look at the json – the salt field is blank. Is this causing the error
   or could it be something else?
 *  [m3shrom](https://wordpress.org/support/users/m3shrom/)
 * (@m3shrom)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2964996)
 * I found this useful resource for checking the json
    [http://beta.openbadges.org/issuer/validator](http://beta.openbadges.org/issuer/validator)
 * and it was saying
    badge.version: Must be in the form of x.y or x.y.z
 * So I went back and entered 1.0 – but WP adjusted that back to 1
    So then I entered
   1.1 and it worked ok.
 *  Plugin Author [Dave Lester](https://wordpress.org/support/users/davelester/)
 * (@davelester)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2965003)
 * Great. For future reference of folks who may stumble upon this thread, the new
   URL for the badge validator is [http://validator.openbadges.org/](http://validator.openbadges.org/)
 * It’s correct that badge versions in the current version of the plugin must be
   x.x or x.x.x.

Viewing 11 replies - 1 through 11 (of 11 total)

 The topic ‘WPBadger assertions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wpbadger.svg)
 * [WPBadger](https://wordpress.org/plugins/wpbadger/)
 * [Support Threads](https://wordpress.org/support/plugin/wpbadger/)
 * [Active Topics](https://wordpress.org/support/plugin/wpbadger/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpbadger/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpbadger/reviews/)

## Tags

 * [mozilla](https://wordpress.org/support/topic-tag/mozilla/)

 * 11 replies
 * 4 participants
 * Last reply from: [Dave Lester](https://wordpress.org/support/users/davelester/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/wpbadger-assertions/#post-2965003)
 * Status: not resolved