H5p CONTENTS are missing!

Hi.

Please help me with this h5p issue. H5p plugin *hp5.org Wordpress, H5p version 1.15.6

And my h5p contents are disappearing whenever I update or even create a new one. Can someone help me with this issue? 

and also I have received this error:

I want to...: report a possible security issue My request: Hi. I need someone to help me from your technical support. We received this error in our website after we update / recreate h5p contents. Error Details ============= An error of type E_ERROR was caused in line 1875 of the file /var/www/html/nexpd/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php. Error message: Uncaught Error: Class "ZipArchive" not found in /var/www/html/nexpd/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php:1875 Stack trace: #0 /var/www/html/nexpd/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php(2214): H5PExport->createExportFile() #1 /var/www/html/nexpd/wp-content/plugins/h5p/public/class-h5p-plugin.php(939): H5PCore->filterParameters() #2 /var/www/html/nexpd/wp-content/plugins/h5p/public/class-h5p-plugin.php(1033): H5P_Plugin->get_content_settings() #3 /var/www/html/nexpd/wp-content/plugins/h5p/public/class-h5p-plugin.php(925): H5P_Plugin->add_assets() #4 /var/www/html/nexpd/wp-includes/shortcodes.php(395): H5P_Plugin->shortcode() #5 [internal function]: do_shortcode_tag() #6 /var/www/html/nexpd/wp-includes/shortcodes.php(235): preg_replace_callback() #7 /var/www/html/nexpd/wp-includes/class-wp-hook.php(310): do_shortcode() #8 /var/www/html/nexpd/wp-includes/plugin.php(205): WP_Hook->apply_filters() #9 /var/www/html/nexpd/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(1864): apply_filters() #10 /var/www/html/nexpd/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php(569): WP_REST_Posts_Controller->prepare_item_for_response() #11 /var/www/html/nexpd/wp-includes/rest-api/class-wp-rest-server.php(1188): WP_REST_Posts_Controller->get_item() #12 /var/www/html/nexpd/wp-includes/rest-api/class-wp-rest-server.php(1035): WP_REST_Server->respond_to_request() #13 /var/www/html/nexpd/wp-includes/rest-api.php(545): WP_REST_Server->dispatch() #14 /var/www/html/nexpd/wp-includes/rest-api.php(2911): rest_do_request() #15 [internal function]: rest_preload_api_request() #16 /var/www/html/nexpd/wp-includes/block-editor.php(740): array_reduce() #17 /var/www/html/nexpd/wp-admin/edit-form-blocks.php(77): block_editor_rest_api_preload() #18 /var/www/html/nexpd/wp-admin/post.php(187): require('...') #19 {main} thrown

 

 

Attachments: 
otacke's picture

Hi!

ZipArchive is not part of H5P, but it is a part of PHP, the programming language that is running on your server. H5P uses it to create the export files when saving content. If ZipArchive cannot be found in PHP ("Uncaught Error: Class "ZipArchive" not found in /var/www/html/nexpd/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php"), then H5P cannot create the export files (or upload H5P content) and crashes.

The first step would be to let your platform admin confirm that ZipArchive is running as expected in PHP on your server. It is possible that your PHP version was updated and that the new version does not ship with the PHP zip extension that is required.

Best,

Oliver