Magento Problem In Creating New Product

In the last few Magento releases (I have personally faced the issue in versions 1.4.1.1 and 1.4.2.0) when trying to create a new product in the back end Magento returns an error and products are not created.

The error message is

Fatal error: Call to a member function deletePriceData() on a non-object in \app\code\core\Mage\Catalog\Model\Product\Attribute\Backend\Tierprice.php on line 238

Solution

This error is given because in these Magento releases one file is missing. Actually it is present but the extension is .ph in place of .php
The file is located at
\app\code\core\Mage\Catalog\Model\Resource\Eav\Mysql4\Product\Attribute\Backend
In this folder rename Tierprice.ph to Tierprice.php

Its funny how this error persisted across versions but with the above solution you can forget about that 🙂

1 comment

Leave a comment

Your email address will not be published. Required fields are marked *