如何修复moodle更新中的这个错误?

问题描述 投票:0回答:1

你好!

当我去升级moodle 3.10到3.11以及更高版本的4.x时。

在安装了所有不在磁盘上的插件以及其他未找到的插件后,我遇到了问题。

继续操作时,我遇到了此图像错误。

Error Image Print

我在PT-BR中使用moodle,这是错误日志:

Atualizando para nova versão
Importação de idioma: pt_br_old
Impossível achar componente

Outras informações sobre este erro

Informações de depuração:  pt_br_old
Error code: cannotfindcomponent×Ignorar essa notificação
Rastreamento de pilha: 
line 810 of /lib/componentlib.class.php: lang_installer_exception thrown
line 665 of /lib/componentlib.class.php: call to lang_installer->install_language_pack()
line 45 of /admin/tool/langimport/lib.php: call to lang_installer->run()
line 1741 of /lib/upgradelib.php: call to tool_langimport_preupgrade_update()
line 1856 of /lib/upgradelib.php: call to upgrade_language_pack()
line 519 of /admin/index.php: call to upgrade_core()

英文登录:

Updating to new version
Language import: pt_br_old
Impossible to find component

Other information about this error

Debug info: pt_br_old
Error code: cannotfindcomponent×Ignore this notification
Stack tracking:
line 810 of /lib/componentlib.class.php: lang_installer_exception thrown
line 665 of /lib/componentlib.class.php: call to lang_installer->install_language_pack()
line 45 of /admin/tool/langimport/lib.php: call to lang_installer->run()
line 1741 of /lib/upgradelib.php: call to tool_langimport_preupgrade_update()
line 1856 of /lib/upgradelib.php: call to upgrade_language_pack()
line 519 of /admin/index.php: call to upgrade_core()

我在更新中给出的磁盘上安装了所有缺少的插件。

我在lang文件夹中下载并安装了PT-BR Moodle 3.11语言包,并且还清除了moodledata内文件夹的缓存,在我的情况下它有另一个名称。但我不会删除moodledata中的lang文件夹并且该文件夹中存在内容。 路径 Moodledata:/var/AnotherName

我更新了系统,ubuntu,再次输入文件夹中的权限,直到现在没有任何作用。

我按照建议保留了旧 Moodle 中的 config.php。我在更新中收到的唯一警告是关于 input_vars 低于 5000,以及关于数据库不是精确的 Moodle 格式。但这只是警告。

moodle
1个回答
0
投票

检查函数 xmldb_plugin_name_upgrade($oldversion) 中是否有最后一行返回真值。

即:函数结束时返回true。

© www.soinside.com 2019 - 2024. All rights reserved.