• Resolved perbjo

    (@perbjo)


    Hi

    I can insert a H5P-code to a page and save the page. But when I try to preview the page, the code-link is missing.
    I tried several themes with the same result.
    Is there something in the settings I’m missing?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author icc0rz

    (@icc0rz)

    That is strange.

    If you open your web browsers console (Ctrl+Shift+J in Chrome) do you see any error messages in red?

    Thread Starter perbjo

    (@perbjo)

    I get these errors:

    ed0abd89a90b6db321326ff3feea2c40b1d4f3ce.js Failed to load resource: the server responded with a status of 403 (Forbidden)
    h5p.js?ver=1.9.4:861 Unable to find constructor for: H5P.MemoryGame 1.2
    H5P.error @ h5p.js?ver=1.9.4:861
    h5p.js?ver=1.9.4:1773 Uncaught TypeError: Cannot read property ‘on’ of undefined
    at Object.H5P.on (h5p.js?ver=1.9.4:1773)
    at HTMLDivElement.<anonymous> (h5p.js?ver=1.9.4:205)
    at Function.each (jquery.js?ver=1.9.4:2)
    at init.each (jquery.js?ver=1.9.4:2)
    at Object.H5P.init (h5p.js?ver=1.9.4:92)
    at HTMLDocument.<anonymous> (h5p.js?ver=1.9.4:2136)
    at c (jquery.js?ver=1.9.4:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.9.4:2)
    at Function.ready (jquery.js?ver=1.9.4:2)
    at HTMLDocument.H (jquery.js?ver=1.9.4:2)

    Plugin Author icc0rz

    (@icc0rz)

    The web server is denying access to the application files(.js) in the uploads folder. You should check your web server configuration to make sure it delivers the .js files in wp-content/uploads/.

    If you are using Apache you should check to make sure there hasn’t been generated a .htaccess file in wp-content/uploads/ that blocks .js files. Some “security” plugins may do this automatically. Changing or removing the file will fix the issue.

    Thread Starter perbjo

    (@perbjo)

    I use plugin at two different pages, and for one of them it works absolutly perfect.
    I tried support at my host One.com, and they could tell me, that the working site used:
    Wordpress version = ‘4.7.6’;
    H5P: Version 1.9.4
    PHP version: 5.6

    And the non-working:
    Wordpress version: ‘4.8.2’;
    H5P: Version 1.9.4
    PHP version: 7.1

    I tried to downgrade php to 5.6, but that didn’t solve the problem, so can it be the plugin not being up to date with the newest WordPress?

    Plugin Author icc0rz

    (@icc0rz)

    Ah, I see. It should be working on all the newest WordPress versions.

    Did you check the wp-content/uploads folder for a file named .htaccess? You may have to enable ‘Show hidden files’ in your file browsing tool to see it.

    Thread Starter perbjo

    (@perbjo)

    I deleted .htaccess in the wrong folder yesterday… Now I did it where you told me, and now it runs perfect.
    Thank you for your support!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘H5P code dont show up on page’ is closed to new replies.