如何解决Magento:付款交易失败提醒SQLSTATE [42S22]:找不到列
| 通过付款选项Authorize.net下订单时出现此错误。Reason
SQLSTATE[42S22]: Column not found: 1054 Unknown column \'\' in \'field list\'
Checkout Type
onepage
Shipping Method:
Shipping Option
Payment Method:
Credit Card (Authorize.net)
这是Authorize.net付款方式的问题还是数据库的问题,可能缺少任何字段。
我无法从中说出“未知列”的原因,但是它显示为空,因此我无法猜测哪个表中缺少哪个列。
任何帮助将是感激的
另一笔付款交易失败提醒
这是异常日志
ERR (3):
exception \'PDOException\' with message \'SQLSTATE[42S22]: Column not found: 1054 Unknown column \'\' in \'field list\'\' in /chroot/home/abc/sitename.com/html/lib/Zend/Db/Statement/Pdo.php:228
Stack trace:
#0 /chroot/home/abc/sitename.com/html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(Array)
#1 /chroot/home/abc/sitename.com/html/lib/Zend/Db/Statement.php(300): Zend_Db_Statement_Pdo->_execute(Array)
#2 /chroot/home/abc/sitename.com/html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array)
#3 /chroot/home/abc/sitename.com/html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query(\'INSERT INTO `cu...\',Array)
#4 /chroot/home/abc/sitename.com/html/lib/Varien/Db/Adapter/Pdo/Mysql.php(337): Zend_Db_Adapter_Pdo_Abstract->query(\'INSERT INTO `cu...\',Array)
#5 /chroot/home/abc/sitename.com/html/lib/Zend/Db/Adapter/Abstract.php(574): Varien_Db_Adapter_Pdo_Mysql->query(\'INSERT INTO `cu...\',Array)
#6 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1215): Zend_Db_Adapter_Abstract->insert(\'customer_entity\',Array)
#7 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Eav/Model/Entity/Abstract.php(1012): Mage_Eav_Model_Entity_Abstract->_processSaveData(Array)
#8 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Core/Model/Abstract.php(318): Mage_Eav_Model_Entity_Abstract->save(Object(Mage_Customer_Model_Customer))
#9 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Core/Model/Resource/Transaction.php(150): Mage_Core_Model_Abstract->save()
#10 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Sales/Model/Service/Quote.php(183): Mage_Core_Model_Resource_Transaction->save()
#11 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Sales/Model/Service/Quote.php(238): Mage_Sales_Model_Service_Quote->submitOrder()
#12 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Checkout/Model/Type/Onepage.php(742): Mage_Sales_Model_Service_Quote->submitAll()
#13 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Checkout/controllers/OnepageController.php(499): Mage_Checkout_Model_Type_Onepage->saveOrder()
#14 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Core/Controller/Varien/Action.php(420): Mage_Checkout_OnepageController->saveOrderAction()
#15 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(253): Mage_Core_Controller_Varien_Action->dispatch(\'saveOrder\')
#16 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#17 /chroot/home/abc/sitename.com/html/app/code/core/Mage/Core/Model/App.php(340): Mage_Core_Controller_Varien_Front->dispatch()
#18 /chroot/home/abc/sitename.com/html/app/Mage.php(627): Mage_Core_Model_App->run(Array)
#19 /chroot/home/abc/sitename.com/html/index.php(80): Mage::run(\'\',\'store\')
#20
解决方法
我首先建议运行Magento DB修复工具,以查看是否有任何被破坏的数据库表。如果不是,请尝试在Magento中打开错误日志,看看是否可以获得有关该查询的更多信息(或至少在堆栈的生成位置)。
如果您真的很绝望,请在MySQL中打开查询日志,然后直接查看查询以了解问题所在。
希望有帮助!
谢谢,
乔
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。