Magento – Fatal error: Undefined class constant ‘TYPE_TEXT’ error after upgrading – magento

magento-1.6magento-1.7magento-1.8magento-1.9

i am stuck with an issue. After upgrading my site from 1.5 to 1.6 i am getting this error

"Fatal error: Undefined class constant 'TYPE_TEXT' in /var…./app/code/core/Mage/XmlConnect/sql/xmlconnect_setup/mysql4-upgrade-1.4.0.13-1.4.0.14.php on line 49"

Please help me..

Best Answer

The line in question is this:

->addColumn('category', Varien_Db_Ddl_Table::TYPE_TEXT, 60, array(

But if you upgraded the code correctly this error should not appear.
As you can see here the constant TYPE_TEXT is defined.
The constant was added in 1.6 and did not exist in 1.5.
My hunch is that you did not upgrade the lib/Varien folder, or you have a copy of the old class Varien_Db_Ddl_Table in your local code pool folder.

Related Topic