"Course Presentation" content type missing

Created on 6 October 2024, 2 months ago

Problem/Motivation

Hello,

I don't see "Course Presentation" choice in H5P Editor when creating a new content after clean install of Drupal 10.3.6 and H5P module.

Is this content type currently not supported? Or am I missing something in my setup?

Thank you.

💬 Support request
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇯🇵Japan bkenro

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bkenro
  • 🇫🇷France florian.turc

    Hi @bkenro ,

    Facing the same problem than you, I identified that we can not find this H5P object because the version of the H5P editor in the 2.0.0@alpha4 module uses the version 1.24 of H5P libraries.
    In order to use the 'Course presentation', and the 'Image Choice' in my case, we need to use the 2.0.x-dev version of the module ( https://www.drupal.org/project/h5p/releases/2.0.x-dev ).

    I so delete all the H5P fields I had already done, uninstall the module, clear my caches, and install the new version of the module.
    After, I install the patch proposed by @shaundychko here: https://www.drupal.org/project/h5p/issues/3420268#comment-15842549 🐛 Support h5p/h5p-core:1.26 and h5p/h5p-editor:1.25 Needs work and copy a file (see comment #16).

    To install the patch, I had to install the package cweagans/composer-patches, and then modify the composer.json file at the same level than the web folder (adding in the extras section:

    "extras": {
        ...
        "enable-patching": true,
        "patches": {
            "drupal/h5p": {
                "#3420268": "https://www.drupal.org/files/issues/2024-02-14/support-h5p-1.26-3420268-12.patch",
            }
        }
        ...
    }
    

    Puis, j'ai effectué la commande composer update afin que le patch soit pris en compte.

    I was then able to get and download an 'Image Choice' set.

  • 🇯🇵Japan bkenro

    @florianturc,
    Thank you so much for the detailed procedure. I could see the option of "Course Presentation" in the content types in h5p_editor at last. But when I tried to install the content type, failed with the "500 Service unavailable" error.

    Keeping study the issue so I will report something new knowing.
    My steps are below:

    First, I followed your procedure and got the 2.0.x-dev version with the #3420268 patch applied.

    Then I moved to the h5p module folder.

    $ cd web/modules/contrib/h5p

    and modified the lines under "require" key in composer.json file there from

      "require": {
        "h5p/h5p-editor": "1.25",
        "h5p/h5p-core": "1.26"
      },
    

    to

      "require": {
        "h5p/h5p-editor": "^1.25",
        "h5p/h5p-core": "^1.26"
      },
    

    and execute `composer update`, then got following messages,

    $ composer update
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 0 installs, 1 update, 0 removals
      - Upgrading h5p/h5p-core (1.26 => 1.27.0)
    Writing lock file
    Installing dependencies from lock file (including require-dev)
    Package operations: 0 installs, 1 update, 0 removals
      - Upgrading h5p/h5p-core (1.26 => 1.27.0): Extracting archive
    Generating autoload files
    No security vulnerability advisories found.
    

    to get the latest h5p packages (h5p-core and h5p-editor).

    Then I replaced the h5p packages under project's vendor folder with ones in the vendor folder under the h5p module folder.

    $ rsync -r ./vendor/h5p/ ../../../../vendor/h5p/ --delete
    

    After cache clear, I successfully got the Course Presentation option, so I tried to the new content, but no luck wit 500 error.

  • 🇯🇵Japan bkenro

    Sorry, the cause of the 500 error was incorrect permissions on the files folder. After adjusting that, I can now perfectly use Course Presentation and Interactive Video content types.

    Thank you!

Production build 0.71.5 2024