BALAM Posted May 20, 2013 Share Posted May 20, 2013 Bonjour, J'ai cette erreur dans mes logs: [Mon May 20 08:25:00 2013] [error] [client 66.249.73.141] PHP Notice: Use of undefined constant _PS_THEME_MOBILE_OVERRIDE_DIR_ - assumed '_PS_THEME_MOBILE_OVERRIDE_DIR_' in /var/www/vhosts/xxxxxxxxxx.com/httpdocs/classes/controller/FrontController.php on line 1069 { $layout_dir = _PS_THEME_MOBILE_DIR_; $layout_override_dir = _PS_THEME_MOBILE_OVERRIDE_DIR_; } Je cherche depuis plusieurs jours sans succès. Avez-vous une piste ? Merci de vos conseils. Cordialement, Balam Link to comment Share on other sites More sharing options...
joseantgv Posted August 1, 2013 Share Posted August 1, 2013 (edited) I add a line to else condition: /* For mobile devices */ if (file_exists(_PS_THEME_DIR_.'mobile/')) { define('_PS_THEME_MOBILE_DIR_', _PS_THEME_DIR_.'mobile/'); define('_THEME_MOBILE_DIR_', _THEMES_DIR_._THEME_NAME_.'/mobile/'); define('_PS_THEME_MOBILE_OVERRIDE_DIR_', _PS_THEME_MOBILE_DIR_.'override/'); } else { define('_PS_THEME_MOBILE_DIR_', _PS_ROOT_DIR_.'/themes/default/mobile/'); define('_THEME_MOBILE_DIR_', __PS_BASE_URI__.'themes/default/mobile/'); define('_PS_THEME_MOBILE_OVERRIDE_DIR_', __PS_BASE_URI__.'themes/default/mobile/override/'); } Edited August 1, 2013 by joseantgv (see edit history) 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