现象:

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

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` = '')
Logo

Agent 垂直技术社区,欢迎活跃、内容共建。

更多推荐