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)); }
otacke
Thu, 11/02/2023 - 23:20
Permalink
My answer that is two months
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?
rowclayt
Fri, 11/03/2023 - 00:41
Permalink
worked like a charm :-)
worked like a charm :-)
BV52
Fri, 11/03/2023 - 00:50
Permalink
Hi Oliver,I'll have to check
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
Fri, 11/03/2023 - 07:06
Permalink
Pål should concentrate on
Pål should concentrate on Sunday, yes :-)
otacke
Wed, 11/08/2023 - 10:08
Permalink
Amendmend: For the latest
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.
rowclayt
Fri, 11/03/2023 - 00:25
Permalink
Thanks, otacke - I appreciate
Thanks, otacke - I appreciate the reply.
I'll backup my project and give your solution a try as soon as possible.