Jump to content

SQLSTATE[42S22]: Column not found: 1054 Unknown column 'unit_price' in 'field list'


clive@hmd

Recommended Posts

Just upgraded from Prestashop 1.7.8.9 to 8.1.1 and Using PHP 8.2 (also tried 8.1)

All migrated well but when we come to update any product we get SQLSTATE[42S22]: Column not found: 1054 Unknown column 'unit_price' in 'field list' and are not able to save the product with updates... We reverted back th PHP 7.4 and this error goes away.

 

Are there any suggestions to overcome this using PHP8.x?

Link to comment
Share on other sites

Hi,

Compare the database schema between Prestashop 1.7.8.9 and 8.1.1. Look for any differences in table structure, specifically the table related to product information. Make sure the 'unit_price' column exists in the new schema.

When upgrading Prestashop, there might be database update scripts that need to be run to ensure the database is properly upgraded

Clear the cache in Prestashop to ensure that any cached database information is updated to match the new schema.

Thanks!

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