Jump to content

Recommended Posts

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

  • 2 months later...

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 by joseantgv (see edit history)
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...