H5P version 1.16 not working in Moodle 3.3

Hello just updated the Moodle-Plugin to 1.16.

I can view the content, but editing the content or add new content is not possible.

I can choose the content type, but then a wheel is turning and turning and turning.

Any ideas?

Hartmut

Attachments: 
BV52's picture

Hi Hartmut,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. Moodle 3.3
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version: 3.3
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors
  8. Any PHP errors
  9. Screenshots if it's a visual problem
  10. Any recent changes to the environment - Updated the plugin to V 1.16
  11. Any recent changes to the browser you're using (new extensions, updates etc.)

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52

1. Editing already saved content types or editing new content is not possible. "Loading please wait" is displayed and nothing happens. You can look at the schreenshot.
2. Platform is Moodle 3.3.2+
3 The bug is displayed on mobile and desktop
4. The bug appears in all browsers
5. H5P plugin version 1.16
6. The bug appears in all content types
7.+8. Console errors:
Failed to load resource: the server responded with a status of 404 (not found)
codemirror.css:1 Failed to load resource: the server responded with a status of 404 (not found)
fullscreen.css:1 Failed to load resource: the server responded with a status of 404 (not found)
jquery.js?ver=2019030700:2 Allow attribute will take precedence over 'allowfullscreen'.
attr @ jquery.js?ver=2019030700:2
h5peditor.js?ver=2019030700:236 Ajax request failed
error @ h5peditor.js?ver=2019030700:236
h5peditor.js?ver=2019030700:237 Object
error @ h5peditor.js?ver=2019030700:237
h5peditor.js?ver=2019030700:238 parsererror
error @ h5peditor.js?ver=2019030700:238
h5peditor.js?ver=2019030700:239 SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at parseJSON (jquery.js?ver=2019030700:2)
    at Fn (jquery.js?ver=2019030700:4)
    at k (jquery.js?ver=2019030700:4)
    at XMLHttpRequest.r (jquery.js?ver=2019030700:4)
error @ h5peditor.js?ver=2019030700:239
jquery.dataTables.css:1 Failed to load resource: the server responded with a status of 404 (not found)
codemirror.css:1 Failed to load resource: the server responded with a status of 404 (not found)
fullscreen.css:1 Failed to load resource: the server responded with a status of 404 (not found)

9. It's not a visual problem

10. No recent chages
11. No recent changes

Attachments: 

1. Editing old Content types is not possible. Editing new Content is also not possible.

2. Moodle Version 3.3.2+, H5P-Version 1.16

3. The problem occurs on mobile and Desktop

4. Error is displayed in any browser (Chrome, Firefox, Safari Edge)

5. H5P-Plugin Version 1.16

6. The error occurs in all content types

7.Console errors:

Failed to load resource: the server responded with a status of 404 (not found)
codemirror.css:1 Failed to load resource: the server responded with a status of 404 (not found)
fullscreen.css:1 Failed to load resource: the server responded with a status of 404 (not found)
jquery.js?ver=2019030700:2 Allow attribute will take precedence over 'allowfullscreen'.
attr @ jquery.js?ver=2019030700:2
h5peditor.js?ver=2019030700:236 Ajax request failed
error @ h5peditor.js?ver=2019030700:236
h5peditor.js?ver=2019030700:237 Object
error @ h5peditor.js?ver=2019030700:237
h5peditor.js?ver=2019030700:238 parsererror
error @ h5peditor.js?ver=2019030700:238
h5peditor.js?ver=2019030700:239 SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at parseJSON (jquery.js?ver=2019030700:2)
    at Fn (jquery.js?ver=2019030700:4)
    at k (jquery.js?ver=2019030700:4)
    at XMLHttpRequest.r (jquery.js?ver=2019030700:4)
error @ h5peditor.js?ver=2019030700:239
jquery.dataTables.css:1 Failed to load resource: the server responded with a status of 404 (not found)
codemirror.css:1 Failed to load resource: the server responded with a status of 404 (not found)
fullscreen.css:1 Failed to load resource: the server responded with a status of 404 (not found)

8. not known

9. I attached a screenshot

10. no changes

11. no changes

 

Attachments: 
BV52's picture

Hi Hartmut,

Can you please check if another plugin may be interfering with H5P. Security plugins and themes are some of the things that you could check. Disabling them to see if they are the cause. Once narrowed down changing their settings to let H5P go through should do the trick.

-BV52

Yes, I found a plugin which had to be updated. This error is gone. But the bug has not vanished.

I attached a logfile from my console (Chrome/network tab). Maybe this might help.

Regards

Hartmut

Attachments: 
icc's picture

Could you check the network tab to determine what type of requests are failing and what data they contain? 

Also, you may have some error's in your web server's error_log file.