skinnybloke Posted October 9, 2014 Share Posted October 9, 2014 Hi - I have just upgraded my Prestashop test site from v1.5.6 to 1.6.0.9. I can access the back office without any problems but I get a white screen on the front office. I have turned error reporting on in config/defines.inc.php and I get this message: Quote Fatal error: Call to undefined method IndexController::useMobileTheme() in /homepages/classes/controller/Controller.php on line 413 Any ideas anyone? Link to comment Share on other sites More sharing options...
NemoPS Posted October 13, 2014 Share Posted October 13, 2014 Open Classes/controller/FrontController.php, and check if you have this protected function useMobileTheme() { static $use_mobile_template = null; // The mobile theme must have a layout to be used if ($use_mobile_template === null) $use_mobile_template = ($this->context->getMobileDevice() && file_exists(_PS_THEME_MOBILE_DIR_.'layout.tpl')); return $use_mobile_template; } Link to comment Share on other sites More sharing options...
skinnybloke Posted October 14, 2014 Author Share Posted October 14, 2014 Hi Nemo1 - that pointed me in the right direction. I have got that code in FrontController.php. but I have found a FrontController.php in the overrides folder as well. After renaming the one in the overrides folder, all seems to be well. 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