Magento v 1.9.1.0 试图使用Authorize.net和/或Paypal。两者都没有工作......非常感谢任何帮助。
授权会出现错误,上面写着"处理您的订单时出错。请联系我们或稍后再试。"异常日志如下:
2015-03-20T23:53:05 + 00:00 ERR(3):例外' PDO例外'消息' 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->查询(' SELECT
si
。*,.. 。',数组)5 /..../public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428):Zend_Db_Adapter_Pdo_Abstract->查询(' SELECT
si
。*,.. 。',数组)6 /..../public_html/lib/Zend/Db/Adapter/Abstract.php(737):Varien_Db_Adapter_Pdo_Mysql-> query(Object(Varien_Db_Select),Array)
7 /..../ public_html / app / code / core / Mage / CatalogInventory / Model / Resource / Stock.php(138):
Zend_Db_Adapter_Abstract->使用fetchall(对象(Varien_Db_Select))
8 /..../ public_html / app / code / local / Mana / CatalogInventory / Model / Stock.php(50):
Mage_CatalogInventory_Model_Resource_Stock-> getProductsStock(对象(Mana_CatalogInventory_Model_Stock), 数组,真)
9 /..../ public_html / app / code / core / Mage / CatalogInventory / Model / Observer.php(635):
Mana_CatalogInventory_Model_Stock-> registerProductsSale(阵列)
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 ...',Object(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->调度(' saveOrder&#39)
19 /..../ public_html / app / code / core / Mage / Core / Controller / Varien / Front.php(172):
Mage_Core_Controller_Varien_Router_Standard->匹配(对象(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 {main}
下一个例外' Zend_Db_Statement_Exception'与消息 ' SQLSTATE [HY000]:一般错误:1205超出锁定等待超时;尝试 重启事务,查询是:SELECT
si
。*,p
。type_id
FROMmagentocataloginventory_stock_item
ASsi
INNER JOINmagentocatalog_product_entity
ASp
ON p.entity_id = si.product_id WHERE(stock_id = 1)AND(product_id IN(1661396))FOR UPDATE'在 /..../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->查询(' SELECT
si
。*,.. 。',数组)4 /..../public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(428):Zend_Db_Adapter_Pdo_Abstract->查询(' SELECT
si
。*,.. 。',数组)5 /..../public_html/lib/Zend/Db/Adapter/Abstract.php(737):Varien_Db_Adapter_Pdo_Mysql-> query(Object(Varien_Db_Select),Array)
6 /..../ public_html / app / code / core / Mage / CatalogInventory / Model / Resource / Stock.php(138):
Zend_Db_Adapter_Abstract->使用fetchall(对象(Varien_Db_Select))
7 /..../ public_html / app / code / local / Mana / CatalogInventory / Model / Stock.php(50):
Mage_CatalogInventory_Model_Resource_Stock-> getProductsStock(对象(Mana_CatalogInventory_Model_Stock), 数组,真)
8 /..../ public_html / app / code / core / Mage / CatalogInventory / Model / Observer.php(635):
Mana_CatalogInventory_Model_Stock-> registerProductsSale(阵列)
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 ...',Object(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->调度(' saveOrder&#39)
18 /..../ public_html / app / code / core / Mage / Core / Controller / Varien / Front.php(172):
Mage_Core_Controller_Varien_Router_Standard->匹配(对象(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 {main}
答案 0 :(得分:0)
您需要刷新缓存,缓存存储并从后端重新索引,然后检查它。
答案 1 :(得分:0)
对于authorized.net,如果您正在使用测试帐户,那么在magneto中, “系统”>配置>付款方式> Authorize.net部分 设置以下细节:
启用:是
Api登录ID:您将从authorize.net帐户获得
Api Key:这将来自authorize.net帐户
新订单状态:处理
测试模式:否
网关网址:https://test.authorize.net/gateway/transact.dll
使用此配置,您将能够完成沙箱事务。