stoo_s Posted May 19, 2015 Share Posted May 19, 2015 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... Link to comment Share on other sites More sharing options...
gr_fenix Posted May 19, 2015 Share Posted May 19, 2015 Hi, Replace the file HelperForm.php with the original of prestashop new download Link to comment Share on other sites More sharing options...
stoo_s Posted May 19, 2015 Author Share Posted May 19, 2015 Thanks for the suggestion but I've just tried that and it makes the page crash completely. Link to comment Share on other sites More sharing options...
mickeyboy1 Posted May 19, 2015 Share Posted May 19, 2015 Have you tried replacing the file with the same file from the same ps version you are running? Link to comment Share on other sites More sharing options...
stoo_s Posted May 19, 2015 Author Share Posted May 19, 2015 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 More sharing options...
stoo_s Posted May 20, 2015 Author Share Posted May 20, 2015 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 More sharing options...
mickeyboy1 Posted May 20, 2015 Share Posted May 20, 2015 Glad you got it sorted stoo_s And well done for posting solution for others who might have the same issues. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now