Jump to content

[Sujet clôs] "Category cannot be loaded" -> Ajout produits impossible


Recommended Posts

Bonjour,
en voulant nettoyer la base de données (après intall) j'ai du faire une gaffe (apparemment dans la table `ps_category`)
du coup je ne peux pas ajouter de produits :(
quand je clique sur l'onglet 'Catalogue' ça affiche une page vide avec le message : "Category cannot be loaded"
Quelqu'un peut-il me dire comment réparer ma bourde ?
Merci beaucoup

12206_XqJk3aacaET2WL6uCmsQ_t

Link to comment
Share on other sites

Sorry, I don't speak french, but I have the same problem.)) This error tells, that object of the class "Category" couldn't been created.(See line 45 in /admin/tabs/AdminCatalog.php) It can happen when there is no categories in the database at all(in my case) i think. So, try to add them using phpMyAdmin or CSV Import. Good luck!

Link to comment
Share on other sites

  • 2 years later...

czyściłeś kategorię i produkty dodaj poprzez phpmyadmin scieżkę sql

 

INSERT INTO `PREFIX_category` (`id_category`, `id_parent`, `level_depth`, `nleft`, `nright`, `active`, `date_add`, `date_upd`, `position`) VALUES (1, 0, 0, 1, 8, 1, NOW(), NOW(), 0);

 

prestshop potrzebuje pierwszej pustej kategori dlatego jest błąd

 

 

--------------------------------------------------------------------------------------------------

clean the print category and add products through phpmyadmin sql path

 

INSERT INTO `PREFIX_category` (`id_category`, `id_parent`, `level_depth`, `nleft`, `nright`, `active`, `date_add`, `date_upd`, `position`) VALUES (1, 0, 0, 1, 8, 1, NOW(), NOW(), 0);

 

prestshop needs to first empty the category because it is a bug

Link to comment
Share on other sites

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