WordPress.org

Ready to get started?Download WordPress

Forums

WPBadger
[resolved] Unexpected token U? (6 posts)

  1. 0kee
    Member
    Posted 1 year ago #

    Hi,
    Great plugin, I'm loving the idea of badges. I encountered the error below when I was testing it out

    We have encountered the following problem: trying to grab url http://electroat.com/wp/?award=1329703981&json=1 got error ParseError: Failed to parse JSON at http://electroat.com/wp/?award=1329703981&json=1: Unexpected token U

    Sorry if I have made some obvious mistake, this is new to me. Any ideas?
    Thanks.
    Karl

    http://wordpress.org/extend/plugins/wpbadger/

  2. davelester
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for pointing this out! The badge description cannot be longer than 128 characters which is causing the error. Try shortening the description and see if it works.

    Also, I noticed that there's a bug and quotes aren't properly escaped in the badge description, so thanks for bringing that to my attention. For now, try removing any quotation marks in your badge description.

  3. 0kee
    Member
    Posted 1 year ago #

    Hi Dave,
    Thanks for coming back so quickly, I knew I was doing something stupid. You were absolutely right, that sorted it out. I'll make sure to read the instructions next time :)
    Cheers,
    Karl

  4. davelester
    Member
    Plugin Author

    Posted 1 year ago #

    great!

  5. cunniman
    Member
    Posted 1 year ago #

    Hi Dave,

    I am getting the same error as above. Any ideas?

    Thanks

    Mark

    http://www.cunniman.net/?award=184896947#

  6. cunniman
    Member
    Posted 1 year ago #

    I've solved the problem - I inserted the image into the post. It should have been set as a featured image.

    Cheers

    Mark

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic