• After upgrading to PHP 8.3, unfortunately creating new H5P content does not work any more. Creating any new H5P content results in WordPress critical error message, and attempting to add said content to any page means that the page cannot be opened; attempting to do so will result in the critical error message as well. Any assistance would be greatly appreciated. Thanks!

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

    (@icc0rz)

    Hi, this should work fine.
    Could you share any relevant error messages from the php error_log file?

    Thread Starter kayaulai

    (@kayaulai)

    Hi and sorry for the late reply! I finally got to look through the rather long error log and I think this appears the most relevant:

    [10-Mar-2024 08:02:34 UTC] PHP Fatal error: Uncaught Error: Class “ZipArchive” not found in /var/www/html/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php:1876
    Stack trace: 0 /var/www/html/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php(2230): H5PExport->createExportFile() #1 /var/www/html/wp-content/plugins/h5p/public/class-h5p-plugin.php(939): H5PCore->filterParameters() 2 /var/www/html/wp-content/plugins/h5p/public/class-h5p-plugin.php(1033): H5P_Plugin->get_content_settings() 3 /var/www/html/wp-content/plugins/h5p/public/class-h5p-plugin.php(925): H5P_Plugin->add_assets() #4 /var/www/html/wp-includes/shortcodes.php(433): H5P_Plugin->shortcode() 5 [internal function]: do_shortcode_tag() 6 /var/www/html/wp-includes/shortcodes.php(273): preg_replace_callback() 7 /var/www/html/wp-includes/class-wp-hook.php(324): do_shortcode() 8 /var/www/html/wp-includes/plugin.php(205): WP_Hook->apply_filters() 9 /var/www/html/wp-includes/blocks/post-content.php(48): apply_filters() 10 /var/www/html/wp-includes/class-wp-block.php(258): render_block_core_post_content() 11 /var/www/html/wp-includes/class-wp-block.php(244): WP_Block->render() 12 /var/www/html/wp-includes/blocks.php(1484): WP_Block->render() 13 /var/www/html/wp-includes/blocks.php(1522): render_block() 14 /var/www/html/wp-includes/block-template.php(260): do_blocks() 15 /var/www/html/wp-includes/template-canvas.php(12): get_the_block_template_html() 16 /var/www/html/wp-includes/template-loader.php(106): include(‘/var/www/html/w…’) 17 /var/www/html/wp-blog-header.php(19): require_once(‘/var/www/html/w…’) 18 /var/www/html/index.php(17): require(‘/var/www/html/w…’) 19 {main}

    thrown in /var/www/html/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php on line 1876

    php-zip is installed on my server, and I have tried installing it again but it just told me it’s already installed.

    Most of the rest is just warnings about deprecated stuff. Thanks again!

    • This reply was modified 8 months, 1 week ago by kayaulai.
    Plugin Author icc0rz

    (@icc0rz)

    It sounds like your zip support/extension isn’t enabled. Try creating a simple info.php and add <?php phpinfo() to it. The page should show if zip is actually on or not.
    https://www.php.net/phpinfo

    Thread Starter kayaulai

    (@kayaulai)

    Thanks! It was enabled unfortunately. When I run php -m I get this:

    PHP Startup: Unable to load dynamic library ‘zip.so’ (tried: /usr/lib64/php/modules/zip.so (/usr/lib64/php/modules/zip.so: undefined symbol: zip_compression_method_supported), /usr/lib64/php/modules/zip.so.so (/usr/lib64/php/modules/zip.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘There Has Been a Critical Error on Your Website after PHP update’ is closed to new replies.