yii 我如何解决更新Craft CMS后出现的致命错误?

ct3nt3jp  于 6个月前  发布在  其他
关注(0)|答案(1)|浏览(57)

我想更新到一个较新的工艺CMS版本,我试图在控制面板中做到这一点.最新的可用版本是3.7.12.在我点击update all后,我得到了以下错误:

Fatal error:声明

craft\helpers\FileHelper::getExtensionByMimeType($mimeType):string必须与yii\helpers\BaseFileHelper::getExtensionByMimeType($mimeType,$preferShort = false,$magicFile = null)兼容,位于**/var/www/html/vendor/craftcms/cms/src/helpers/FileHelper.php第 * 行719**
后来,我使用终端成功更新到3.8.2版本。所有依赖项也更新了,yiisoft/yii2版本设置为2.0.45。然而,问题仍然存在。
我尝试的解决方案是here,但它没有为我解决问题。

mwkjh3gx

mwkjh3gx1#

/var/www/html中运行composer install修复了此问题

相关问题