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

    (@davelester)

    Can you please share a link to the award? I’d like to lok at the assertion file WPBadger generates and see if there’s a problem with that. Otherwise, the error you’re receiving from the backpack isn’t one I’ve seen before.

    Hello–I just installed WordPress and WPBadger today. I’m new to WordPress and slowly figuring it out.

    I’m receiving the same error:

    We have encountered the following problem: Could not parse the undefined file at undefined file
    You didn’t add any open badges to your backpack.

    Here is the test email I received:
    Congratulations, Roy Group has awarded you a badge. Please visit the link below to redeem it.
    https://boreoccidentales.com/wp/?award=972316239308565

    Also, the test email that I received had a garbled award title:
    Congratulations! You have been awarded the Leader’s Discipline TM badge!

    It’s supposed to say: Leader’s Discipline TM badge.

    Thanks for your help.

    Ah…the garbled title didn’t show up because this feedback form is in HTML. Apparently the “garbled” part of the title is actually the HTML code for an apostrophe.

    So the word Leader’s is coming across in the email as
    Leader
    the code for apostrophe (ampersand-pound sign-8217-semicolon)
    s

    What would cause that?

    Hi–I’m still unable to issue badges. Have been trying everything I can think of. Sometimes I get an error message about the assertions, sometimes the message about parsing the undefined file.
    A parse message: https://boreoccidentales.com/wp/?award=593904833355918
    Invalid assertion: https://boreoccidentales.com/wp/?award=971968445228412

    Also still need help correcting the HTML code for apostrophe in Subject line.

    Thanks so much for your help!

    Metadata Validator gives me this response for both:
    {
    “status”: “invalid”,
    “reason”: “Could not parse string as JSON”,
    “error”: “Unexpected token h”
    }

    I’m sorry–I don’t know what to do with this. ??

    Plugin Author Dave Lester

    (@davelester)

    I’m noticing two problems with your badge description:

    1. It exceeds 128 characters, which is the maximum new of characters you can include according to the Open Badges specification.
    2. It includes special characters, probably as a result of copy/pasting the description from Microsoft word. Try typing the description normally without those special characters.

    Thanks, Dave.

    1. I reduced the number of characters (is that with or without spaces?) and was able to award the badge.

    2. In the notice that I receive about the badge, the title of the badge still comes across with the HTML code for an apostrophe. I typed it directly into the WordPress field.

    “Congratulations! You have been awarded the Leader’s Discipline TM badge!”

    But I can’t show you because, even though I copy and paste the notice into this post, WordPress automatically turns it into HTML, thereby converting the code to an apostrophe!

    Hello Dave,

    1. we had the same problem. OpenBadge doesn’t like HTML or more than 229 characters, according to our tests. Could you please put up a check for that into the badge editor?

    Or better – could you please use the excerpt field for the description? Then you can still show the full content on the badge public URL. That would be great!

    Thanks,
    Martin

    Hello Dave,

    actually I can see your version 0.7 which is in Github seems to handle this differently: https://github.com/davelester/WPBadger/blob/master/includes/awards_json.php

    Good job! However I hope there will still be a way of including a long badge description for the website use.

    Thanks,
    Martin

    Hi Dave,

    Just have our server setup with bluehost and I have added the WP Badger plugin. I have created a badge and also an award but am having trouble sedning the badge to the Mozilla bagpack as I get the error “We have encountered the following problem: Could not parse the undefined file at undefined file”

    Appreciate your help in getting this fixed.

    Thanks,
    Mario Fishery

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Could not parse the undefined file’ is closed to new replies.