How to fix Magento Fatal error: Call to a member function toOptionArray() on a non-object

When you try to edit products, categories or manage attributes in Magento Backend, sometims the following error message is shown  (blank page is shown if displaying error messages is disabled) after Magento upgrade or extension installation:

Magento Fatal error Call to a member function toOptionArray on a non-object

Cause

The most probable reason of this issue is not-upgraded Mage_Core_Adminhtml package or package is upgraded but old code is cached by compiler.

To solve this error.

Step 1: Open the above path file.

Step 2:Replace above code with below:

Hope this solution helps you solve this issue!

Advertisement

No comments yet.

Leave a Comment