Jump to content

Vouchers > Bad SQL Query


Recommended Posts

Details:

- Upgrading to Prestashop V1.3 from older version using an existing database

Problem Statement:

- In the back-end, navigating to Payment > Vouchers returns an error "Bad SQL Query"


Resolution Statement:

- There have been changes to the database infrastructure in V1.3 (AFAIK). This causes the php sql query to fail as it has an expectancy for a table which does not exist in the old database.

Resolution Fix:

- Launch preferred DB editor (Recommended: Heidi SQL 6.0 EXPERIENCED USERS ONLY http://www.heidisql.com/)
- Navigate to table "PS_DISCOUNT"
- At position 4 add column "id_currency" of types "INT 10" and default value 0
- Save changes to database
- Refresh the vouchers page in your browser and the issue should be resolved


SCREENSHOT ATTACHED

39671_IFHfN8IioyXg2K9vwj8M_t

  • Like 1
Link to comment
Share on other sites

  • 6 months later...

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...