H5P WP | Interactive Video | `Uncaught TypeError:`

Hello,

I have the latest version of the H5P WordPress Plugin installed on a local WP site (currently under development). I am receiving a fatal error when trying to utilize the interactive video H5P component:

````

Fatal error: Uncaught TypeError: property_exists(): Argument #1 ($object_or_class) must be of type object|string, array given in /Users/.../app/public/wp-content/plugins/h5p/h5p-php-library/h5p.classes.php:4037

```

I am running PHP version 8.1.23, WordPress version 6.3.2, and I have the WP env running within the LocalWP app on an M1 mac with the most recent macOS.

For reference, here is the cited code (line 4037):

if (! property_exists($group, $field->name)) { //$this->h5pF->setErrorMessage($this->h5pF->t('No value given for mandatory field ' . $field->name)); }
Content types: 
otacke's picture

My answer to that is two months old: https://h5p.org/comment/50138#comment-50138

@BV: When is H5P Group planning to simply ship the WordPress plugin with a later version of H5P core at least?

worked like a charm :-) 

BV52's picture

Hi Oliver,

I'll have to check with the team but it may take a while before I can get back to you as Pal is currently travelling.

-BV

otacke's picture

Pål should concentrate on Sunday, yes :-)

otacke's picture

Amendmend: For the latest version of H5P core released (e.g. on moodle already), it will be required to update some of the H5P for Wordpress plugin's function headers due to API changed - or to use https://github.com/h5p/h5p-wordpress-plugin/pull/150 which does this while also implementing support for the H5P OER Hub. So it's not simply shipping a(ny) later version of H5P core. Still feasible.

Thanks, otacke - I appreciate the reply.

I'll backup my project and give your solution a try as soon as possible.