install problem

Hi guys!

I have updated h5p plugin recently after that my plugin didn't work  Plugin could not be activated because it triggered a fatal error.

Parse error: syntax error, unexpected '[' in /home/fevraluz/public_html/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php on line 2255 

what can i do?

otacke's picture

Which version of the Wordpress plugin are you using? In the latest version, line 2255 of h5p.classes.php lies within a comment block and doesn't even contain a [.

icc's picture

Hi! It seems that some code was added that requires a newer version of PHP (5.4+). This was not by intent and we will be doing another release of the plugins very shortly(within the hour) reverting this requirement. I'm sorry for the inconvenience. 

On a side note, for you own security I recommend using PHP 5.6+ or newer(at the current time) as any older version is no longer official supported and may be exposed to unpatched security vulnerabilities. More info available here: http://php.net/supported-versions.php

it's working thank you team!

 

icc's picture

I'm glad to hear! Thank you for letting us know.

I have wordpress v4.7.1 installed on an Apache virtual server, running php v5.5.

After installing the H5P plugin, I tried to upload the library content and got an error saying that my version of php doesn't support zip files. Ok your library files are *.h5p extension. So I don't get it.

Can I upload the library content via ftp? If so what directory do I drop them in?

Thanks in advance

You can't via ftp  i have tried it wasn't work you should try add new content and upload the .h5p with ready examples it adds to the library automatically

I got an error that my php can't upload .zip files. Wierd.

Hi you don't need upload zip just https://h5p.org/content-types-and-applications here is the got examples you just download any of these examples and enter your plugin in your site click the add new button when you enter you will see on the right  create and upload click the upload and upload the example which you downloaded that function  will add automatically to your library 

I did what you suggested several times before placing this post. The upload feature is not working. I need to know how to resolve it by, 1. solving the configuration issue or 2 uploading the sample files into the appropriate server location(s).

Thanks in advance.

icc's picture

You should check if you have any error messages in your web server's error_log file after trying to upload.

tomaj's picture

h5p files are actually just zip files with different file endings.

- Tom

tomaj's picture

You also need a php extension enabled called ZipArcheive.

You can see a similar problem here