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
function ($matches) use ($cssRelPath) {
if (preg_match("/^(data:|([a-z0-9]+:)?\/)/i", $matches[1]) === 1) {
return $matches[0]; // Not relative, skip
}
return 'url("../' . $cssRelPath . $matches[1] . '")';
Any idea what could be going wrong ( I don't know php...)
Thank you in advance
monk@
Sun, 04/10/2016 - 16:27
Permalink
activation problems in WP
Hi, After activation h5p I get the following error:
Fatal error: Call to undefined function wp_safe_remote_get() in /home/ecdlbgx0/public_html/wp-content/plugins/h5p/admin/class-h5p-plugin-admin.php on line 344
I haven’t idea how did I fix it?
Thank you
vanya
Sun, 04/10/2016 - 16:55
Permalink
My installation problem fixed!
I had to upgrade my website environment to php version 5.6 and that did the trick!
icc
Tue, 04/12/2016 - 11:03
Permalink
Hi monk@! Which version of
Hi monk@! Which version of WordPress are you using?
icc
Tue, 04/12/2016 - 11:02
Permalink
Hi vanya! Yes, you'll have to
Hi vanya! Yes, you'll have to have at least version 5.3 of PHP for H5P to work properly. I'm sorry this hasn't been communicated well enough.