Some Course presentations stopped showing

Hello,

I have some drupal pages with course presentation library content. They all were working great but some of them stopped showing. The page loads ok but the content built with course presentation library does not show. This bug does not make a problem with all my course presentation pages but some of them stopped showing. 

Thanks,

 

Update in the issue:

I have some error notes from developer tools:

js_rG9E0AcFJKwXbL2drG5kGogWOTce2KeYYrP-I4HJ20U.js:130 Uncaught SyntaxError: Invalid regular expression: missing /

h5p.js:74 Unable to find constructor for: H5P.CoursePresentation 1.7H5P.error @ h5p.js:74

h5p.js:84 Uncaught TypeError: Cannot read property 'getCopyrights' of undefined

thomasmars's picture

Do you have a link to your page ? Can you tell us some more about your system, and try to update your H5P module ?

Thanks for reporting this

Thomas

I encounter this problem on some pages with course presentation library.However, I don't have the same problem in all course presentation pages. 

Here's the link to problem page: http://www.photocopiables.com/online-exercises/present-simple-tense

Here's a link to working page: http://www.photocopiables.com/online-exercises/conditionals-part-2 

I'm using drupal 7.41 version.

Thanks,

icc's picture

You're using a module that minifies all JavaScripts on the page and this module doesn't understand that it doesn't need to minify soundjs-0.6.0.min.js because it's already minified. The issue is that the minifying module sees the following RegExp and thinks it's a comment: 

RELATIVE_PATT=/^[./]*?\//i


You can try turning the module off and everything should work fine. There might be some setting that you should have enabled that makes it ignore files that are already minified. There are no benefits to minifying files that are already minified, it just makes your page slower and possible break something, like in this instance. If it's not possible to configure ignoring of minified files I would consider getting a better module or script.