Jump to content

Parent category does not exist on csv import


jtaa

Recommended Posts

I am trying to import this csv file into prestashop v1.5, but I am getting a 500 error on import.

Setting this line in config/defines.inc.php:

define('PS_MODE_DEV', false); to true reveals the error:

 

 

[PrestaShopException]

Parent category does not exist

at line 381 in file classes/Category.php

 

I am making sure to select the comma as a column delimiter, forcing ID's, and deleting old categories on import.

Can someone please take a look at my csv file and tell me what is wrong as I cannot for the life of me work it out!

 

categoriesimport.txt

 

PS. You may notice peculiar "DELETE" labels in there. That is to try to overcome the issue of importing categories with the same name (which are actually in different subcategories in my store).

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

FIX for this error, do not check "Delete all categories before import?", if you already checked this, reinstall prestashop, enter Back Office at Categories, delete all from there and then import csv categories without checking "Delete all categories before import?"

Link to comment
Share on other sites

  • 2 years later...

Hi,

     i'm also getting this error many times. after a long time i found one think. when i mention any external url (Ex: http://modcom.info/webpics/computerplugcables/CFW9403.jpg) its shown the error. when i ignore this field products has imported successfully. So i want to import with image link. how can i import. please help me.

 

 

Thanks in advance

post-561133-0-25058900-1425021465_thumb.png

Edited by ramesh91 (see edit history)
Link to comment
Share on other sites

  • 7 months later...

FIX for this error, do not check "Delete all categories before import?", if you already checked this, reinstall prestashop, enter Back Office at Categories, delete all from there and then import csv categories without checking "Delete all categories before import?"

 

This isn't a fix. This is a scratch and restart. Has this been filed as a BUG? 

  • Like 1
Link to comment
Share on other sites

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