【问题标题】:Order saving error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'customer_id' cannot be null,订单保存错误:SQLSTATE [23000]:违反完整性约束:1048 列“customer_id”不能为空,
【发布时间】:2016-02-15 11:07:05
【问题描述】:

从后端向我的客户订购。我收到以下消息

订单保存错误:SQLSTATE[23000]:完整性约束违规:1048 列“customer_id”不能为空,查询为:INSERT INTO rewardpointspro_accountcustomer_idstore_idpoints_currentpoints_received)值 (?, ?, ?, ?)

谁能帮我解决和我刚接触magento一样的问题

【问题讨论】:

  • 我想代表我的客户从后端下订单
  • 希望对于这样的异常,我们会在 magento 异常日志 (var/log/exception.log) 或服务器 php error.log 文件中生成一些日志。可能有一些扩展覆盖了magento 中的现有行为,因此我们希望从日志中得到这个 sql 错误,我们将能够确定确切的问题。

标签: magento magento-1.9


【解决方案1】:

听起来“rewardpointspro”扩展程序可能已损坏。 Magento 正在尝试在数据库中写入一条记录,其中不应为 null 的值之一 (customer_id) 设置为 null。

除非您想深入研究(并修复)他的代码,否则我会联系该插件的开发人员寻求帮助。

【讨论】:

    猜你喜欢
    • 2021-02-01
    • 1970-01-01
    • 1970-01-01
    • 2019-11-20
    • 2021-08-16
    • 2019-10-06
    • 2020-10-25
    • 2017-02-28
    • 2017-04-15
    相关资源
    最近更新 更多