Notices and Warnings "Undefined Property" and "Invalid Arguments"

Hello All,

Anyone seen this before?

• Notice: Undefined property: stdClass::$main_library in h5p_get_content() (line 835 of/var/www/html/vhost70/www/sites/all/modules/h5p/h5p.module). • Notice: Undefined property: stdClass::$filtered in h5p_get_content() (line 837 of/var/www/html/vhost70/www/sites/all/modules/h5p/h5p.module). • Notice: Undefined property: stdClass::$h5p_slug in h5p_get_content() (line 840 of/var/www/html/vhost70/www/sites/all/modules/h5p/h5p.module). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3053 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Warning: Invalid argument supplied for foreach() in H5PContentValidator->validateGroup() (line 3090 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php). • Notice: Undefined index: machineName in H5PContentValidator->validateLibrary() (line 3144 of/var/www/html/vhost70/www/sites/all/modules/h5p/library/h5p.classes.php).

regards,

Simon

fnoks's picture

Hi,

Thanks for reporting. I have a few questions for you:

  • When do you get these error messages?
  • Is this happening when viewing an H5P?
  • Is this error shown when viewing all H5Ps? 
  • Do you also have JavaScript errors in the browser's console?

Hi fnoks,

I am getting the same errors.

  • I get these error messages only when previewing an Interactive Content node
  • Appears while previewing any H5P node
  • No JavaScript errors are thrown in the browser's console
fnoks's picture

I see. Preview is not supported for H5P, but you should not get these error messages. Could you please create an issue on www.drupal.org/project/h5p ?