Jump to content

Class 'Mobile_Detect' not found


Recommended Posts

Hi, we're trying to upgrade our PS from 1.4.7 to latest 1.6.0.11 on localhost

During the upgrade.php Database process we have this error

 

Class 'Mobile_Detect' not found in C:\wamp\www\Prestashop\config\settings.inc.php on line 9

which is :

if ((isset($_GET['ps_mobile_site']) && $_GET['ps_mobile_site'] == 1) || !isset($_GET['ps_full_site']) || (!isset($_GET['ps_full_site']) && $_SERVER['HTTP_HOST'] == 'm.localhost')) { include(dirname(__FILE__).'/../modules/mobile_theme/Mobile_Detect.php'); $mobile_detect = new Mobile_Detect(); define('_PS_MOBILE_TABLET_', (int)$mobile_detect->isTablet()); define('_PS_MOBILE_PHONE_', isset($_GET['ps_mobile_site']) ? 1 : (int)$mobile_detect->isMobile()); } else { define('_PS_MOBILE_TABLET_', 0); define('_PS_MOBILE_PHONE_', 0); } define('_PS_MOBILE_', _PS_MOBILE_PHONE_ || _PS_MOBILE_TABLET_); if (_PS_MOBILE_) define('_THEME_NAME_', 'prestashop_mobile'); else

 
what we must do ?
we've noticed that there's no /module/mobile_theme in this 1.6 version
 
Please help, give us a tip
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...