cancel
Showing results for 
Search instead for 
Did you mean: 

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'product_id' cannot be null

SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'product_id' cannot be null

Hi,
This error message shows in creation product from admin side and error message is like ("SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'product_id' cannot be null") also it gives success message related to this product, it shows both frontend and backend and we can edit this product  and assign to categories and it is working fine. 
 
We not know why this error message show while creating the product from admin side.
 
Regards,
1 REPLY 1

Re: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'product_id' cannot be null

According to your error, it looks like it comes from 3rd party module or custom modification.

I suggest to you to try with disabling 3rd party modules to find what module causes troubles. 

 

That's the easiest approach which even non-developers can do. After each check, clear the cache. Let me know what you've found.

If this response was helpful to you, consider giving kudos to this post.
If this response solved your problem, click accept as solution to help others solve this issue