Text and Image content type not showing anything

Hello,

I am using the text and image content type to create content in Drupal. However, when I try to view the content on the front end, nothing is displayed.

Here is the content that is causing issues: https://h5pstudio.ecampusontario.ca/content/69880.

I am using Drupal version 10.

Upon checking my browser console, I encountered the following JavaScript errors:

Uncaught ReferenceError: H5P is not defined at text.js?svnhsi:1:1

and

Unable to find constructor for: H5P.AdvancedText 1.1

Could you please assist me in resolving these issues?

Thank you.

Content types: 
papi Jo's picture

What exactly do you mean by "the text and image content type"? There is no H5P content called like this.

otacke's picture

Hi!

The error message `Unable to find constructor for: H5P.AdvancedText 1.1` may hint to that content type not being installed correctly (could be a file system or database issue). Given that its files are set, but contain a modification compared to the official version (see line 1 of https://h5pstudio.ecampusontario.ca/sites/default/files/h5p/libraries/H5P.AdvancedText-1.1/text.js commented with "/* added by VR on 2025-05-06 */"), it's more likely that the whole H5P integration is suffering from an issue - as the H5P class does not seem to be loaded into the browser context. That's something that would need to be checked in the H5P integration.

It's also likely that Yasin Dahi was involved in setting up that H5P integration for eCampusOntario, so he knows what may have been modified and is probably the best person to consult for help.

Cheers,
Oliver