Jump to content

Bad SQL query - can't see shopping carts


plutocrata

Recommended Posts

Good afternoon, after upgrade to the version 1.7.8.4 using the 1-click-upgrade got this error when trying to see the shopping carts.

 

Bad SQL query
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'id_cart\`` DESC LIMIT 0, 50' at line 31

Any idea?

THanks in advance!

Screenshot 2022-04-06 at 15.42.32.png

Link to comment
Share on other sites

Hi,

please enable the debug mode to see the exact location of the php code where this is happening, as most probably you have some old override or module which is not compatible with the new version of your upgraded shop.

Let me know the error, so I can help you out with this.

Kind regards, Leo.

Link to comment
Share on other sites

An incorrect sql notation can be seen in sql.
The file has been modified AdminCartsController.php

ORDER BY a.'\'id_cart\' ' DESC ...

and it should be right

ORDER BY a.id_cart DESC ...

Or there is a module installed that adds or adds $this->_orderBy ....

Edited by knacky (see edit history)
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
×
×
  • Create New...