I have migrated a magento store from 1.5 to 1.9 on my local server.(First migrated 1.5 to 1.6.2 then 1.6.2 to 1.9.1)
Now whenever i try to edit or add a new product following fatal error occurs.
Images : Image type and information need to be specified for each store view.
Fatal error: Call to a member function setAttribute() on a non-object in /var/www/html/monster_19/app/code/core/Mage/Eav/Model/Entity/Attribute/Abstract.php on line 366
This error also occurs on 1.6.2 staging version. Tried database repair tool also but problem still persist . And i don't want to hack into core. Please give solution.