Error in WP using subdomain for uploads

Hi,

I've installed the plugin in Wordpress. Creation of content works fine but when I want to see it in action, even in Backend or Frontend, there is a Javascript error and doesn't load anything.  

admin.php?page=h5p&task=show&id=1:344 Uncaught TypeError: Cannot set property 'innerHTML' of null

    at admin.php?page=h5p&task=show&id=1:344

8111215df230c36b8e6e9579c4af897e8824c1d7.js Failed to load resource: the server responded with a status of 404 ()

8111215df230c36b8e6e9579c4af897e8824c1d7.css Failed to load resource: the server responded with a status of 404 ()

8111215df230c36b8e6e9579c4af897e8824c1d7.js Failed to load resource: the server responded with a status of 404 ()

h5p.js:72 Unable to find constructor for: H5P.Questionnaire 1.1

H5P.error @ h5p.js:72

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

    at Object.H5P.getCopyrights (h5p.js:82)

    at HTMLDivElement.<anonymous> (h5p.js:11)

    at Function.each (jquery.js:1)

    at init.each (jquery.js:1)

    at Object.H5P.init (h5p.js:8)

    at HTMLDocument.<anonymous> (h5p.js:155)

    at c (jquery.js:1)

    at Object.fireWith [as resolveWith] (jquery.js:1)

    at Function.ready (jquery.js:1)

    at HTMLDocument.H (jquery.js:1)

8111215df230c36b8e6e9579c4af897e8824c1d7.css Failed to load resource: the server responded with a status of 404 ()

404 errors occurs because is trying to load JS files in main domain but my WP uses a separated subdomain for uploads folder. I think the plugin is not ready for WP sites with uploads folder outside main domain.

In my case:

Incorrect -> https://harodigital.com/harodigital-com/uploads/h5p/cachedassets/8111215...
Correct -> https://static.harodigital.com/harodigital-com/uploads/h5p/cachedassets/... this possible to solve?

Thanks

icc's picture

Yes, unfortunately, this isn't supported yet. I've created an issue for resolving this: HFP-849

Thank you for sharing.