BIA_DEV Posted September 22, 2023 Share Posted September 22, 2023 Hello, I want to enable a theme then I get this error : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '1' for key 'PRIMARY' How can I fix it, and from which files, thanks !! Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted September 29, 2023 Share Posted September 29, 2023 (edited) remove the module psstaticblocks first, then try to enable the theme, after that find the related table of psstaticblocks or mentioned by error, remove the entries with dumplicated key Edited September 29, 2023 by TiaNex Shopping (see edit history) Link to comment Share on other sites More sharing options...
QuickUpdate.net Posted September 30, 2023 Share Posted September 30, 2023 It might be a theme module "posstatickblocks" that tries to get installed when you enable the theme - it seems a database related error on the module install steps. Link to comment Share on other sites More sharing options...
AddWeb Solution Posted October 11, 2023 Share Posted October 11, 2023 Hi, You may need to investigate the module's code in the modules/posstaticblocks/ directory and identifying the specific query or code that is causing the "Duplicate entry '1'" error and fix it. This should be done by a developer who is familiar with Prestashop module development. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now