Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Dave Lester

    (@davelester)

    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

    (@robertjpage)

    As a test recipient of a badge, here is the link I was sent:
    https://www.mercurybrief.com/awards/570640600426122/

    Plugin Author Dave Lester

    (@davelester)

    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: https://www.mercurybrief.com/awards/570640600426122/json/), and the data for your badge is not listed there.

    Thread Starter robertjpage

    (@robertjpage)

    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

    (@robertjpage)

    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

    (@davelester)

    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

    (@flummix)

    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

    (@davelester)

    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.

    Hi there!

    Great work on the plugin Dave!

    I’m having a similar error message.

    https://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?

    I found this useful resource for checking the json
    https://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

    (@davelester)

    Great. For future reference of folks who may stumble upon this thread, the new URL for the badge validator is https://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.