lozaria Posted May 3, 2011 Share Posted May 3, 2011 Hello,I made a clean upgrade - no other modules, no other themes than the native 1.4 ones.However I'm getting all my categories in Categories Block duplicated. The duplicates have the same ID as the originals so I guess that the problem is within the Category Block.I tried to delete and reimport the categories from .csv file but the problem still occurs.Here is the site: http://www.kristo-trade.com/prestashop/Thanks! Link to comment Share on other sites More sharing options...
lozaria Posted May 3, 2011 Author Share Posted May 3, 2011 I found the answer: http://forge.prestashop.com/browse/PSCFI-1616The fix is to delete the duplicated records in table category_group.I made it in the following way in phpMyAdmin / SQL:That creates new table ps_category_group_temp without duplicated rows:CREATE TABLE ps_category_group_temp AS SELECT ps_category_group.id_category, ps_category_group.id_groupFROM ps_category_groupGROUP BY ps_category_group.id_category, ps_category_group.id_group;Then rename the old table to ps_category_group_OLD and the new to ps_category_groupRENAME TABLE ps_category_group TO ps_category_group_OLDRENAME TABLE ps_category_group_temp TO ps_category_group Link to comment Share on other sites More sharing options...
Dakota3511 Posted May 6, 2011 Share Posted May 6, 2011 Thanks for your post. Problem seems to be solved however i still see duplicated categories in the home while, when i enter in one product, the list its shown correct. Any help to find the clue to solve this? http://www.tuherramienta.esThank you again. Link to comment Share on other sites More sharing options...
Dakota3511 Posted May 6, 2011 Share Posted May 6, 2011 It is now solved. May be there was a cache showing me wrong information.Your detailed solution was of great help. thanks. Link to comment Share on other sites More sharing options...
mrzoom Posted May 11, 2011 Share Posted May 11, 2011 It worked almost for me, I had to do the same with ps_category_group. Link to comment Share on other sites More sharing options...
kosmik Posted May 19, 2011 Share Posted May 19, 2011 I ugraded from 1.3.6 to 1.4.1 and have duplicated categories too..Can't really tell what's wrong but table ps_category_group does have duplicate records with no clear patterns as not every category was affected.Manually removed the duplicates but not immediately see the correct result. Tried disabling performance/cache and it worked! Enabled the cache and the categories go duplicate again.Now I noticed categories only showing only in my default language even after I switched language - another headache to fix next Link to comment Share on other sites More sharing options...
davers44 Posted May 20, 2011 Share Posted May 20, 2011 You should try to clear the cache folder manually.Anyway I noticed category duplication in 1.4.1 even without upgrade but just importing a backup database. As said not easy to solve promptly as things gets complicated switching language too. 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