Jump to content

Back Office Categories Error


Recommended Posts

As per the topic title, my back office is displaying the add subcategories page in an unusual, misaligned way and I'm unable to add any new categories as a result. The text and objects are misaligned and there are random flags being generated all over the page. I've run a report and it's returning "Notice on line 96 in file /classes/helper/HelperForm.php
 [8] Undefined index: tree"
 

I've had a look at line 96 in that file but the technical know-how required to fix this error is beyond me. I tried changing the code to an old backup from when I know it was working but it's exactly the same and so the problem persists.
 

I'd be really grateful if anyone could help. Oh, and this is how it's displaying...
 
 

 

post-876445-0-76076100-1431997824_thumb.png

Link to comment
Share on other sites

Hi Mickeyboy1,

 

Yeah, I've tried that but the code hasn't actually changed so it didn't make any difference. I've never touched the HelperForm.php file so I have no idea why adding categories has suddenly stopped working. I've seen that a few others have had a similar problem but no one has actually managed to solve it.

Link to comment
Share on other sites

Having stumbled across an old thread on this topic I've now managed to solve this, though my issue was slightly different so I will explain what I did in the hope that it may help someone else one day.

 

The thread I stumbled across was https://www.prestashop.com/forums/topic/413895-error-id-must-be-filled-for-categories-tree/. In it, Pete78 suggests changing some of the code in the AdminCategoriesController.php file found in /override/controllers/admin/. When I looked at this file I only had two lines of code so thought that this must be the problem. I then found an old backup and duly went to find the correct file so I could simply replace the old file for the new file. Trouble was, there was no file called AdminCategoriesController.php in that same folder. I then went back to my cpanel and simply deleted the file. Hey, presto the categories add page is working perfectly again!

 

I can only assume that this file has been added by a module I've installed recently, but it certainly doesn't seem to be needed.

 

Hope this helps someone in the future.

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