Page 1 of 1
Database error messages in Admin
Posted: Fri May 06, 2016 9:57 pm
by chrisio
Hi.
I am getting the below error message on the product page (when editing a product)
https://www.penrithposters.co.uk/error.png (click the link to view the entire error message)
I have looked in the db to try and find the duplicate entry but I am unable to spot anything astray. Does anyone know where I should be looking for the duplicate?
Thanks
Chris
Re: Database error messages in Admin
Posted: Sat May 07, 2016 8:38 am
by MarketInSG
try checking your url_alias database table for duplicate entry.
Re: Database error messages in Admin
Posted: Sun May 08, 2016 8:31 am
by straightlight
This error message is not caused by a duplicated entry / value from the database but the way It was queried. As indicated from the picture,
subquery error is returned.
I actually found a relative post on StackOverFlow which demonstrates the facts:
http://stackoverflow.com/questions/2736 ... than-1-row
This query is definitely a bug located in admin/model/catalog/category.php file.
Re: Database error messages in Admin
Posted: Sun May 08, 2016 8:25 pm
by MarketInSG
From the error in the screenshot, it means that in the url_alias table, there is 2 similar entry. Since it is mentioned that it is on the category page, this means that there is 2 entry with the same value in the 'query' column. (e.g. there's 2 of 'category_id=X' in the url_alias table.
Hope this enlightens everyone and others that reads this in the future.
Re: Database error messages in Admin
Posted: Fri May 13, 2016 1:27 am
by straightlight
Since two different results might be possible, in this case, I created a free contribution to see if these errors would still persist after providing results to merchants:
http://www.opencart.com/index.php?route ... n_id=26654