• Resolved bbirkett

    (@bbirkett)


    Huge H5P fans here — so much so we paid Joubel for the integration of MathJax into H5P to support further development of this terrific tool that everyone can use.

    We’ve previously created 50+ questions, all without issue.

    Not sure when this problem arose since we haven’t edited or created a new question in a while. Currently when we try to do either, on the edit screen we see a blank options box toward the bottom, along with this JS error in the console:
    Uncaught TypeError: widgets[0] is undefined
    in h5peditor-semantic-structure.js:210:7

    Then after hitting ‘Update’ to exit that screen, the Question no longer appears at all, and the console shows a few errors:

    
    Uncaught TypeError: H5P.Question is undefined [in a JS file in uploads/H5P/cachedassets]
    Unable to find constructor for: H5P.DragQuestion 1.14 [h5p.js]
    Uncaught TypeError: instance is undefined  [h5p.js]
    

    The question of course then no longer renders on the front end either.

    We’re running WP6.0.1, H5P plugin Version 1.15.4, and all of our libraries are up-to-date. With WP_DEBUG set to true, we’re not seeing any PHP errors.

    We work primarily in FF, but have the same issues in Chrome.

    We would *greatly* appreciate any suggestions you might have for how to resolve this since we’re a bit stuck at the moment. Thanks very much in advance for anything you can provide!

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

    (@icc0rz)

    Hi,

    What content type were you using? It looks as there may be a library missing. I tried reproducing it on fresh site with a simple drag and drop. Perhaps you could share the content link as well so I can take a closer look?

    Thread Starter bbirkett

    (@bbirkett)

    Apologies: meant to say that this is affecting all of the content types we use, which include drag the words, multiple choice, advanced fill the blanks, and find the hotspot.

    I uploaded two sample .h5p files from h5p.org (for multiple choice and drag the words) so we can be sure they should work, and put them on this page: https://mathenodev7.wpengine.com/h5p-testing-page/, which shows the same errors in the console. Happy to provide backend access if that’d be helpful, and also know your support can only go so far.

    Really appreciate whatever insights and suggestions you can offer!

    Thread Starter bbirkett

    (@bbirkett)

    Might have found the problem here: a different page, which has a working H5P question we created on it, shows this error:

    
    Source map error: Error: request failed with status 404
    Resource URL: https://mathenodev7.wpengine.com/wp-content/uploads/h5p/cachedassets/ec5bc20fc9de39ee410a16c87d58674f8f4e427d.js
    Source Map URL: ractive.min.js.map
    

    We’ve searched, and that .map file seems not to be on the site at all. The folder wp-content/uploads/h5p/libraries/RactiveJS-0.8/ is present with the files library.json and reactive.min.js, but not the .map.

    I’m hoping that this new information might help you suggest a path toward a fix. As before, we deeply appreciate anything you can offer.

    Thanks very much, and I hope you’re having/have had a nice weekend.

    Plugin Author icc0rz

    (@icc0rz)

    It appears some of the dependencies are missing for some reason.
    If you could add the following to your wp-config.php it should make it easier to determine what’s going wrong:
    define('H5P_DISABLE_AGGREGATION', true);

    Note that this may actually fix the issue if it’s a aggregation/caching issue.

    Thread Starter bbirkett

    (@bbirkett)

    Thanks for the troubleshooting suggestion. I’ve added the line.

    Most of the errors look to me to be the same with aggregation disabled, except on this page

    
    Source map error: Error: request failed with status 404
    Resource URL: https://mathenodev7.wpengine.com/wp-content/uploads/h5p/cachedassets/ec5bc20fc9de39ee410a16c87d58674f8f4e427d.js
    Source Map URL: ractive.min.js.map
    

    is now

    
    Source map error: Error: request failed with status 404
    Resource URL: https://mathenodev7.wpengine.com/wp-content/uploads/h5p/libraries/RactiveJS-0.8/ractive.min.js?ver=0.8.14
    Source Map URL: ractive.min.js.map
    

    By the way, for troubleshooting purposes I’ve disabled almost all other plugins on this site, including ‘Autoptimize,’ which I know can often be the source of aggregation issues.

    Thank you, very much, for your continued help here!

    Plugin Author icc0rz

    (@icc0rz)

    It appears you are missing one of the base libraries. I’m not sure how that may have happened. What I would recommend is trying to reinstall it.
    1. Download multiple choice from here: https://h5p.org/multichoice
    2. Edit your wp-config.php again, adding: define(‘H5P_DEV’, true);
    3. Go the H5P Content > Libraries page. Here you upload the multiple choice h5p you downloaded in step 1.
    4. Check if the content now works.
    5. Remember to remove the previously added line from wp-config.php: define(‘H5P_DEV’, true);

    Thread Starter bbirkett

    (@bbirkett)

    Awesome: yes, that worked. Really weird that this developed, but we are very, very grateful for the fix.

    Thank you!

    Plugin Author icc0rz

    (@icc0rz)

    I’m glad to hear it got resolved.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Can’t edit or create new question’ is closed to new replies.