Error in file: "/home/siddharth/iphp/magento/app/code/core/Mage/Admin/sql/admin_setup/install-1.6.0.0.php"
- SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'admin_role' already exists
Trace:
#0 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(645): Mage::exception('Mage_Core', 'Error in file: ...')
#1 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(421): Mage_Core_Model_Resource_Setup->_modifyResourceDb('install', '', '1.6.1.1')
#2 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(327): Mage_Core_Model_Resource_Setup->_installResourceDb('1.6.1.1')
#3 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/Resource/Setup.php(235): Mage_Core_Model_Resource_Setup->applyUpdates()
#4 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(417): Mage_Core_Model_Resource_Setup::applyAllUpdates()
#5 /home/siddharth/iphp/magento/app/code/core/Mage/Core/Model/App.php(343): Mage_Core_Model_App->_initModules()
#6 /home/siddharth/iphp/magento/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/siddharth/iphp/magento/index.php(87): Mage::run('', 'store')
#8 {main}
1) Go to your localhost or mysql on your server and delete the table that gives error...
2) Clear cookies and refresh that page again
3) Ater 2nd step if same error persist then close the browser and restart it...this will delete all cookies and cache and then hit the url again... do these steps for all errors that come... after this successful completion will be done...
Related
I am getting the following error (after I moved magento from once server to another)
a:5:{i:0;s:110:
"Cannot send headers; headers already sent in /home/user/public_html/lib/Varien/Event/Collection.php, line 1";
i:1;s:1013:"
#0 /home/user/public_html/lib/Zend/Controller/Response/Abstract.php(114): Zend_Controller_Response_Abstract->canSendHeaders(true)
#1 /home/user/public_html/app/code/core/Mage/Core/Model/App.php(1265): Zend_Controller_Response_Abstract->setHeader('Content-Type', 'text/html; char...')
#2 /home/user/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(80): Mage_Core_Model_App->getResponse()
#3 /home/user/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(202): Mage_Core_Controller_Varien_Front->getResponse()
#4 /home/user/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#5 /home/user/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#6 /home/user/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#7 /home/user/public_html/index.php(83): Mage::run('', 'store')
#8 {main}
";s:3:"url";s:1:"/";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"dutch";}
I have solved my issue some other way.
This was magento 1.9.1 & i update it to 1.9.2.2, site came back as normal but some blocks were not showing on front page. I followed this https://magentary.com/kb/cms-pages-transactional-emails-broken-after-supee-6788-patch/
and the issue almost resolved
Thanks.
When I try to access admin panel on magento , It returns this error :
There has been an error processing your request
Mage registry key "_resource_helper/core" already exists
Trace:
#0 /home6/domain/public_html/app/Mage.php(223): Mage::throwException('Mage registry k...')
#1 /home6/domain/public_html/app/Mage.php(563): Mage::register('_resource_helpe...', false)
#2 /home6/domain/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(534): Mage::getResourceHelper('core')
#3 /home6/domain/public_html/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(520): Mage_Core_Model_Resource_Db_Collection_Abstract->_prepareSelect(Object(Varien_Db_Select))
#4 /home6/domain/public_html/lib/Varien/Data/Collection/Db.php(566): Mage_Core_Model_Resource_Db_Collection_Abstract->getData()
#5 /home6/domain/public_html/app/code/core/Mage/Core/Model/Resource/Website/Collection.php(137): Varien_Data_Collection_Db->load(false, false)
#6 /home6/domain/public_html/lib/Varien/Data/Collection.php(729): Mage_Core_Model_Resource_Website_Collection->load()
#7 /home6/domain/public_html/app/code/core/Mage/Core/Model/App.php(634): Varien_Data_Collection->getItemById('0')
#8 /home6/domain/public_html/app/code/core/Mage/Core/Model/App.php(466): Mage_Core_Model_App->_initStores()
#9 /home6/domain/public_html/app/code/core/Mage/Core/Model/App.php(349): Mage_Core_Model_App->_initCurrentStore('', 'store')
#10 /home6/domain/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#11 /home6/domain/public_html/index.php(90): Mage::run('', 'store')
#12 {main}
What's the problem ? It hasn't any problem before , I just saw this error suddenly this morning .
And Also , I've tried these ssh shell commands :
rm -rf var/cache/* var/session/*
And even I've deleted these folders contents by cpanel . But still it gives that error .
How can I fix it ?
you need to go to your phpmyadmin
search the DB for this key
then remove the key or rename the value.
I have copied a magento site from one server to another, hoping to make a carbon copy of a shop.
I exported/imported the database via phpMyAdmin and I zipped and unzipped the site files.
Everything is there. I have doubled checked the db passwords and details. I have also checked all of the file/folder permissions are correct. Still I get the error.
This error says ...
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Here are the contents of my Magento error log:
a:4:{i:0;s:97:
"SQLSTATE[HY000] [1045] Access denied for user 'MYSITE_magento'#'localhost' (using password: YES)"
;i:1;s:2792:"
#0 /home/MYSITE/public_html/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /home/MYSITE/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(251): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /home/MYSITE/public_html/lib/Zend/Db/Adapter/Abstract.php(448): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /home/MYSITE/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /home/MYSITE/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(333): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Resource/Type/Db/Pdo/Mysql.php(45): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Resource.php(93): Mage_Core_Model_Resource_Type_Db_Pdo_Mysql->getConnection(Object(Mage_Core_Model_Config_Element))
#7 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(297): Mage_Core_Model_Resource->getConnection('core_read')
#8 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(312): Mage_Core_Model_Mysql4_Abstract->_getConnection('read')
#9 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Mysql4/Abstract.php(332): Mage_Core_Model_Mysql4_Abstract->_getReadAdapter()
#10 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php(97): Mage_Core_Model_Mysql4_Abstract->getReadConnection()
#11 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Config.php(1206): Mage_Core_Model_Mysql4_Collection_Abstract->__construct(Object(Mage_Core_Model_Mysql4_Website))
#12 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Config.php(1239): Mage_Core_Model_Config->getModelInstance('core_mysql4/web...', Object(Mage_Core_Model_Mysql4_Website))
#13 /home/MYSITE/public_html/app/Mage.php(460): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Mysql4_Website))
#14 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Mysql4_Website))
#15 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#16 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/App.php(532): Mage_Core_Model_Abstract->getCollection()
#17 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/App.php(393): Mage_Core_Model_App->_initStores()
#18 /home/MYSITE/public_html/app/code/core/Mage/Core/Model/App.php(299): Mage_Core_Model_App->_initCurrentStore('', 'store')
#19 /home/MYSITE/public_html/app/Mage.php(596): Mage_Core_Model_App->run(Array)
#20 /home/MYSITE/public_html/index.php(80): Mage::run('', 'store')
#21 {main}
";s:3:"url";s:10:"/~MYSITE/";s:11:"script_name";s:19:"/~MYSITE/index.php";}
Obviously I replaced my site name above with MYSITE.
This issue can be created for local.xml .First,check database username ,database name,datauser password..... etc in local.xml (path yourmagentodir/app/etc/)
Check there have any local.xml.bak.If exits then delete local.xml.bak.
check database permission issue for database user.
Clear cache from cache folder (path yourmagentodir/var/cache/)
It was in deed a corrupt database. Thanks for drilling this into me guys as it forced me to keep rechecking the db
I have SSL. i searching mysql request CPU usage in SSL SSH or Apache Subjects.
im try on this, my unsecure address is,
UnSecure Address: https://www.example.com
to change
UnSecure Address: http://www.example.com
and my admin panel is down. Error is;
Fatal Error "Class 'Mgt_Base_Helper_Data' not found in /home/server/public_html/app/Mage.php on line 546
And now my backend
There has been an error processing your request
Mage registry key "_singleton/mgt_base/feed" already exists
Trace:
#0 /home/server/public_html/app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /home/server/public_html/app/Mage.php(476): Mage::register('_singleton/mgt_...', false)
#2 /home/server/public_html/includes/src/__default.php(21330): Mage::getSingleton('mgt_base/feed')
#3 /home/server/public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('adminhtml_contr...', Array)
#4 /home/server/public_html/includes/src/Mage_Adminhtml_Controller_Action.php(159): Mage::dispatchEvent('adminhtml_contr...', Array)
#5 /home/server/public_html/includes/src/__default.php(13861): Mage_Adminhtml_Controller_Action->preDispatch()
#6 /home/server/public_html/includes/src/__default.php(18234): Mage_Core_Controller_Varien_Action->dispatch('login')
#7 /home/server/public_html/includes/src/__default.php(17768): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#8 /home/server/public_html/includes/src/__default.php(20368): Mage_Core_Controller_Varien_Front->dispatch()
#9 /home/server/public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#10 /home/server/public_html/index.php(87): Mage::run('', 'store')
#11 {main}
How can i fix this previous setings or How can i set unsecure adress without backend?
Thanx.
It looks like you have install magento in PHP 5.4. Apply magento patch for PHP 5.4 or downgradr PHP to 5.3, and then clear cache (flush storage)
I get this error message whenever im trying to login to magento admin after installation of inhcoo featured 2.0 (magento extension) through magento connect:
There has been an error processing your request
Mage registry key "_singleton/inchoo_notes/feed_updates" already exists
Trace:
#0 /home/.../public_html/app/Mage.php(222): Mage::throwException('Mage registry k...')
#1 /home/.../public_html/app/Mage.php(476): Mage::register('_singleton/inch...', false)
#2 /home/..../public_html/includes/src/__default.php(20995): Mage::getSingleton('inchoo_notes/fe...')
#3 /home/...../public_html/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#4 /home/..../public_html/includes/src/__default.php(13663): Mage::dispatchEvent('controller_acti...', Array)
#5 /home/..../public_html/includes/src/Mage_Adminhtml_Controller_Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#6 /home/..../public_html/includes/src/__default.php(13543): Mage_Adminhtml_Controller_Action->preDispatch()
#7 /home/..../public_html/includes/src/__default.php(17899): Mage_Core_Controller_Varien_Action->dispatch('login')
#8 /home/..../public_html/includes/src/__default.php(17456): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#9 /home/..../public_html/includes/src/__default.php(20033): Mage_Core_Controller_Varien_Front->dispatch()
#10 /home/..../public_html/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#11 /home/..../public_html/index.php(89): Mage::run('', 'store')
#12 {main}
Error log record number: 214959287644
how can I fix this problem? please help
This specific error happens when a singleton (model or helper) is attempted to be invoked but cannot be mapped. Based on the path which I'm seeing in the stack trace, it looks as though you have compilation enabled. You should disable compilation while attempting to install this module, which can be done in the admin GUI at System > Compilation.