• Resolved sico7

    (@sico7)


    Hi,

    Today I updated our test site with the latest version of the H5P WordPress plugin (1.7.9).

    I’m now seeing the following error messages on front end pages where H5P objects are located:

    Warning: opendir(/home/onemed6/public_html/wp-content/uploads/sites/18/h5p/content/203): failed to open dir: No such file or directory in /home/onemed6/public_html/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php on line 287

    Warning: Unable to open directory /home/onemed6/public_html/wp-content/uploads/sites/18/h5p/content/203 in /home/onemed6/public_html/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php on line 289

    Warning: file_get_contents(/home/onemed6/public_html/wp-content/uploads/sites/18/h5p/libraries/jQuery.ui-1.10/h5p-jquery-ui.js): failed to open stream: No such file or directory in /home/onemed6/public_html/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php on line 190

    Warning: file_get_contents(/home/onemed6/public_html/wp-content/uploads/sites/18/h5p/libraries/jQuery.ui-1.10/h5p-jquery-ui.css): failed to open stream: No such file or directory in /home/onemed6/public_html/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php on line 190

    Also, when I attempt to edit existing H5P objects in the back end I see the same error messages at the top of the page.

    I have updated all of the libraries to the latest versions.

    Any ideas how I can rectify this?

    Thanks

    Simon

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

    (@icc0rz)

    Do you get this when creating new content or only for old content?
    Has the database been copied from a production site or something? If so you need to ensure that all files under wp-content/uploads are copied as well.

    Double check the file permissions for the wp-content/uploads/sites/18/h5p/content folder. (PHP/web server user must be able to write to it)

    Thread Starter sico7

    (@sico7)

    Hi icc0rz,

    Thanks for the response and my apologies for the delay in coming back to you.

    The issue was related to the uploads folder not being copied over. I’ve copied it over now and no longer see the error messages.

    However, when I edit any of the existing content types the word (deprecated) appears next to the object type in the editor. Is this anything to worry about or is it just because they were created with an older version of the plugin?

    Thanks

    Simon

    Plugin Author icc0rz

    (@icc0rz)

    Ah, great that you got it working.

    Deprecated means that there is an update available for this content. The content may be upgraded through the Libraries page. More details about this can be found in the Upgrade existing content section.
    Let me know if you run into any issues or have further questions.

    Thread Starter sico7

    (@sico7)

    Thanks icc0rz.

    I’ve updated the libraries but the last one (Multiple Choice 1.6.0) is getting stuck on 31%. This type has the greatest number of objects (H5P content) associated with it (125).

    Any ideas how to get it to update?

    Thanks

    Simon

    Plugin Author icc0rz

    (@icc0rz)

    Could you have your browser’s error console open while running the upgrade? Usually, F12 or Ctrl+Shif+J to open –?looks for any red error messages.

    If you don’t see any, try to run the upgrade from another browser

    Thread Starter sico7

    (@sico7)

    Hi icc0rz,

    I’ve tried 3 different browsers and I get the same result in each. The update doesn’t get past 31%.

    Here is what I get in the error console in each browser:

    Chrome (stuck at 31%)

    https://onemedsites.org/learn/wp-admin/admin-ajax.php?action=h5p_content_upgrade_progress&id=78 500 (Internal Server Error)
    send @ jquery.js?ver=1.7.9:4
    ajax @ jquery.js?ver=1.7.9:4
    b.(anonymous function) @ jquery.js?ver=1.7.9:4
    ContentUpgrade.nextBatch @ h5p-content-upgrade.js?ver=1.7.9:163
    ContentUpgrade.workDone @ h5p-content-upgrade.js?ver=1.7.9:302
    done @ h5p-content-upgrade.js?ver=1.7.9:119
    self.workers.(anonymous function).onmessage @ h5p-content-upgrade.js?ver=1.7.9:147

    Safari (stuck at 31%)

    Failed to load resource: the server responded with a status of 500 (Internal Server Error) https://onemedsites.org/learn/wp-admin/admin-ajax.php?action=h5p_content_upgrade_progress&id=78

    Firefox stuck on 31%

    https://onemedsites.org/learn/wp-admin/admin-ajax.php [HTTP/1.1 500 Internal Server Error 7501ms]

    actionh5p_content_upgrade_progressid78

    Could this be some kind of permission issue relating to ajax on our server?

    Thanks for all you help.

    Simon

    Plugin Author icc0rz

    (@icc0rz)

    Ah, it looks like something may be wrong in the plugin. Do you mind checking your web server’s error_log file?

    I feel confident that we should be able to resolve this issue. Thank you for the quick reply.

    -Frode

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Error messages after updating to H5P Plugin 1.7.9’ is closed to new replies.