【发布时间】:2015-05-24 12:28:04
【问题描述】:
Magento v 1.9.1.0 尝试使用 Authorize.net 和/或 Paypal。两者都不起作用...任何帮助将不胜感激。
Authorize 给出错误提示“处理您的订单时出错。请与我们联系或稍后重试。”异常日志如下:
2015-03-20T23:53:05+00:00 ERR (3): 异常 'PDOException' 带有消息 'SQLSTATE[HY000]: 一般错误: 1205 锁定等待超时 超过;尝试重新启动事务' /..../public_html/lib/Zend/Db/Statement/Pdo.php:228 堆栈跟踪:
0 /..../public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
1 /..../public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
2 /..../public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
3 /..../public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
4 /..../public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT
si.*, ...', Array)5 /..../public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT
si.*, ...', Array)6 /..../public_html/lib/Zend/Db/Adapter/Abstract.php(737):Varien_Db_Adapter_Pdo_Mysql->查询(对象(Varien_Db_Select),数组)
7 /..../public_html/app/code/core/Mage/CatalogInventory/Model/Resource/Stock.php(138):
Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
8 /..../public_html/app/code/local/Mana/CatalogInventory/Model/Stock.php(50):
Mage_CatalogInventory_Model_Resource_Stock->getProductsStock(Object(Mana_CatalogInventory_Model_Stock), 数组,真)
9 /..../public_html/app/code/core/Mage/CatalogInventory/Model/Observer.php(635):
Mana_CatalogInventory_Model_Stock->registerProductsSale(Array)
10 /../public_html/app/code/core/Mage/Core/Model/App.php(1338): Mage_CatalogInventory_Model_Observer->subtractQuoteInventory(Object(Varien_Event_Observer))
11 /..../public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_CatalogInventory_Model_Observer),
'subtractQuoteIn...',对象(Varien_Event_Observer))
12 /..../public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('sales_model_ser...', Array)
13 /..../public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(187):
Mage::dispatchEvent('sales_model_ser...', Array)
14 /..../public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249):
Mage_Sales_Model_Service_Quote->submitOrder()
15 /..../public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(784):
Mage_Sales_Model_Service_Quote->submitAll()
16 /..../public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(579):
Mage_Checkout_Model_Type_Onepage->saveOrder()
17 /..../public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418):
Mage_Checkout_OnepageController->saveOrderAction()
18 /..../public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250):
Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
19 /..../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))
20 /..../public_html/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
21 /..../public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
22 /..../public_html/index.php(91): Mage::run('', 'store')
23 {主要}
带有消息的下一个异常“Zend_Db_Statement_Exception” 'SQLSTATE[HY000]: 一般错误: 1205 Lock wait timeout exceeded;尝试 重新启动事务,查询为:SELECT
si.*,p.type_idFROMmagentocataloginventory_stock_itemASsi内连接magentocatalog_product_entityASpON p.entity_id=si.product_id WHERE (stock_id=1) AND (product_id IN(1661396)) FOR UPDATE' in /..../public_html/lib/Zend/Db/Statement/Pdo.php:235 堆栈跟踪:0 /..../public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
1 /..../public_html/app/code/core/Zend/Db/Statement.php(291): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
2 /..../public_html/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
3 /..../public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SELECT
si.*, ...', Array)4 /..../public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428): Zend_Db_Adapter_Pdo_Abstract->query('SELECT
si.*, ...', Array)5 /..../public_html/lib/Zend/Db/Adapter/Abstract.php(737):Varien_Db_Adapter_Pdo_Mysql->查询(对象(Varien_Db_Select),数组)
6 /..../public_html/app/code/core/Mage/CatalogInventory/Model/Resource/Stock.php(138):
Zend_Db_Adapter_Abstract->fetchAll(Object(Varien_Db_Select))
7 /..../public_html/app/code/local/Mana/CatalogInventory/Model/Stock.php(50):
Mage_CatalogInventory_Model_Resource_Stock->getProductsStock(Object(Mana_CatalogInventory_Model_Stock), 数组,真)
8 /..../public_html/app/code/core/Mage/CatalogInventory/Model/Observer.php(635):
Mana_CatalogInventory_Model_Stock->registerProductsSale(Array)
9 /..../public_html/app/code/core/Mage/Core/Model/App.php(1338):Mage_CatalogInventory_Model_Observer->subtractQuoteInventory(Object(Varien_Event_Observer))
10 /..../public_html/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_CatalogInventory_Model_Observer),
'subtractQuoteIn...',对象(Varien_Event_Observer))
11 /..../public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('sales_model_ser...', Array)
12 /..../public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(187):
Mage::dispatchEvent('sales_model_ser...', Array)
13 /..../public_html/app/code/core/Mage/Sales/Model/Service/Quote.php(249):
Mage_Sales_Model_Service_Quote->submitOrder()
14 /..../public_html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(784):
Mage_Sales_Model_Service_Quote->submitAll()
15 /..../public_html/app/code/core/Mage/Checkout/controllers/OnepageController.php(579):
Mage_Checkout_Model_Type_Onepage->saveOrder()
16 /..../public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(418):
Mage_Checkout_OnepageController->saveOrderAction()
17 /..../public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250):
Mage_Core_Controller_Varien_Action->dispatch('saveOrder')
18 /..../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))
19 /..../public_html/app/code/core/Mage/Core/Model/App.php(354):Mage_Core_Controller_Varien_Front->dispatch()
20 /..../public_html/app/Mage.php(684): Mage_Core_Model_App->run(Array)
21 /..../public_html/index.php(91): Mage::run('', 'store')
22 {主}
【问题讨论】:
标签: magento authorize.net