A General Technology & Development Blog

Technology, Development, Programming – Magento, Wordpress.

Home » Magento wishlist error message

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.

To fix:

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.

OR

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.

Here is another link to that file (duplicate of above).

  • Was this Helpful ?
  • Yes   No

Name of author

Name: BlogOwner

Short Bio: "The master has failed more times than the beginner has even tried."

eXTReMe Tracker