我正在使用magento 2.0.4和PHP 7。 在这一点上,我非常绝望,因为我的网站明天需要上线。
结帐时我收到下一个错误: picture here<---
>
>
> In my exception log i have the next output : [2016-04-26 18:52:21]
> main.CRITICAL: Zend_Db_Statement_Exception: Report ID:
> webapi-571fb8e513432; Message: SQLSTATE[23000]: Integrity constraint
> violation: 1062 Duplicate entry 'O-16-04-000014-1' for key
> 'SALES_ORDER_INCREMENT_ID_STORE_ID', query was: INSERT INTO
> `sales_order` (`state`, `status`, `protect_code`,
> `shipping_description`, `is_virtual`, `store_id`, `customer_id`,
> `base_discount_amount`, `base_grand_total`, `base_shipping_amount`,
> `base_shipping_tax_amount`, `base_subtotal`, `base_tax_amount`,
> `base_to_global_rate`, `base_to_order_rate`, `discount_amount`,
> `grand_total`, `shipping_amount`, `shipping_tax_amount`,
> `store_to_base_rate`, `store_to_order_rate`, `subtotal`, `tax_amount`,
> `total_qty_ordered`, `customer_is_guest`, `customer_note_notify`,
> `customer_group_id`, `quote_id`, `base_shipping_discount_amount`,
> `base_subtotal_incl_tax`, `base_total_due`,
> `shipping_discount_amount`, `subtotal_incl_tax`, `total_due`,
> `weight`, `increment_id`, `applied_rule_ids`, `base_currency_code`,
> `customer_email`, `customer_firstname`, `customer_lastname`,
> `customer_middlename`, `customer_taxvat`, `discount_description`,
> `global_currency_code`, `order_currency_code`, `remote_ip`,
> `shipping_method`, `store_currency_code`, `store_name`,
> `total_item_count`, `customer_gender`,
> `discount_tax_compensation_amount`,
> `base_discount_tax_compensation_amount`,
> `shipping_discount_tax_compensation_amount`,
> `base_shipping_discount_tax_compensation_amnt`,
> `discount_tax_compensation_invoiced`,
> `base_discount_tax_compensation_invoiced`,
> `discount_tax_compensation_refunded`,
> `base_discount_tax_compensation_refunded`, `shipping_incl_tax`,
> `base_shipping_incl_tax`, `gift_message_id`, `delivery_date`) VALUES
> (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?,
> ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, '2016-04-19') in
> /data/sites/web/versdiversbe/www/vendor/magento/framework/Webapi/ErrorProcessor.php:194
> Stack trace:
> #0 /data/sites/web/versdiversbe/www/vendor/magento/framework/Webapi/ErrorProcessor.php(139):
> Magento\Framework\Webapi\ErrorProcessor->_critical(Object(Zend_Db_Statement_Exception))
> #1 /data/sites/web/versdiversbe/www/vendor/magento/module-webapi/Controller/Rest.php(163):
> Magento\Framework\Webapi\ErrorProcessor->maskException(Object(Zend_Db_Statement_Exception))
> #2 /data/sites/web/versdiversbe/www/var/generation/Magento/Webapi/Controller/Rest/Interceptor.php(24):
> Magento\Webapi\Controller\Rest->dispatch(Object(Magento\Framework\App\Request\Http))
> #3 /data/sites/web/versdiversbe/www/vendor/magento/framework/App/Http.php(115):
> Magento\Webapi\Controller\Rest\Interceptor->dispatch(Object(Magento\Framework\App\Request\Http))
> #4 /data/sites/web/versdiversbe/www/vendor/magento/framework/App/Bootstrap.php(258):
> Magento\Framework\App\Http->launch()
> #5 /data/sites/web/versdiversbe/www/index.php(39): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
> #6 {main} [] []
任何人都知道我能做什么或检查或我如何继续解决问题?
我做过的事情:
了解
更新
所以现在我进入订单确认页面但是我没有收到确认邮件。似乎服务器有内部问题需要访问xml文件
更新2
我一直有订单确认邮件未发送&#39;然后我按发送邮件(在订单视图的后端),它说“订单确认邮件已发送&#39;但事实并非如此。 Hmmn
答案 0 :(得分:0)
我通过从数据库中的cron_schedule删除订单(实际订单,而不是订单队列)并将我的网站“异步发送”设置为禁用来解决此问题