Course Presentation Drag N Bar not loading.

shuggs's picture

I've been working with a Laravel H5P package that includes both H5P core and editor.  All working fine, except in the Course Presentation content-type, the Drag-N-Bar doesn't load..

To test the creation vs import; I created a Course Presentation on H5P.org, uploaded via our admin.. it extracted, loads and displays but when editing I have the same issue.  The content under "Add Interaction" only loads half the items. 

Dug through the code; and couldn't find anything broken, as such.. but perhap the dependencies are not being loaded in the correct order when calling the get library endpoint `ajax/libraries`.  This could be related to the Laravel H5P package, an not H5P Editor, but I'm not 100% sure.

Any thoughts on what might be causing the issue ould be greatly appreciated.

Platform: Laravel 5.4
Package: https://packagist.org/packages/chali5124/laravel-h5p
Browsers: All
H5P Core:  1.14
H5P Editor: 1.13
Content Type: H5P.CoursePresentation-1.16

Content types: 
fnoks's picture

Hi,

I don't know the status of the Laravel H5P package, have you tried asking the author?

shuggs's picture

Indirectly... I've made a few pull-requests on translations within Laravel, nothing too involved yet.  There has been no response to emails either.

Are there any requirements on apache/php modules?  Sorry if this is already listed on the site somewhere.

fnoks's picture

Hi,

Maybe this page might help you? Especially the part about PHP extensions.

Best,
Pål

 

shuggs's picture

Turns out the package had overwritten the getAjaxUrl() and appended a trailing slash.  Which resulted in a redirect to http from https.  Root cause to all the issues I was having.

fnoks's picture

Good to hear you figured this one out :) And sorry I couldn't be of more help...

Kindly explain me how to integrate g5p in laravel and use it

Kindly help me how to integrated h5p in laravel. I am using this package.

https://packagist.org/packages/chali5124/laravel-h5p