最近在家安装magento2,直接出现500错误,找到很久没有找到原因,然后更改:app/bootstrap.php中修改

#ini_set('display_errors', 1);

ini_set('display_errors', 1);

然后网站提示

**Fatal error**: Class 'IntlDateFormatter' not found in**/var/www/html/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php**on line**116**

说明网站缺少intl插件,执行以下命令

sudo apt install php-intl php7.1-intl

便解决问题了


yanping
24 声望0 粉丝

引用和评论

0 条评论