cleoni Posted January 3, 2014 Share Posted January 3, 2014 (edited) Hello, I am trying to fix a bug (or at least, I think it is) in AddressController.php but my changes are simply ignored. if I edit controllers/front/AddressController.php and insert a die('halted'); or even a simple and plain syntax error in the file just to see if my changes are taken into account, if I then open the registration screen of the shop, everything works normally. I would expect the site to halt somewhere instead. Of course I have disabled the cache, tried to clear it with BO->Advanced->Performance [Clear Smarty Cache and Autoload Cache] but code it still doesn't halt. I know I should use the "override" folder, but since every change is ignored, I thought to go straight to the core code. I am using Presta 1.5.6.0... where I'm wrong? Edited January 3, 2014 by cleoni (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted January 3, 2014 Share Posted January 3, 2014 did you edit controllers/front/AdminController.php as you stated in your post (this is not a valid file, it does not exist there)? Or did you edit controllers/front/AddressController.php? If yes, where exactly did you put the die()? Link to comment Share on other sites More sharing options...
cleoni Posted January 3, 2014 Author Share Posted January 3, 2014 (edited) Oh sorry I edited AddressController, I just mistyped its name.I have put die() in in the constructor. However, if there is a syntax error in the file I assume this should stop the whole execution as soon as the class is loaded... very strange it still works like a charm, isn't it? Edited January 3, 2014 by cleoni (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted January 3, 2014 Share Posted January 3, 2014 Have you actually tried to add or edit an address? The registration page does not use AddressController Link to comment Share on other sites More sharing options...
cleoni Posted January 3, 2014 Author Share Posted January 3, 2014 Oh, mystery's explained.I landed on AddressController by trying to solve a bug whose resolution (taken from this forum) was based on a AddressController patch.Thanks for the hint! 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