If you're like us and many others, after upgrading to Magento 1.4.2, your site returns an error starting with something like this:
a:5:{i:0;s:69:"Invalid method Mage_Wishlist_Block_Links::addWishlistLink(Array
(
)
)";i:1;s:2313:"#0 [internal function]: Varien_Object->__call('addWishlistLink', Array)
This error is caused by a change in the way the Wishlist is set up. Fortunately, the fix is very simple:
The Fix:
1. Open the file /app/design/frontend/default/your-theme/layout/wishlist.xml
2. Find this:
<reference name="top.links">
<block type="wishlist/links" name="wishlist_link">
<action method="addWishlistLink"></action>
</block>
</reference>
3. Replace that code with this:
<reference name="top.links">
<block type="wishlist/links" name="wishlist_link"/>
<action method="addLinkBlock"><blockName>wishlist_link</blockName></action>
</reference>
4. Save and upload the file, then refresh Magento's cache via System > Cache Management
That's it! Of course, some custom templates may pose individual challenges not covered by this post, so if you have further difficulty with your upgrade, go to Magento Expert and get quick answers to your Magento questions from real Magento experts!



