浏览文章
文章信息
后端 Magento2 Validate class not found from basename 'Magento\Framework\Validator\EmailAddress'
17456
报错:
Validate class not found from basename 'Magento\Framework\Validator\EmailAddress'
1、原因:
php配置自动加载找不到zendframework中的email验证类。
2、解决:
修改php.ini中的include_path为include_path="."
以下是php.ini的部分配置信息,只要找到此处,在; UNIX: "/path1:/path2"下复制一行;include_path = ".:/php/includes"去掉前面的;号,把值替换成"."就可以了。替换后如下
... ; UNIX: "/path1:/path2" ;include_path = ".:/php/includes" include_path = "." ; ; Windows: "\path1;\path2" ...3、如果还是没法解决,请尝试精准查找配置
include_path = ".:/var/www/vhosts/default/vendor/magento/zendframework/library"
include_path值指向你Magento中zenframework框架的目录即可。