Activation Problem

twc57's picture

Received this message upon trying to activate plugin: Fatal error: Cannot use object of type WP_Error as array in /home/talk2tc2/public_html/wp-content/plugins/h5p/public/class-h5p-wordpress.php on line 822

icc's picture

Aha! There seems to be a small bug in the system. If you replace the line in question(Line 822 in wp-content/plugins/h5p/public/class-h5p-wordpress.php) with the following:

if (!is_wp_error($data) && $data['response']['code'] === 200) {


It should work.
You are seeing this error since WordPress fails to fetch update information for the H5P plugin. It might be that external communications have been disabled on your server. The fix above should handle disabled communications better.

icc's picture

Thank you for pointing out this issue. It will be fixed in the next version of the plugin.