same code base of h5p library works when logined but does not work when not logined? Is it by design?
Submitted by wxw on Tue, 09/08/2020 - 09:58
Forums:
Hello, I found the same code base of h5p library works when logined but does not work when not logined? Is it by design?
Content types:
otacke
Tue, 09/08/2020 - 15:06
Permalink
Hi wxw!What does your browser
Hi wxw!
What does your browser's developer console tell you?
If your code is using something that's only available when you're logged in such as the user property of the H5PIntegration object as used in https://github.com/h5p/h5p-boilerplate/blob/master/src/scripts/h5p-hello-world.js#L11 for instance - then it's expected behavior.
Best,
Oliver
wxw
Tue, 09/08/2020 - 15:40
Permalink
Thanks for your reply.The
Thanks for your reply.
The error message from developer console: 'Unable to find constructor for: '.
I do not think I used some property of H5PIntegration.
wxw
Tue, 09/08/2020 - 15:19
Permalink
Thanks for your reply. The
Thanks for your reply. The error message in the developer console said 'Unable to find constructor for: `. I checked the javascript file refered by the page, the constructor is there.
otacke
Tue, 09/08/2020 - 15:45
Permalink
Hi wxw!Only stating the error
Hi wxw!
Only stating the error message without the details doesn't help actually :-/ Please provide a link to the content or code so someone in the community could have a look.
Best,
Oliver
wxw
Thu, 09/10/2020 - 18:25
Permalink
Sorry for that. Just give the link to github
https://github.com/cheryl-pope/parsons-h5p/tree/master/H5P.ParsonsQuiz_4
otacke
Thu, 09/10/2020 - 19:42
Permalink
Hi wxw!Hmm, very strange use
Hi wxw!
Hmm, very strange use of github ... Anyway, I don't have any trouble running that content when I am not logged in, so it's potentially some problem with parameters of your particular content? Can't say without having that file.
Best,
Oliver