Проблема при обновлении Moodle

Проблема при обновлении Moodle

от Егор Репьев -
Количество ответов: 1

Всем здравствуйте! Произошла проблема при обновлении Moodle с версии 3.8.* на 3.11.*. Теперь, при заходе, например, в курс, вываливается следующая ошибка:


Stack trace из курса:

SELECT * FROM {external_functions} WHERE name = ?
[array (
0 => 'core_output_load_fontawesome_icon_system_map',
)]
Error code: invalidrecord
* line 1646 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 73 of /lib/externallib.php: call to moodle_database->get_record()
* line 196 of /lib/externallib.php: call to external_api::external_function_info()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
SELECT * FROM {external_functions} WHERE name = ?
[array (
0 => 'core_output_load_fontawesome_icon_system_map',
)]
Error code: invalidrecord
* line 1646 of /lib/dml/moodle_database.php: dml_missing_record_exception thrown
* line 1622 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
* line 73 of /lib/externallib.php: call to moodle_database->get_record()
* line 196 of /lib/externallib.php: call to external_api::external_function_info()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()

Не могу пока разобраться в чем дело. Страница меняет язык на английский и нет селектора выбора языка. При заходе в административную панель все нормально.

В приложенном файле Stack Trace личного кабинета.


Конфигурация сервера:

ОС: Ubuntu 20.04.


В ответ на Егор Репьев

Re: Проблема при обновлении Moodle

от Егор Репьев -

Похоже, что база данных некорректно обновилась. Исправив в ручном режиме имя external_funtions, я натыкаюсь на следующую ошибку:

Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()
Unexpected keys (themename) detected in parameter array.
Error code: invalidparameter
* line 372 of /lib/externallib.php: invalid_parameter_exception thrown
* line 240 of /lib/externallib.php: call to external_api::validate_parameters()
* line 81 of /lib/ajax/service.php: call to external_api::call_external_function()
* line 33 of /lib/ajax/service-nologin.php: call to require_once()

Есть ли возможность обновить базу данных?