A lot of errors regarding fonts in moodle

I'm seeing a lot of errors like this:

Exception - Call to a member function get_content() on boolean

More information about this error

Debug info:
Error code: generalexceptionmessageStack trace:
  • line 258 of /mod/hvp/classes/file_storage.php: Error thrown
  • line 2289 of /mod/hvp/library/h5p.classes.php: call to mod_hvp\file_storage->cacheAssets()
  • line 184 of /mod/hvp/classes/view_assets.php: call to H5PCore->getDependenciesFiles()
  • line 83 of /mod/hvp/classes/view_assets.php: call to mod_hvp\view_assets->getdependencyfiles()
  • line 44 of /mod/hvp/view.php: call to mod_hvp\view_assets->__construct()
Output buffer: <br /> <b>Warning</b>: copy(/local/courses/temp/hvp-5c2e94caca223/H5P.FontIcons-1.0/fonts/h5p.eot): failed to open stream: No such file or directory in <b>/var/www/ssl/gs_35/lib/filestorage/file_system_filedir.php</b> on line <b>234</b><br /> <br /> <b>Warning</b>: copy(/local/courses/temp/hvp-5c2e94caca223/H5P.FontIcons-1.0/fonts/h5p.svg): failed to open stream: No such file or directory in <b>/var/www/ssl/gs_35/lib/filestorage/file_system_filedir.php</b> on line <b>234</b><br /> <br /> <b>Warning</b>: copy(/local/courses/temp/hvp-5c2e94caca223/H5P.FontIcons-1.0/fonts/h5p.ttf): failed to open stream: No such file or directory in <b>/var/www/ssl/gs_35/lib/filestorage/file_system_filedir.php</b> on line <b>234</b><br /> <br /> <b>Warning</b>: copy(/local/courses/temp/hvp-5c2e94caca223/H5P.FontIcons-1.0/fonts/h5p.woff): failed to open stream: No such file or directory in <b>/var/www/ssl/gs_35/lib/filestorage/file_system_filedir.php</b> on line <b>234</b><br /> <br /> <b>Warning</b>: copy(/local/courses/temp/hvp-5c2e94caca223/H5P.FontIcons-1.0/styles/h5p-font-icons.css): failed to open stream: No such file or directory in <b>/var/www/ssl/gs_35/lib/filestorage/file_system_filedir.php</b> on line <b>234</b><br />

 

There are several hvp-5c2e7xxxxxxx directories in /local/courses/temp and they have been written to today and they contain font icons, but for some reason these errors continue to be logged and the directories in these errors do not exist.

BV52's picture

Hi dsoini,

In order to give your bug report the best chance of getting answered, please include the following information:

  1. Detailed steps to reproduce the bug (exactly how and when did it happen)
  2. Platform and version number. E.g. Drupal, Wordpress, Moodle.
  3. Mobile or Desktop
  4. Browser: Chrome, Firefox, Safari etc
  5. H5P plugin version
  6. H5P content type and version (if a content type was used), and a sample URL or attached H5P.
  7. Any browser console errors (stated above)
  8. Any PHP errors
  9. Screenshots if it's a visual problem

The more information you provide, the quicker the community will be able to fix it and the quicker you'll have a working solution!

-BV52