-
Bug
-
Resolution: Fixed
-
Major
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-68985-master -
-
Moppies Kanban
If you are using a language that has an underscore in it, such as en_us, go to the content bank, select Add > anything, you will get a fatal error:
Coding error detected, it must be fixed by a programmer: Cache definition core/string requires simple keys. Invalid key provided.
|
|
More information about this error
|
|
Debug info: en-us_h5plib_v124_1591674567
|
Error code: codingerror
|
|
line 617 of /cache/classes/helper.php: coding_exception thrown
|
line 958 of /cache/classes/loaders.php: call to cache_helper::hash_key()
|
line 392 of /cache/classes/loaders.php: call to cache->parse_key()
|
line 1553 of /cache/classes/loaders.php: call to cache->get()
|
line 124 of /lib/classes/string_manager_standard.php: call to cache_application->get()
|
line 327 of /lib/classes/string_manager_standard.php: call to core_string_manager_standard->load_component_strings()
|
line 10509 of /lib/moodlelib.php: call to core_string_manager_standard->get_string()
|
line 10534 of /lib/moodlelib.php: call to lang_string->get_string()
|
line 10532 of /lib/moodlelib.php: call to lang_string->out()
|
line 143 of /h5p/classes/local/library/handler.php: call to lang_string->out()
|
line 8072 of /lib/moodlelib.php: call to core_h5p\local\library\handler::get_h5p_string()
|
line 160 of /h5p/classes/local/library/autoloader.php: call to component_class_callback()
|
line 454 of /h5p/classes/editor.php: call to core_h5p\local\library\autoloader::get_h5p_string()
|
line 383 of /h5p/classes/editor.php: call to core_h5p\editor->get_editor_translations()
|
line 194 of /h5p/classes/editor.php: call to core_h5p\editor->add_assets_to_page()
|
line 116 of /contentbank/contenttype/h5p/classes/form/editor.php: call to core_h5p\editor->add_editor_to_form()
|
line 214 of /lib/formslib.php: call to contenttype_h5p\form\editor->definition()
|
line 59 of /contentbank/classes/form/edit_content.php: call to moodleform->__construct()
|
line 94 of /contentbank/edit.php: call to core_contentbank\form\edit_content->__construct()
|
Now, for some reason in the key, en_us is getting converted to en-us. But the cache core/string is defined as using simple keys, which only allows alphanum and _. No hyphens allowed.
- Discovered while testing
-
MDL-67810 Integrate content bank and H5P content creator
-
- Closed
-