ResBEMarket Posted July 25, 2017 Share Posted July 25, 2017 Bonjour, J'ai un problème le mode debug a beau etre désactiver dans le fichier /config/defines.inc.php sur la version 1.6.1.4 /* Debug only */if (!defined('_PS_MODE_DEV_')) {define('_PS_MODE_DEV_', false);}/* Compatibility warning */define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false);if (_PS_MODE_DEV_ === true) { @ini_set('display_errors', 'on'); @error_reporting(E_ALL | E_STRICT); define('_PS_DEBUG_SQL_', true);} else { @ini_set('display_errors', 'off'); define('_PS_DEBUG_SQL_', false);}define('_PS_DEBUG_PROFILING_', false); le debug s'affiche toujours en bas de mes pages Voici un exemple Auriez vous une idée d'ou cela peut venir ? Merci à vous Link to comment Share on other sites More sharing options...
doekia Posted July 25, 2017 Share Posted July 25, 2017 (edited) Alors déja, ce que tu présentes en bas de page est le PROFILING, pas le DEBUG. Tu es 100% sûr de ne pas te tromper de système? Vérifie que dans settings.inc.php la constante _DB_PREFIX_ est bien pre5697_ Contenu de ton .htaccess, contenu du début de ton config.inc.php, jusque l'include du defines.inc.php Je constate aussi que tu es sans smarty cache, et en compilation forcée (dur pour les perfs) Edited July 25, 2017 by doekia (see edit history) Link to comment Share on other sites More sharing options...
ResBEMarket Posted July 25, 2017 Author Share Posted July 25, 2017 Pour le settings.inc.php define('_DB_PREFIX_', 'pre5697_'); Pour .htacces Order deny,allowDeny from all config.inc.php :$currentDir = dirname(__FILE__);/* Custom defines made by users */if (is_file($currentDir.'/defines_custom.inc.php')) { include_once($currentDir.'/defines_custom.inc.php');}require_once($currentDir.'/defines.inc.php');$start_time = microtime(true);/* SSL configuration */define('_PS_SSL_PORT_', 443);/* Improve PHP configuration to prevent issues */ini_set('default_charset', 'utf-8');ini_set('magic_quotes_runtime', 0);ini_set('magic_quotes_sybase', 0);/* correct Apache charset (except if it's too late */if (!headers_sent()) { header('Content-Type: text/html; charset=utf-8');}/* No settings file? goto installer... */if (!file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php')) { if (file_exists($currentDir.'/../install')) { header('Location: install/'); } elseif (file_exists($currentDir.'/../install-dev')) { header('Location: install-dev/'); } else { die('Error: "install" directory is missing'); } exit;}/* include settings file only if we are not in multi-tenancy mode */require_once(_PS_ROOT_DIR_.'/config/settings.inc.php');require_once(_PS_CONFIG_DIR_.'autoload.php');require_once $currentDir . DIRECTORY_SEPARATOR . 'bootstrap.php';/* Custom config made by users */if (is_file(_PS_CUSTOM_CONFIG_FILE_)) { include_once(_PS_CUSTOM_CONFIG_FILE_);}if (_PS_DEBUG_PROFILING_) { include_once(_PS_TOOL_DIR_.'profiling/Controller.php'); include_once(_PS_TOOL_DIR_.'profiling/ObjectModel.php'); include_once(_PS_TOOL_DIR_.'profiling/Db.php'); include_once(_PS_TOOL_DIR_.'profiling/Tools.php');}if (Tools::convertBytes(ini_get('upload_max_filesize')) < Tools::convertBytes('100M')) { ini_set('upload_max_filesize', '100M');}if (Tools::isPHPCLI() && isset($argc) && isset($argv)) { Tools::argvToGET($argc, $argv);}/* Redefine REQUEST_URI if empty (on some webservers...) */if (!isset($_SERVER['REQUEST_URI']) || empty($_SERVER['REQUEST_URI'])) { if (!isset($_SERVER['SCRIPT_NAME']) && isset($_SERVER['SCRIPT_FILENAME'])) { $_SERVER['SCRIPT_NAME'] = $_SERVER['SCRIPT_FILENAME']; } if (isset($_SERVER['SCRIPT_NAME'])) { if (basename($_SERVER['SCRIPT_NAME']) == 'index.php' && empty($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] = dirname($_SERVER['SCRIPT_NAME']).'/'; } else { $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; if (isset($_SERVER['QUERY_STRING']) && !empty($_SERVER['QUERY_STRING'])) { $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; } } }}/* Trying to redefine HTTP_HOST if empty (on some webservers...) */if (!isset($_SERVER['HTTP_HOST']) || empty($_SERVER['HTTP_HOST'])) { $_SERVER['HTTP_HOST'] = @getenv('HTTP_HOST');}$context = Context::getContext();/* Initialize the current Shop */try { $context->shop = Shop::initialize(); $context->theme = new Theme((int)$context->shop->id_theme); if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_')) { throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.')); }} catch (PrestaShopException $e) { $e->displayMessage();}define('_THEME_NAME_', $theme_name);define('__PS_BASE_URI__', $context->shop->getBaseURI());/* Include all defines related to base uri and theme name */require_once($currentDir.'/defines_uri.inc.php'); . J'ai réaciver le cache Merci Link to comment Share on other sites More sharing options...
doekia Posted July 25, 2017 Share Posted July 25, 2017 Tu n'as pas copié le .htaccess intégral là ? si ? As-tu un fichier config/defines_custom.inc.php Serait-il possible que tu ais des fichiers override/controller/Controller.php, override/classes/db/Db.php, override/classes/ObjectModel.php, override/classes/Tools.php Ou bien ces mêmes fichiers directement dans override? Si rien de tout ça PM pour venir voir 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