您的位置:首页 > 其它

Magento修改用户信息出现500错误的解决方法

2014-07-28 09:43 302 查看
现象:

用户修改个人信息时,页面空白,查看日志,发现错误:

PHP Fatal error:  Call to a member function setAttribute() on a non-object in ../app/code/core/Mage/Eav/Model/Attribute/Data.php on line 80, referer: ...


解决方法:

执行此语句找到所有fronted_input为空的属性,将fronted_input改为任意合法的值(text、select等等):

SELECT * FROM `eav_attribute` where attribute_id  in (select attribute_id from customer_eav_attribute) and ( `frontend_input` is null or `frontend_input` = '')
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐