• Resolved Paul

    (@weeeemwp)


    The shortcode for puzzles/quizzes H5P content is no longer working. Empty rows are displayed on the posts/pages where the shortcode is added.

    – I also noticed the following debug error but am not certain if this is related:
    Constant FILTER_SANITIZE_STRING is deprecated in /../wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 547

    – To reproduce the error I have also attempted to create new blog posts with a H5P shortcode for existing content, but it does not show when published.
    – Also, all existing H5P content is visible in the backend and can be edited.
    – I have disabled the cache as well.
    – An inspection of the rendered code for an embedded H5P content item using a shortcode, shows the following:
    <iframe id="h5p-iframe-32" class="h5p-iframe h5p-initialized" data-content-id="32" style="height:1px" src="about:blank" frameborder="0" scrolling="no" title="Do you know these cozy skiing resorts in Europe?"></iframe>

    Can you please assist?

    PHP version: 8.1
    Wordpress version: 6.1.1
    I have verified that the H5P plugin is updated to the latest version.

    • This topic was modified 1 year, 4 months ago by Paul.
    • This topic was modified 1 year, 4 months ago by Paul.
    • This topic was modified 1 year, 4 months ago by Paul.
    • This topic was modified 1 year, 4 months ago by Paul.
Viewing 1 replies (of 1 total)
  • Thread Starter Paul

    (@weeeemwp)

    Problem has been solved and the most likely root cause was a plugin using lazy loading.

    For anyone experiencing H5P content issues as described above:
    – Check all your plugins if any of them is using “lazy load”. This was the issue with a plugin in this case.
    – When that plugin that use “lazy load” was deactivated, all embeeded H5P content was visible again.

    Lazy loading is the delaying of loading/initializing objects, which can cause content buffering issues when rendering of content below the fold.

Viewing 1 replies (of 1 total)
  • The topic ‘H5P shortcode not working anymore for any content’ is closed to new replies.