Magento wishlist error message
Magento wishlist error message on frontend:
“Fatal error: Call to a member function toHtml() on a non-object in /app/design/frontend/base/default/template/wishlist/view.phtml on line 50”
Why or how this happens:
– Using old themes with new versions of Magento.
– Base / core files edited incorrectly.
Line 50 of the above file tries to call toHtml on a child block named control_buttons.
The control_buttons block is only part of Magento versions 1.7 and above. So chances are that the theme or set-up you are using is older than 1.7.
In order to fix this you need to try and replace the base file wishlist.xml with the correct code that works with the correct version of Magento.
Create the same file in your own theme that will override the base version.
1. Open your file and (save a copy) paste in the code from the 1.7 version of the code.
2. You can find that here.