Installation and server related problems

Discuss problems with installing the H5P plugins/modules and content types as well as server-related issues

php warning after wordpress plugin update 1.6.0 and 1.6.1

Hi,

After wp h5p plugin udpate (1.6.0 and 1.6.1) php warning occured:
"Warning: Invalid argument supplied for foreach() in my-site-dir/wp-content/plugins/h5p/public/class-h5p-plugin.php on line 859"

WP - 4.4.2

PHP - 5.4.45, memory limit -256 mb

Possible to fix by adding array() into foreach() in line 859: foreach ((array)$assets['styles'] as $style) {

 

Best regards!

 

activation problems in WP

Hi.

I installe  the h5p plugin ( automatic install in WP admin), but when I try to activate it, I get the following error:

Parse error: syntax error, unexpected T_FUNCTION in /home/www/0121b250f6e36769b12c11376e25e1b0/web/wp-content/plugins/h5p/h5p-php-library/h5p-default-storage.class.php on line 180

 

The code is

Pages