omine Posted December 23, 2015 Share Posted December 23, 2015 PrestaShop displays this error when try to change the order status: You can't specify target table 'ps_order_invoice' for update in FROM clause UPDATE `ps_order_invoice` SET number =(SELECT new_number FROM (SELECT (MAX(`number`) + 1) AS new_number FROM `ps_order_invoice`) AS result) WHERE `id_order_invoice` = 1 PS 1.6.1.3 MySQL 5.7 I think is the same problem described on this topic: https://www.prestashop.com/forums/topic/493398-mysql-57-causes-error-when-ps-try-to-insert-date-as-0000-00-00-000000/ Link to comment Share on other sites More sharing options...
omine Posted December 23, 2015 Author Share Posted December 23, 2015 (edited) Besides of this error, the order status was changed correctly. So, i noticed my configuration was running on debug mode. I changed back to define('_PS_MODE_DEV_', false); and the error do not displays. Edited December 25, 2015 by omine (see edit history) Link to comment Share on other sites More sharing options...
joseantgv Posted December 28, 2015 Share Posted December 28, 2015 Check this commit: https://github.com/PrestaShop/PrestaShop/commit/34ad2f5f45e8b02ce7c3174d94644d6114399746 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now