現象:
用戶修改個人信息時,頁面空白,查看日誌,發現錯誤:
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` = '')