Installation and server related problems

Discuss problems with installing the H5P plugins/modules and content types as well as server-related issues

Drupal 8 Can't install or upload any content types

I recently updated to the latest H5P version for drupal 8 and am having issues installing or uploading any content types through the module. This is the error I receive after I click the Install button or try to upload:

500 Service unavailable (with message) (500)

Unable to interpret response.

Please check your error log.

When I check the logs these are the two errors I see:

- Error 1

Error saving ID module course not valid

Hi,
I get this error:
ID de módulo de curso no válida
Debug info: SELECT id,course FROM {course_modules} WHERE id IS NULL
[array (
)]
Error code: invalidcoursemodule

Stack trace:
line 1546 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
line 1522 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 6817 of /lib/accesslib.php: call to moodle_database->get_record()
line 629 of /mod/hvp/classes/file_storage.php: call to context_module::instance()

Drupal h5p exports directory

At the moment we have the default package path set to /sites/default/files/h5p 

Over time this directory (or specifically /sites/default/files/h5p/exports) has accumulated over 3000 files.

On Drupal website performance can severely degrade when too many files are added and available to the system in a single directory without any subdirectory structure.

Pages