Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Fatal Error after upgrade to 1.1.8
 
soy_de_madrid
Member
 
Total Posts:  51
Joined:  2008-09-30
 

Hi i just updated to latest version with magento connect and now i get this fatal error:

Fatal error: Call to undefined method Mage_Eav_Model_Mysql4_Entity_Type_Collection::getData() in /var/www/html/magento/app/code/core/Mage/Eav/Model/Config.php on line 211

 
Magento Community Magento Community
Magento Community
Magento Community
 
soy_de_madrid
Member
 
Total Posts:  51
Joined:  2008-09-30
 

ok managed to restore my backup of old store and tried the upgrade again. this time i get this:

PDOException Object
(
[message:protected] => SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘catalogrule_affected_product’ already exists
[string:private] =>
[code:protected] => 42S01
[file:protected] => /var/www/html/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line:protected] => 156
[trace:private] => Array
(
[0] => Array
(
[file] => /var/www/html/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 156
[function] => query
[class] => PDO
[type] => ->
[args] => Array
(
[0] => CREATE TABLE catalogrule_affected_product (
`product_id` int(10) unsigned NOT NULL,
KEY `IDX_PRODUCT` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
)

)

[1] => Array
(
[file] => /var/www/html/magento/lib/Varien/Db/Adapter/Pdo/Mysql.php
[line] => 218
[function] => raw_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] => CREATE TABLE catalogrule_affected_product (
`product_id` int(10) unsigned NOT NULL,
KEY `IDX_PRODUCT` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8
)

)

[2] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 493
[function] => multi_query
[class] => Varien_Db_Adapter_Pdo_Mysql
[type] => ->
[args] => Array
(
[0] =>
CREATE TABLE catalogrule_affected_product (
`product_id` int(10) unsigned NOT NULL,
KEY `IDX_PRODUCT` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

)

)

[3] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/CatalogRule/sql/catalogrule_setup/mysql4-upgrade-0.7.4-0.7.5.php
[line] => 37
[function] => run
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] =>
CREATE TABLE catalogrule_affected_product (
`product_id` int(10) unsigned NOT NULL,
KEY `IDX_PRODUCT` (`product_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

)

)

[4] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 268
[args] => Array
(
[0] => /var/www/html/magento/app/code/core/Mage/CatalogRule/sql/catalogrule_setup/mysql4-upgrade-0.7.4-0.7.5.php
)

[function] => include
)

[5] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 178
[function] => _modifyResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => upgrade
[1] => 0.7.4
[2] => 0.7.5
)

)

[6] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 145
[function] => _upgradeResourceDb
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
[0] => 0.7.4
[1] => 0.7.5
)

)

[7] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php
[line] => 120
[function] => applyUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ->
[args] => Array
(
)

)

[8] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/Config.php
[line] => 215
[function] => applyAllUpdates
[class] => Mage_Core_Model_Resource_Setup
[type] => ::
[args] => Array
(
)

)

[9] => Array
(
[file] => /var/www/html/magento/app/code/core/Mage/Core/Model/App.php
[line] => 243
[function] => init
[class] => Mage_Core_Model_Config
[type] => ->
[args] => Array
(
[0] => Array
(
)

)

)

[10] => Array
(
[file] => /var/www/html/magento/app/Mage.php
[line] => 424
[function] => init
[class] => Mage_Core_Model_App
[type] => ->
[args] => Array
(
[0] =>
[1] => store
[2] => Array
(
)

)

)

[11] => Array
(
[file] => /var/www/html/magento/app/Mage.php
[line] => 443
[function] => app
[class] => Mage
[type] => ::
[args] => Array
(
[0] =>
[1] => store
[2] => Array
(
)

)

)

[12] => Array
(
[file] => /var/www/html/magento/index.php
[line] => 46
[function] => run
[class] => Mage
[type] => ::
[args] => Array
(
)

)

)

[errorInfo] => Array
(
[0] => 42S01
[1] => 1050
[2] => Table ‘catalogrule_affected_product’ already exists
)

)
Error in file: “/var/www/html/magento/app/code/core/Mage/CatalogRule/sql/catalogrule_setup/mysql4-upgrade-0.7.4-0.7.5.php” - SQLSTATE[42S01]: Base table or view already exists: 1050 Table ‘catalogrule_affected_product’ already exists

#0 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(286): Mage::exception(’Mage_Core’, ‘Error in file: ...’)
#1 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(178): Mage_Core_Model_Resource_Setup->_modifyResourceDb(’upgrade’, ‘0.7.4’, ‘0.7.5’)
#2 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(145): Mage_Core_Model_Resource_Setup->_upgradeResourceDb(’0.7.4’, ‘0.7.5’)
#3 /var/www/html/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(120): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /var/www/html/magento/app/code/core/Mage/Core/Model/Config.php(215): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /var/www/html/magento/app/code/core/Mage/Core/Model/App.php(243): Mage_Core_Model_Config->init(Array)
#6 /var/www/html/magento/app/Mage.php(424): Mage_Core_Model_App->init(’’, ‘store’, Array)
#7 /var/www/html/magento/app/Mage.php(443): Mage::app(’’, ‘store’, Array)
#8 /var/www/html/magento/index.php(46): Mage::run()
#9 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top