Internal Server Error 500 during node creation with H5P content
Hi friends,
could you help me with next issue:
I have Drupal 8 standart installation with H5P field inside one of the drupal content type(For examp. Basic).
When I'm trying to add h5p content as admin user everything works fine,
but, if I'm trying to create h5p content as standart authenticated user I get internal server error 500 after saving node :/
The error inside php debugging is:
Fatal error: Call to a member function access() on null in /home/user/web/mysite.com/public_html/modules/h5p/src/H5PDrupal/H5PDrupal.php on line 1232
I'm already checked permissions for h5p module and everything looks fine. See Attachments.
Also, the content(node) is created, I see it as Admin and even can edit it, but as Authenticated user(or Anonymous user) can't - again Error 500 :S
What is the problem?
Thank you!
thomasmars
Thu, 03/15/2018 - 14:26
Permalink
Hi, this looks like a bug in
Hi, this looks like a bug in the code. I have created an issue in H5P's issue tracker where you can follow along the progress of resolving this: https://h5ptechnology.atlassian.net/browse/HFP-1921
icc
Wed, 05/16/2018 - 14:20
Permalink
There's a permission check
There's a permission check that hasn't been working since it was ported from D7. It's only triggered when the option on the H5P Settings page is set to use the permission check for download and embed. I've added a fix for it in 4d223da. It works for me locally, would you mind testing it to see if it solves your problem?
The fix will be part of the next version of the module.