Magento live store is not working on Localhost - magento

I have created a copy of my live Magento store on my localhost and used the same db file but it displays this error message:
There has been an error processing your request. Exception printing is
disabled by default for security reasons.
Please someone tell me the reason.Please help me with this issue. Thank you in advance for your time and help.
Error log record number: 350810859
1. a:4:{i:0;s:93:"SQLSTATE[HY000] [1045] Access denied for user
'root'#'localhost' (using password: YES)";i:1;s:2492:"#0
D:\workspace_php\abc_store\lib\Zend\Db\Adapter\Pdo\Mysql.php(96):
Zend_Db_Adapter_Pdo_Abstract->_connect()
D:\workspace_php\abc_store\lib\Varien\Db\Adapter\Pdo\Mysql.php(313):
Zend_Db_Adapter_Pdo_Mysql->_connect()
D:\workspace_php\abc_store\lib\Zend\Db\Adapter\Abstract.php(459):
Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 D:\workspace_php\abc_store\lib\Zend\Db\Adapter\Pdo\Abstract.php(238):
Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 D:\workspace_php\abc_store\lib\Varien\Db\Adapter\Pdo\Mysql.php(419):
Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource.php(169):
Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource.php(110):
Mage_Core_Model_Resource->_newConnection('pdo_mysql',
Object(Mage_Core_Model_Config_Element))
#7 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(320):
Mage_Core_Model_Resource->getConnection('core_write')
#8 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(350):
Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Db\Abstract.php(335):
Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Resource\Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Cache.php(455):
Mage_Core_Model_Resource_Cache->getAllOptions()
#12 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Cache.php(497):
Mage_Core_Model_Cache->_initOptions()
#13 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\App.php(1183):
Mage_Core_Model_Cache->canUse('config')
#14 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Config.php(414):
Mage_Core_Model_App->useCache('config')
#15 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\Config.php(294):
Mage_Core_Model_Config->_canUseCacheForInit()
#16 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\App.php(413):
Mage_Core_Model_Config->loadModulesCache()
#17 D:\workspace_php\abc_store\app\code\core\Mage\Core\Model\App.php(343):
Mage_Core_Model_App->_initModules()
#18 D:\workspace_php\abc_store\app\Mage.php(683): Mage_Core_Model_App->run(Array)
#19 D:\workspace_php\abc_store\index.php(87): Mage::run('', 'store')
#20 {main}";s:3:"url";s:12:"/abc_store/";s:11:"script_name";s:21:"/abc_store/index.php";}

I think here issue is with database credentials. look in following file
app/etc/local.xml

This seems a DB connection error.You can use the below credentials as sample and change them according your DB details in your app/etc/local.xml file
<host><![CDATA[localhost]]></host>
<username><![CDATA[root]]></username>
<password><![CDATA[your_password_if_any]]></password>
<dbname><![CDATA[your_db_name]]></dbname>
Also in your core_config_data table change value as below
web/unsecure/base_url - http://YOUR_IP_ADDRESS/YOUR_PROJECT_NAME/
web/secure/base_url - http://YOUR_IP_ADDRESS/YOUR_PROJECT_NAME/

Your have to make virtual host for running the live magento and make changes in the file windows/system32/drivers/etchosts file.
You have to map localhost IP address to domain name.

Related

Magento Error during unserialization

I have a magneto based web shop with a custom template. The webshop works at first side fine except that during the loading of a page (every page) the following exception (see below) is thrown and Magento tries to load something that is not present: undefined?1479491943475 Anybody an idea how to fix this? I use Magento 1.9.2.4
16-11-05T22:04:46+00:00 ERR (3):
exception 'Exception' with message 'Error during unserialization' in /home/fossilshop/public_html/lib/Unserialize/Parser.php:60
Stack trace:
#0 /home/fossilshop/public_html/app/code/core/Mage/Core/Helper/UnserializeArray.php(44): Unserialize_Parser->unserialize(Object(Mage_Core_Model_Config_Element))
#1 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Model/System/Config/Backend/Serialized.php(37): Mage_Core_Helper_UnserializeArray->unserialize(Object(Mage_Core_Model_Config_Element))
#2 /home/fossilshop/public_html/app/code/core/Mage/Core/Model/Config/Data.php(78): Mage_Adminhtml_Model_System_Config_Backend_Serialized->_afterLoad()
#3 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(334): Mage_Core_Model_Config_Data->afterLoad()
#4 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(229): Mage_Adminhtml_Block_System_Config_Form->initFields(Object(Varien_Data_Form_Element_Fieldset), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#5 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Form.php(164): Mage_Adminhtml_Block_System_Config_Form->_initGroup(Object(Varien_Data_Form), Object(Mage_Core_Model_Config_Element), Object(Mage_Core_Model_Config_Element))
#6 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/Block/System/Config/Edit.php(92): Mage_Adminhtml_Block_System_Config_Form->initForm()
#7 /home/fossilshop/public_html/app/code/core/Mage/Adminhtml/controllers/System/ConfigController.php(107): Mage_Adminhtml_Block_System_Config_Edit->initForm()
#8 /home/fossilshop/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Mage_Adminhtml_System_ConfigController->editAction()
#9 /home/fossilshop/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('edit')
#10 /home/fossilshop/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))
#11 /home/fossilshop/public_html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#12 /home/fossilshop/public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#13 /home/fossilshop/public_html/index.php(83): Mage::run('', 'store')
#14 {main}
2016-11-05T22:04:46+00:00 ERR (3):
> Blockquote
I recently ran into this issue too and found this fix
https://www.atwix.com/magento/supee-7405-cart-merge-error-fix/
After adding my own module with the above fix, the exception stopped logging.
Hope it helps

Magento exception log issue

i need a help.
My magento's exception.log is getting a error that I have no idea how to solve, and why this is happening, take a look at the error below:
2016-06-10T17:46:42+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Invalid block type: Mage_Dynamicslideshow_Block_List' in /chroot/home/reperfum/mydomain.com.br/html/app/Mage.php:595
Stack trace:
#0 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Invalid block t...')
#1 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('dynamicslidesho...', Array)
#2 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('dynamicslidesho...', 'dynamicslidesho...')
#3 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('dynamicslidesho...', 'dynamicslidesho...')
#4 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#6 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/Layout.php(206): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#7 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#8 /chroot/home/reperfum/mydomain.com.br/html/app/code/local/Sm/Shopby/controllers/CategoryController.php(48): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#9 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Sm_Shopby_CategoryController->viewAction()
#10 /chroot/home/reperfum/mydomain.com.br/html/app/code/local/Sm/Shopby/Controller/Router.php(96): Mage_Core_Controller_Varien_Action->dispatch('view')
#11 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Sm_Shopby_Controller_Router->match(Object(Mage_Core_Controller_Request_Http))
#12 /chroot/home/reperfum/mydomain.com.br/html/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#13 /chroot/home/reperfum/mydomain.com.br/html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
#14 /chroot/home/reperfum/mydomain.com.br/html/index.php(83): Mage::run('', 'store')
#15 {main}
someone can help me to solve that?
tks
One of your layout XML files is referencing a block with the type dynamicslideshow/list. This block alias is failing to resolve to a class correctly, which could be caused by a variety of reasons, but the most likely reason is that you've deleted a module out of app/code/local and forgotten to remote a reference to it from app/design.
Search in app/design for XML files containing type="dynamicslideshow/list
and for now delete the references to it. If you want to keep the module in question you'll need to share more information about how you've implemented it.

Magento Error: SQLSTATE[28000] [1045] Access denied for user 'admin'#'localhost' (using password: YES)

I have a Magento Error number and I have Checked from /httpdocs/var/report
Did not understand whats the issues, I have cleared my browser cached and nothing helped ..
a:4:{i:0;s:87:"
SQLSTATE[28000] [1045] Access denied for user 'admin'#'localhost' (using password: YES)
";i:1;s:2681:"
#0 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(53987): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(54460): Zend_Db_Adapter_Pdo_Mysql->_connect()
#2 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(52674): Varien_Db_Adapter_Pdo_Mysql->_connect()
#3 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(53730): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#4 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(54566): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array)
#5 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(29302): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8')
#6 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(29243): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element))
#7 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(11744): Mage_Core_Model_Resource->getConnection('core_write')
#8 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(11774): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write')
#9 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(11759): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter()
#10 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/Mage_Core_Model_Resource_Cache.php(53): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter()
#11 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/Mage_Core_Model_Cache.php(455): Mage_Core_Model_Resource_Cache->getAllOptions()
#12 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/Mage_Core_Model_Cache.php(497): Mage_Core_Model_Cache->_initOptions()
#13 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(20890): Mage_Core_Model_Cache->canUse('config')
#14 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(22503): Mage_Core_Model_App->useCache('config')
#15 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(22383): Mage_Core_Model_Config->_canUseCacheForInit()
#16 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(20120): Mage_Core_Model_Config->loadModulesCache()
#17 /var/www/vhosts/xxxx.com.au/httpdocs/includes/src/__default.php(20050): Mage_Core_Model_App->_initModules()
#18 /var/www/vhosts/xxxx.com.au/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#19 /var/www/vhosts/xxxx.com.au/httpdocs/index.php(88): Mage::run('', 'store')
#20 {main}
";s:3:"url";s:10:"/index.php";s:11:"script_name";s:10:"/index.php";}
My var/report writable permission with 777
Assuming that localhost is correct, you need to check your database for the existence of the user 'admin' and make sure this user has permissions read and write on that particular database.
This is not a file permissions issue at all, it sounds like a strictly database related issue.

MAGENTO Error: dbModel read resource does not implement Zend_Db_Adapter_Abstract

my magento report this issue.
There has been an error processing your request
Exception printing is disabled by default for security reasons.
Error log record number: 518908518811
In log:
a:4:{i:0;s:65:
"dbModel read resource does not implement Zend_Db_Adapter_Abstract";i:1;s:1412:"
#0 /var/www/html/shop/app/code/core/Mage/Core/Model/Resource/Db/Collection/Abstract.php(134): Varien_Data_Collection_Db->setConnection(false)
#1 /var/www/html/shop/app/code/core/Mage/Core/Model/Config.php(1350): Mage_Core_Model_Resource_Db_Collection_Abstract->__construct(Object(Mage_Core_Model_Resource_Website))
#2 /var/www/html/shop/app/code/core/Mage/Core/Model/Config.php(1386): Mage_Core_Model_Config->getModelInstance('core_resource/w...', Object(Mage_Core_Model_Resource_Website))
#3 /var/www/html/sound/shop/app/Mage.php(461): Mage_Core_Model_Config->getResourceModelInstance('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#4 /var/www/html/shop/app/code/core/Mage/Core/Model/Abstract.php(208): Mage::getResourceModel('core/website_co...', Object(Mage_Core_Model_Resource_Website))
#5 /var/www/html/shop/app/code/core/Mage/Core/Model/Abstract.php(213): Mage_Core_Model_Abstract->getResourceCollection()
#6 /var/www/html/shop/app/code/core/Mage/Core/Model/App.php(598): Mage_Core_Model_Abstract->getCollection()
#7 /var/www/html/shop/app/code/core/Mage/Core/Model/App.php(456): Mage_Core_Model_App->_initStores()
#8 /var/www/html/shop/app/code/core/Mage/Core/Model/App.php(342): Mage_Core_Model_App->_initCurrentStore('', 'store')
#9 /var/www/html/sound/shop/app/Mage.php(642): Mage_Core_Model_App->run(Array)
#10 /var/www/html/sound/shop/index.php(80): Mage::run('', 'store')
#11 {main}
";s:3:"url";s:20:"/shop/checkout/cart/";s:11:"script_name";s:15:"/shop/index.php";}
Clear cache and reindex all indexes.
Check if your database settings are correct.
Make sure to set var/ folder and subfolder permissions to 777.

Magento: Error on checkout

I have a problem on Magento Checkout. All payment methods selected on checkout give the message:There was an error processing your order. Please contact us or try again later.
I logged the proces and came up with the next exception.log
I run Magento 1.7.0.2. Where do i start on solving this? Is this a problem with the template i bought? Thank you.
2015-04-07T06:46:34+00:00 ERR (3):
exception 'Mage_Core_Exception' with message 'Ongeldig bloktype: Mage_Page_Block_Html_CookieNotice' in /home/vhosts/XXXXXX.XX/httpdocs/app/Mage.php:594
Stack trace:
#0 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException('Ongeldig blokty...')
#1 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance('page/html_cooki...', Array)
#2 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock('page/html_cooki...', 'global_cookie_n...')
#3 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock('page/html_cooki...', 'global_cookie_n...')
#4 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(40): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(205): Smartwave_All_Model_Core_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#6 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(31): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#7 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(206): Smartwave_All_Model_Core_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#8 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(31): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#9 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/Layout.php(206): Smartwave_All_Model_Core_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#10 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/All/Model/Core/Layout.php(31): Mage_Core_Model_Layout->generateBlocks(Object(Mage_Core_Model_Layout_Element))
#11 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Smartwave_All_Model_Core_Layout->generateBlocks()
#12 /home/vhosts/XXXXXX.XX/httpdocs/app/code/local/Smartwave/Ajaxcart/controllers/IndexController.php(168): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#13 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Smartwave_Ajaxcart_IndexController->optionsAction()
#14 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch('options')
#15 /home/vhosts/XXXXXX.XX/httpdocs/app/code/community/BalkeTechnologies/StoreMaintenance/Controller/Router/Standard.php(91): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#16 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Controller/Varien/Front.php(176): BalkeTechnologies_StoreMaintenance_Controller_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /home/vhosts/XXXXXX.XX/httpdocs/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#18 /home/vhosts/XXXXXX.XX/httpdocs/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#19 /home/vhosts/XXXXXX.XX/httpdocs/index.php(87): Mage::run('', 'store')
#20 {main}
The Block of Type Mage_Page_Block_Html_CookieNotice does not exist in Magento 1.7. It was introduced in Magento 1.8.
If you use a bought template check if it is compatible with your used Magento Version. If it is, file a bug report with the developer.
If not you could try to upgrade you magento version.

Resources