• Resolved jsoohoo

    (@jsoohoo)


    Hi there,

    We are not able to edit the h5p content anymore since we upgraded the libraries a while ago. When you click on edit, it says “Loading semantics…” but once loaded, there is no content displaying.

    So we decided to upgrade the plugin to the latest version as well as the libraries however this didn’t fix the issue. We are on the latest WordPress version 4.7.2. It happens across all browsers. But possibly a write permission issue to the folder /wp-content/uploads/h5p/content/, even though it appears to have full rights to the folder. I did try inserting the suggested debug code (both of them) to the file wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php.. to check the user permission, however it didn’t quite print.

    https://h5p.org/node/33018

    Please advise, any pointers would be great.

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

    (@icc0rz)

    Do you get any error messages in your browser’s console(F12) when trying to create/edit content?

    Also, do you see any error messages in your web server’s error_log file when upgrading/updating the content types?
    See the Update/install all recommended content types page for instructions on how to update content types.

    Thread Starter jsoohoo

    (@jsoohoo)

    Hi there,

    Thank you for taking the time to look into this issue.

    I did some further investigation and found that it affects the editor for the content type Course Presentation only. We are on h5p v1.7.10 and libraries version (14/2/2017). A number of teachers are waiting for us to resolve this issue so they can continue their work, therefore we were hoping if its possible to rollback the library version (particularly for the Course Presentation) back to an earlier version?

    Thread Starter jsoohoo

    (@jsoohoo)

    In response to your questions:

    I didn’t see any errors when loading the page (in F12 mode). Please see screenshot.

    In regards to the web server error_log unfortunately this was disabled at the time of upgrade (gah!) but has been reenabled. From the php error logs there is the following:

    php-error log:
    [14-Feb-2017 11:31:11] PHP Warning: copy(/srv/web/www/wp-content/uploads/h5p/temp/h5p-58a2ea7f0e124): failed to open stream: No such file or directory in /srv/web/www/wp-content/plugins/h5p_latest/h5p-php-library/h5p-default-storage.class.php on line 158

    Plugin Author icc0rz

    (@icc0rz)

    Sounds really strange. Which browser are you using? Be sure that the console(F12) is open when the editor page is loaded.
    Are you only having this issue when editing old content or is it present when creating new content as well?

    Unfortunately, the upgrade process is one-way only, meaning it’s not possible to downgrade content.

    It might be that something went wrong when the libraries updates were installed. You can exclude this by doing a “reinstall” of the updates.
    1. Add the following to your wp-config.php file:

    
    define('WP_DEBUG', true);
    error_reporting(E_ERROR | E_WARNING | E_PARSE);
    define('H5P_DEV', true);
    define('H5P_DISABLE_AGGREGATION', true);
    

    This will help display any error messages and also sets the H5P module to accept all uploaded libraries(reinstall them).
    2. Download the .h5p from Update/install all recommended content types.
    3. Upload the file to the H5P Libraries page. You should get a notifiction message if everything was OK.
    4. Double check the web server’s error_log file for any issues.
    5. Check if the editing the content now works.
    6. Important! Remove the debug settings you added to wp-config.php once you’re done.

    Let me know how it goes.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cannot edit h5p content’ is closed to new replies.