skinnybloke Posted January 16, 2015 Share Posted January 16, 2015 Hi - I have just upgraded my site from v1.6.0.9 to v1.6.0.11 I have an override that has stopped overriding the live file. My problem override is '/override/classes/controller/FrontController.php' The only way I can get my override to work is if I rename the live one ' /classes/controller/FrontController.php' to '/classes/controller/Old-FrontController.php' This works fine until I clear the cache in the back office. All pages then display as blank pages. So to get my site working again I have to: 1. Rename the live 'Old-FrontController.php' to 'FrontController.php' 2, Refresh the cache in the Back office 3. Rename the live 'FrontController.php' back to 'Old-FrontController.php' Anyone any idea on what is going on? Link to comment Share on other sites More sharing options...
JPresta.com Posted January 16, 2015 Share Posted January 16, 2015 Renaming to Old-FrontController.php is not a good idea because the class is still loaded and is in conflict with FrontController.php. You should rename to FrontController.old Link to comment Share on other sites More sharing options...
skinnybloke Posted January 16, 2015 Author Share Posted January 16, 2015 My understanding is that I should not have to rename anything for an override to work - that is how it worked in v1.6.0.9 Link to comment Share on other sites More sharing options...
JPresta.com Posted January 16, 2015 Share Posted January 16, 2015 Just to be sure: did you check that using overrides is not disabled in admin? You should enable _PS_MODE_DEV_ mode in /config/defines.inc.php to see error messages. 1 Link to comment Share on other sites More sharing options...
skinnybloke Posted January 16, 2015 Author Share Posted January 16, 2015 (edited) Thanks for that Page Cache. Overrides were disabled in the back office. It looks like the upgrade disables this. I'll make a note of this so next time It wont be an issue. Thanks again Edited January 16, 2015 by skinnybloke (see edit history) 1 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