Jump to content

Help required with 'Fatal error: Call to undefined method IndexController::useMobileTheme()'


Recommended Posts

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:

 

 

 

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

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

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