Basic examples

Forums: 

Hi I'm struggling to understand the basics as the file I created following Hello world tutorial 1-3 does comes up with a bunch of error messages when I try to upload it to my Wordpress site. 

I was wondering if it would be possible to make avaliable a few basic example files that can be of use to beginners along with a working greetingcard.h5p. Had a look at trying to deconstruct one of the published h5p content types but that was a bit too steep for me. 

I have attached my greetingcard.h5p file, if anyone could tell me why it won't work it would be greaty appreciated!

Hope someone can help. Thanks Jorgen

Ps. the greeting-card-with-task.h5p in the "using other libraries" tutorial will not be accepted to my wordpress site either so I dont have any simple working h5p which is quite frustrating

 

 

 

 

H5P file: 
BV52's picture

Hi Jorgen,

There is a working greeting card here. I will also look into your file to check what may be causing the issue, I'll comment here with my findings.

-BV52

Hi and thank you, that helped a lot!

I found that to get my original file working I had to replace all of the JSON files with the JSON files from your archive. I noticed that there were discrepancies in the content in the JSON files copied from the tutorial and your files, but not exprienced enough to pinpoint why they would all fail. 

Could it be a issue with the formatting of the JSON when I copy and paste from the tutorial?
Thanks Jorgen

BV52's picture

Hi Jorgen,

I haven't found it as well. I'm afraid it might be as simple as 1 incorrect letter somewhere but who knows. I'll get back to you once I found out.

-BV52

Hi again and thank you for looking into this!

I started with replacing the h5p.json which cleared out a few of the messages. After that the errors cascaded through each of the json files which I replaced one at a time with to the ones from your archive. Only after they were all replaced the upload went through....

HI , i tried several time , either followed the hello world tutorial or redownload the greeting card from the examples and regeneral them into a new file , but i got the same error when i upload the file ,the message is so confusing, because documents in  the H5P.GreetingCard file actually includes are all valid as it says.

i have put the h5p document in the attachment , can someone help please?

H5P file: 
BV52's picture

Hi pt sun,

Did you zipped the folder (won't work) or zipped the files (should work)?

-BV

Hi, BV52, 

i zipped the files , but still have the same error,i will show you what are inlcuded in my zip folder before i change it into .h5p

and this is the folder that the error mentioned

Path to files should be use the backward slash \

I tested, this is the issue, hopefully in the future h5p validator can accept both slashes as folder separator