Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not parse the undefined file at undefined file #50

Open
mikehawke opened this issue Mar 22, 2013 · 25 comments
Open

Could not parse the undefined file at undefined file #50

mikehawke opened this issue Mar 22, 2013 · 25 comments

Comments

@mikehawke
Copy link

Hi, I'm encountering a few problems issuing a badge through the plugin.
I try to award a badge to myself and get the error "We have encountered the following problem: Could not parse the undefined file at undefined file" this comes after clicking the "Hoorah!" button. I can award the badge ok through badge.us.

Really excited to use this functionality!
Thanks for your support.
Mike.

@liquidgenius
Copy link

I am experiencing this same issue.

@ivyroberts
Copy link

@jiripavlicek
Copy link

Hi ivyroberts! Try to change description of your to award to fit in one line.

As you can see on http://keenecommons.net/badges/awards/1239356037/json/ - your description contains new line.

@ivyroberts
Copy link

Wow! Thank you.

@tylerjohnson
Copy link

I'm getting this same issue. It doesn't matter how short/long my description is, or how many lines it takes up. I still get the error returned.

@pbamma
Copy link

pbamma commented May 9, 2013

Ack. I too am getting the error. (using PHP gadget-badge-it-lite) What is odd is that I've got two test sites with a bit different settings. One site is working and the other isn't. The settings in both are slightly different, but I can't identify the problem. I'm pooring through all of the http references in the assertion (the output I've created it in php), the badgeClass.json and the organization.json. All http references are available, so not sure what I may have missed.

Better error messaging might help.... such as what the undefined file might be trying to reference.

Update: The problem was eventually solved by removing all .htaccess coverage from the entire site. This probably seems obvious but the site seems quite vulnerable currently.

@mrjarbenne
Copy link

I'm seeing the same thing, just to add to the chorus. Doesn't matter how long my description is.

@jducl
Copy link

jducl commented Jun 5, 2013

@pbamma I've got the same problem: my test site works; the one we want to issue badges from doesn't. :(

@davelester
Copy link
Owner

@jducl @mrjarbenne: just seeing your recent posts on this thread. if you can share the link to your award, I can take a look at the assertion file it generates to see where it's breaking.

@davelester
Copy link
Owner

ping?

@chrismartello
Copy link

I'm also getting the same error on my sites.
You may want to look into updating the JQuery version you are using in the plugin.

@doomedramen
Copy link

By following all my links I found an invalid url. Please check yours ^

@WBKitty
Copy link

WBKitty commented Sep 19, 2013

You can only have 128 characters.

@chrismartello
Copy link

My Name only has 10 characters

@WBKitty
Copy link

WBKitty commented Sep 19, 2013

Sorry--more info needed. 128 characters in the description. AND I discovered that you need to have a version number. Can't just leave it blank. Let me know if this works for you?

@davidmcoleman
Copy link

I'm having the same issue.

I discovered that the full URL in the "criteria" section of my json file returns a missing 404 page (can't be found by WordPress). For example, WordPress can't find my http://www.mysite.com/badges/badgename".

In my case, I tried to add a new Badge named "Video Badge". WordPress created a Permalink: http://www.mysite.com/badges/video-badge". However, when I tried to view this page, it comes up as a 404 "can't find page. This is the same URL that is added to the criteria section of the json file. Therefore, I believe this is why I'm getting the error and not completing the backpack process.

Can anyone suggest a fix. Thanks!!

@davidmcoleman
Copy link

Update: I fixed my issue. First, I added "1" as the version number. This caused a validation error. I changed it to "1.0" and it worked. Second, my WP site was password protected with the plugin "Private Community For BP". So, the link to the json file, http://mysite.com/awards/1437347421/?json=1 was prompting a login or register window. Once I disabled the "Private Community For BP" plugin, the accept badge process finally worked without the "undefined file at undefined file" error.

Q: Can WPBadger work within a password protected WP site??

Thanks.

@dendari
Copy link

dendari commented Sep 30, 2013

I'm having the same difficulty. When I create a new badge with little or no description it works fine, but all of these older badges with longer descriptions are not working. I tried to reissue the badge with a shorter description but it still does not work.

@cmorezebras
Copy link

Diddo.

What tools exist for ensuring that the badge created is a valid open badge?

@mariofishery
Copy link

Hi,

I just setup the latest version of Wordpress on my Windows 2008 R2 server and have enabled the plugin but having the same issue with accepting the badges so it shows on the Mozilla bagpack. Is there a fix for this?

We have encountered the following problem: Could not parse the undefined file at undefined file

@chazyvr
Copy link

chazyvr commented Mar 24, 2014

I'm having this same issue. Has anyone figured out the problem?

@davelester
Copy link
Owner

Try validating your badge assertion file (JSON) in the OpenBadges validator: http://validator.openbadges.org/

To access the assertion file, simply add "json/" to your badge award url, for example if your award url was http://example.com/awards/123456789/, your assertion file url would be http://example.com/awards/123456789/

@chazyvr
Copy link

chazyvr commented Mar 25, 2014

I made sure everything was 128 characters or fewer before posting here. I also installed .7 version from GitHub rather than Wordpress. I've also changed permalinks to default and then changed back.

What if the validator says it's invalid? Where could the problem be?

@mariofishery
Copy link

Dear Chaz,

Which domain are you using for issuing badges and also are you using a sub domain by any chance?

Best Regards,

Mario Fishery

From: chazyvr [mailto:[email protected]]
Sent: Tuesday, March 25, 2014 7:23 AM
To: davelester/WPBadger
Cc: Fishery, Mario
Subject: Re: [WPBadger] Could not parse the undefined file at undefined file (#50)

I made sure everything was 128 characters or fewer before posting here. I also installed .7 version from GitHub rather than Wordpress. I've also changed permalinks to default and then changed back.

What if the validator says it's invalid? Where could the problem be?


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-38523074.

@davelester
Copy link
Owner

If it's possible to share the link to the publicly, maybe folks on this thread can help you debug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests