Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Ошибка в заказе (не видно заказ)


asimakow
 Share

Recommended Posts

Всем привет. Вот такая начала ошибка выскакивать, никто не сталкивался? Как лечить? 

Около месяца назад делал нумерацию заказов с 10000, но видимо что-то пошло не так и как вернуть теперь не знаю, заказы видно, но сам заказ посмотреть нельзя

 

Warning: mysqli::query(): (21000/1242): Subquery returns more than 1 row in /home/****/****.ru/system/library/db/mysqli.php on line 19Notice: Error: Subquery returns more than 1 row
Error No: 1242
SELECT *, (SELECT CONCAT(c.firstname, ' ', c.lastname) FROM oc_customer c WHERE c.customer_id = o.customer_id) AS customer FROM `oc_order` o WHERE o.order_id = '10010' in /home/****/****.ru/system/library/db/mysqli.php on line 41Notice: Trying to get property of non-object in /home/****/****.ru/admin/model/sale/order.php on line 6

Link to comment
Share on other sites


Нарушена целостность базы. У вас по включу (номер заказа) возвращается более 1 записи
Теоретически можно сопоставить дату создания заказа и первую запись в истории заказа, чтобы выявить с какого номера пошло расхождение

Link to comment
Share on other sites


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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.