Opigno (Drupal) error with file_create_path
I am using Opigno LMS for Drupal and have just tried creating my first H5P content. Unfortunately, I am getting an error when saving the content (FlashCard):
Fatal error: Call to undefined function file_create_path() in /home/XXXXXXXX/public_html/LMS/sites/all/modules/h5p/library/h5p.classes.php on line 1303
I have tried searching for similar issues with H5P and also for Opigno/Drupal but can find nothing relevant.
Any ideas as to what could be causing this issue?