Magento修改用戶信息出現500錯誤的解決方法

現象:

用戶修改個人信息時,頁面空白,查看日誌,發現錯誤:

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` = '')
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章