Jump to content

Problems adding new categories


Paulsmithhome

Recommended Posts

Hi

 

I have my shop running for a while now, I needed to add some new categories but when I click add new category in bo i get an error script, I have no idea what i have done wrong, any help would be appreciated.

 

here is the error

[PrestaShopException]

Id must be filled for categories tree
at line 104 in file classes/helper/HelperForm.php

99.                             break;100. 101.                         case 'categories':102.                             if ($categories) {103.                                 if (!isset($params['tree']['id'])) {104.                                     throw new PrestaShopException('Id must be filled for categories tree');105.                                 }106. 107.                                 $tree = new HelperTreeCategories($params['tree']['id'], isset($params['tree']['title']) ? $params['tree']['title'] : null);108. 109.                                 if (isset($params['name'])) {
Link to comment
Share on other sites

your shop uses override override/controllers/admin/AdminCategoriesController.php

and problem you've got is related to this override.

 

overrides usually are a part of some custom modules that changes the way of how shop core works.

due to this - it will be hard to help because we dont know what module you uses and what code this override contains

Link to comment
Share on other sites

  • 5 weeks later...

same problem for me also. 

 

Thanks to Vekia, i searched and tried to disable those recent modules.

found that black sheep :)  ...  " Background Switcher "  

 

once i disable this module , problem solved 

 

 

 Please Note: I downloaded that module from Vekia's free modules list in a  comment in a forum thread. 

 - https://www.prestashop.com/forums/topic/233442-free-modules-list-only-valuable-and-proven-solutions-7sept2016/?p=1148364&do=findComment&comment=1148364

Edited by salim72562 (see edit history)
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...