【发布时间】:2016-02-15 11:07:05
【问题描述】:
从后端向我的客户订购。我收到以下消息
订单保存错误:SQLSTATE[23000]:完整性约束违规:1048 列“customer_id”不能为空,查询为:INSERT INTO rewardpointspro_account(customer_id,store_id,points_current,points_received)值 (?, ?, ?, ?)
谁能帮我解决和我刚接触magento一样的问题
【问题讨论】:
-
我想代表我的客户从后端下订单
-
希望对于这样的异常,我们会在 magento 异常日志 (var/log/exception.log) 或服务器 php error.log 文件中生成一些日志。可能有一些扩展覆盖了magento 中的现有行为,因此我们希望从日志中得到这个 sql 错误,我们将能够确定确切的问题。
标签: magento magento-1.9