2016-04-26 50 views
1

我使用的是magento 2.0.4和PHP 7. 在这一点上,我绝望了,因为我的网站需要明天上线。签出失败SQLState

结账,我得到了一个错误: 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} [] [] 

请人的想法我可以做什么或检查或如何,我可以继续故障排除?

我所做的事情:

  • 禁用每当我有
  • 重新部署静态内容
  • 经过php.ini设置模块
  • 双项经过税率后端
  • 检查sales_sequence表的数据库

要知道,

  • 我使用PHP 7.0
  • 我用phpmyadmin 4.5
  • 我使用一个共享的主机,此刻
  • 我有限的PHP知识编码

更新

所以,现在我到了订单确认页面,但我没有收到确认邮件。看来,服务器内部的问题,以达到XML文件

最新通报2

我一直有“订单确认邮件没有发送”然后我按下发送邮件(在后端上的顺序图)它说“订单确认邮件已发送”,但事实并非如此。 Hmmn

+0

所以,现在我得到的订单确认页面,但我解决了这个问题不要收到确认邮件。我认为我仍然有同样的问题,但我添加的自定义注册字段强制排序 – Versdivers

回答

0

我通过在数据库中的cron_schedule删除订单(实际订单,没有订单队列),并把我的网站“异步发送”关于残疾人