Jump to content

Problema Import Csv In Un Sito.


fabiowebdesigner

Recommended Posts

Ciao ragazzi.

Ho provato a caricare un CSV di prodotti su Prestashop e mi ha dato questo errore.

 

 

[PrestaShopException]

 

Parent category does not exist

at line 374 in file classes/Category.php

 

368.   if (!$this->id_parent)

369.    return 0;

370. 

371.   $parent_category = new Category((int)$this->id_parent);

372.   if (!Validate::isLoadedObject($parent_category))

373.    throw new PrestaShopException('Parent category does not exist');

374.   return $parent_category->level_depth + 1;

375.  }

376. 

377.  /**

378.    * Re-calculate the values of all branches of the nested tree

CategoryCore->calcLevelDepth - [line 150 - classes/Category.php]

CategoryCore->add - [line 1838 - controllers/admin/AdminImportController.php]

AdminImportControllerCore->productImportCreateCat - [line - ] - [3 Arguments]

call_user_func_array - [line 997 - classes/Category.php] - [2 Arguments]

CategoryCore::searchByPath - [line 1426 - controllers/admin/AdminImportController.php] - [4 Arguments]

AdminImportControllerCore->productImport - [line 3264 - controllers/admin/AdminImportController.php]

AdminImportControllerCore->postProcess - [line 171 - classes/controller/Controller.php]

ControllerCore->run - [line 373 - classes/Dispatcher.php]

DispatcherCore->dispatch - [line 54 - admin/index.php]

 

 

Il file è lo stesso che ho esportato da prestashop per modificare i prezzi e poi ricaricarlo.

 

Spero possiate aiutarmi a risolverlo.

Cordiali saluti.

Link to comment
Share on other sites

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