I am trying to edit one of the attributes in the Magento admin panel. When I click on any of them from Catalog -> Attributes -> Manage Attributes, I get the following error:
Fatal error: Call to a member function toHtml() on a non-object in /var/www/html/shop/app/code/core/Mage/Eav/Block/Adminhtml/Attribute/Edit/Main/Abstract.php on line 217
I have seen the fix on Stackoverflow and other sites saying to edit page.xml from
<block type="core/profiler" output="toHtml"/>
to
<block type="core/profiler" output="toHtml" name="core_profiler"/>
however, that does not solve this issue. The code here should all be original. How can I fix this error on the admin control panel?