SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'eav_entity_type' already exists

by user2240778   Last Updated February 11, 2019 10:09 AM

I'm running Magento 1.9 and the site is fully setup and running, now I'm getting the following error.

Error in file: "/app/code/core/Mage/Eav/sql/eav_setup/install-1.6.0.0.php" - SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'eav_entity_type' already exists

Trace:
#0 /app/code/core/Mage/Core/Model/Resource/Setup.php(644): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.0.1')
#2 /app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.0.1')
#3 /app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /index.php(87): Mage::run('', 'store')
#8 {main}

After cache builds up the above error becomes

Fatal error: Cannot access property Mage_Core_Model_Resource_Website_Collection::$_model in /app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php on line 430

How can I fix this, it appears to be trying to re-install.



Related Questions



Database repair tool errors

Updated March 03, 2016 05:04 AM

Magento 2 - read and write connection for custom query

Updated February 25, 2019 07:09 AM