Jump to content

PS 1.6.1.6 Add and also Edit Catogories New problem


KGI

Recommended Posts

Having recently updated various modules in the back office in the last few days I have just gone to edit one of my catorgories.

 

The edit page no longer opens and this error page and data is shown

(please note that all was performing correctly before the various module updates)

 

[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'])) {

 

 

Furher - trying to add a new catorgory this error page data is also shown.

 

[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'])) {

 

 

 

 

Can anyone from PS let me know whats gone wrong or is there a fix for this.

 

 

Chees

 

Ian

Link to comment
Share on other sites

From the error message, it seems one of the modules created override/controllers/admin/AdminCategoriesController.php, which is causing the error. The file must not be passing the right parameters when creating the category tree structure on the form. If you edit the file, you should see a comment above the function with the name of the module that created the override. You can then contact the module's developer for support. You can rename the file to AdminCategoriesController.bad or something like that to prevent PrestaShop loading it until you're able to find a solution.

Link to comment
Share on other sites

Hello

 

Thank you, yet again

 

The module is called

 

 

belvg_backgroundpages

 

it was one of the recommended modules (free)

 

as list on this page

https://www.prestashop.com/forums/topic/233442-free-modules-list-only-valuable-and-proven-solutions-31032014/

 

In total we tested 4 of these - 3 were found not to work or function correctly with 1.6.1.6 (which included this module causing the problem) - and were put back to being unabled.

 

The belvg_backgroundpages module was deleted this moring and we now have full access to our catorgories.

 

The other module we added - was the zompin chat - which seems to be working correctly.

 

As a point of interest - we tried to send you a small donation ( also a week or so ago too) - via your web site link.   It seem its all in Dutch and only allows USD $ - as its in dutch could not see where to go directly to make a paypal to paypal payment - only via credit card.

 

PV me to assist on this.

 

cheers

 

Ian

Link to comment
Share on other sites

That post you linked to is from 2013, so many of those modules may be outdated and not compatible with the latest version of PrestaShop. I think it is best to install them in a test environment first before installing them on a live website.

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