hdt Posted June 23, 2019 Share Posted June 23, 2019 Bonjour , en configurant mon nouveau theme sur prestashop, une page s'est affichée et je ne peux plus rien faire! merci d'avance de m'informer sur ce qu'il se passe? Oops! An Error Occurred The server returned a "500 Internal Server Error". Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused. Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 Allo, docteur, j'ai mal ! Pourquoi ? Link to comment Share on other sites More sharing options...
Mediacom87 Posted June 23, 2019 Share Posted June 23, 2019 Conseils pour une meilleure utilisation du forum Questions détaillées N’hésitez pas à donner des détails dans vos posts, vous obtiendrez des réponses plus facilement et plus rapidement, plutôt que d’autres questions. Voici une liste d'informations importantes à préciser : Citation Type d’install (nouvelle/MàJ) : Version de PS : URL du site concerné : Thème (défaut/perso) : Code (original/modifié) : Hébergement : Version de PHP : Version de MySQL : Navigateur(s) concerné(s) : Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 43 minutes ago, Eolia said: Allo, docteur, j'ai mal ! Pourquoi ? ??? Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 Sans info sur votre version ni le contexte, impossible de vous aider. Et concernant l'erreur 500 il a déjà été répété de nombreuses fois sur ce forum comment, au minimum, en savoir plus Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 je n'ai pas de grandes connaissances dans le domaine, désolée Type d’install (nouvelle/MàJ) : prestashop 1.7.5.1Version de PS :URL du site concerné : le site n'est pas publiéThème (défaut/perso) : esopresta par creanicoCode (original/modifié) :Hébergement : ovhVersion de PHP : 7.2Version de MySQL : v5.6Navigateur(s) concerné(s) : chrome Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 A partir de la version 1.5, comme toujours en cas d'erreur 500 et pour en savoir plus, il faut modifier cette ligne au début du fichier config/defines.inc.php sur votre ftp (En utilisant FileZilla) : define('_PS_MODE_DEV_', false); en remplaçant false par true, ce qui donne: define('_PS_MODE_DEV_', true); Et donnez-nous l'erreur après avoir enregistré le fichier et rafraîchi la page Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 16 minutes ago, Eolia said: A partir de la version 1.5, comme toujours en cas d'erreur 500 et pour en savoir plus, il faut modifier cette ligne au début du fichier config/defines.inc.php sur votre ftp (En utilisant FileZilla) : define('_PS_MODE_DEV_', false); en remplaçant false par true, ce qui donne: define('_PS_MODE_DEV_', true); Et donnez-nous l'erreur après avoir enregistré le fichier et rafraîchi la page malheureusement, je ne trouve pas define('_PS_MODE_DEV_', false); Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 ☹️ je n aurais peut etre pas du entreprendre un tel chantier comment je vais m'en sortir? Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 13 minutes ago, hdt said: malheureusement, je ne trouve pas define('_PS_MODE_DEV_', false); je trouve le fichier config/defines.inc.php mais pas define('_PS_MODE_DEV_', false); y a t il une solution s'il vous plait, ? Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 pouvez vous m'aider Eolia? Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 Pouvez-vous nous copier / coller ce que vous avez dans ce fichier svp ? Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 defines.inc.php_ fichier PHP je n'y arrive pas Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 je ne vous demande pas son nom mais son contenu, ce qu'il y a dedans Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 justement ce n'est juste qu'un fichier pas un dossier je ne peux pas l'ouvrir, il n'y a rien de + Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 est ce que j'ai la possibilité de tout désinstaller et recommencer? est ce que je dois passer par oVH? Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 euh... et un double clic dessus ??? le plus c'est pour déplier les dossiers pas pour ouvrir les fichiers Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 j'ai double cliqué dessus et rien de plus Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 si, il a été transféré... Bon, faites Bouton droit sur le fichier -> Editer Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 <?php /** * 2007-2018 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to [email protected] so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to http://www.prestashop.com for more information. * * @author PrestaShop SA <[email protected]> * @copyright 2007-2018 PrestaShop SA * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /* 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); define('_PS_MODE_DEMO_', false); $currentDir = dirname(__FILE__); if (!defined('_PS_HOST_MODE_') && (getenv('_PS_HOST_MODE_') || getenv('REDIRECT__PS_HOST_MODE_'))) { define('_PS_HOST_MODE_', getenv('_PS_HOST_MODE_') ? getenv('_PS_HOST_MODE_') : getenv('REDIRECT__PS_HOST_MODE_')); } if (!defined('_PS_ROOT_DIR_') && (getenv('_PS_ROOT_DIR_') || getenv('REDIRECT__PS_ROOT_DIR_'))) { define('_PS_ROOT_DIR_', getenv('_PS_ROOT_DIR_') ? getenv('_PS_ROOT_DIR_') : getenv('REDIRECT__PS_ROOT_DIR_')); } /* Directories */ if (!defined('_PS_ROOT_DIR_')) { define('_PS_ROOT_DIR_', realpath($currentDir.'/..')); } if (!defined('_PS_CORE_DIR_')) { define('_PS_CORE_DIR_', realpath($currentDir.'/..')); } define('_PS_ALL_THEMES_DIR_', _PS_ROOT_DIR_.'/themes/'); /* BO THEMES */ if (defined('_PS_ADMIN_DIR_')) { define('_PS_BO_ALL_THEMES_DIR_', _PS_ADMIN_DIR_.'/themes/'); } if (!defined('_PS_CACHE_DIR_')) { $prestashopCacheDir = _PS_ROOT_DIR_.'/var/cache/'.(_PS_MODE_DEV_ ? 'dev': 'prod'). DIRECTORY_SEPARATOR; define('_PS_CACHE_DIR_',$prestashopCacheDir); } define('_PS_CONFIG_DIR_', _PS_CORE_DIR_.'/config/'); define('_PS_CUSTOM_CONFIG_FILE_', _PS_CONFIG_DIR_.'settings_custom.inc.php'); define('_PS_CLASS_DIR_', _PS_CORE_DIR_.'/classes/'); if (!defined('_PS_DOWNLOAD_DIR_')) { define('_PS_DOWNLOAD_DIR_', _PS_ROOT_DIR_.'/download/'); } define('_PS_MAIL_DIR_', _PS_CORE_DIR_.'/mails/'); if (!defined('_PS_MODULE_DIR_')) { define('_PS_MODULE_DIR_', _PS_ROOT_DIR_.'/modules/'); } if (!defined('_PS_OVERRIDE_DIR_')) { define('_PS_OVERRIDE_DIR_', _PS_ROOT_DIR_.'/override/'); } define('_PS_PDF_DIR_', _PS_CORE_DIR_.'/pdf/'); define('_PS_TRANSLATIONS_DIR_', _PS_ROOT_DIR_.'/translations/'); if (!defined('_PS_UPLOAD_DIR_')) { define('_PS_UPLOAD_DIR_', _PS_ROOT_DIR_.'/upload/'); } define('_PS_CONTROLLER_DIR_', _PS_CORE_DIR_.'/controllers/'); define('_PS_ADMIN_CONTROLLER_DIR_', _PS_CORE_DIR_.'/controllers/admin/'); define('_PS_FRONT_CONTROLLER_DIR_', _PS_CORE_DIR_.'/controllers/front/'); define('_PS_TOOL_DIR_', _PS_CORE_DIR_.'/tools/'); if (!defined('_PS_GEOIP_DIR_')) { define('_PS_GEOIP_DIR_', _PS_CORE_DIR_.'/app/Resources/geoip/'); } if (!defined('_PS_GEOIP_CITY_FILE_')) { define('_PS_GEOIP_CITY_FILE_', 'GeoLite2-City.mmdb'); } define('_PS_VENDOR_DIR_', _PS_CORE_DIR_.'/vendor/'); define('_PS_PEAR_XML_PARSER_PATH_', _PS_TOOL_DIR_.'pear_xml_parser/'); define('_PS_SWIFT_DIR_', _PS_TOOL_DIR_.'swift/'); define('_PS_TAASC_PATH_', _PS_TOOL_DIR_.'taasc/'); define('_PS_TCPDF_PATH_', _PS_TOOL_DIR_.'tcpdf/'); if (!defined('_PS_IMG_DIR_')) { define('_PS_IMG_DIR_', _PS_ROOT_DIR_.'/img/'); } if (!defined('_PS_HOST_MODE_')) { define('_PS_CORE_IMG_DIR_', _PS_CORE_DIR_.'/img/'); } else { define('_PS_CORE_IMG_DIR_', _PS_ROOT_DIR_.'/img/'); } define('_PS_CAT_IMG_DIR_', _PS_IMG_DIR_.'c/'); define('_PS_COL_IMG_DIR_', _PS_IMG_DIR_.'co/'); define('_PS_EMPLOYEE_IMG_DIR_', _PS_IMG_DIR_.'e/'); define('_PS_GENDERS_DIR_', _PS_IMG_DIR_.'genders/'); define('_PS_LANG_IMG_DIR_', _PS_IMG_DIR_.'l/'); define('_PS_MANU_IMG_DIR_', _PS_IMG_DIR_.'m/'); define('_PS_ORDER_STATE_IMG_DIR_', _PS_IMG_DIR_.'os/'); define('_PS_PROD_IMG_DIR_', _PS_IMG_DIR_.'p/'); define('_PS_SHIP_IMG_DIR_', _PS_IMG_DIR_.'s/'); define('_PS_STORE_IMG_DIR_', _PS_IMG_DIR_.'st/'); define('_PS_SUPP_IMG_DIR_', _PS_IMG_DIR_.'su/'); define('_PS_TMP_IMG_DIR_', _PS_IMG_DIR_.'tmp/'); /* settings php */ define('_PS_TRANS_PATTERN_', '(.*[^\\\\])'); define('_PS_MIN_TIME_GENERATE_PASSWD_', '360'); if (!defined('_PS_MAGIC_QUOTES_GPC_')) { define('_PS_MAGIC_QUOTES_GPC_', false); } define('_CAN_LOAD_FILES_', 1); /* Order statuses Order statuses have been moved into config.inc.php file for backward compatibility reasons */ /* Tax behavior */ define('PS_PRODUCT_TAX', 0); define('PS_STATE_TAX', 1); define('PS_BOTH_TAX', 2); define('PS_TAX_EXC', 1); define('PS_TAX_INC', 0); define('PS_ROUND_UP', 0); define('PS_ROUND_DOWN', 1); define('PS_ROUND_HALF_UP', 2); define('PS_ROUND_HALF_DOWN', 3); define('PS_ROUND_HALF_EVEN', 4); define('PS_ROUND_HALF_ODD', 5); /* Backward compatibility */ define('PS_ROUND_HALF', PS_ROUND_HALF_UP); /* Carrier::getCarriers() filter */ // these defines are DEPRECATED since 1.4.5 version define('PS_CARRIERS_ONLY', 1); define('CARRIERS_MODULE', 2); define('CARRIERS_MODULE_NEED_RANGE', 3); define('PS_CARRIERS_AND_CARRIER_MODULES_NEED_RANGE', 4); define('ALL_CARRIERS', 5); /* SQL Replication management */ define('_PS_USE_SQL_SLAVE_', 0); /* PS Technical configuration */ define('_PS_ADMIN_PROFILE_', 1); /* Stock Movement */ define('_STOCK_MOVEMENT_ORDER_REASON_', 3); define('_STOCK_MOVEMENT_MISSING_REASON_', 4); define('_PS_CACHEFS_DIRECTORY_', _PS_ROOT_DIR_.'/cache/cachefs/'); /* Geolocation */ define('_PS_GEOLOCATION_NO_CATALOG_', 0); define('_PS_GEOLOCATION_NO_ORDER_', 1); define('MIN_PASSWD_LENGTH', 8); define('_PS_SMARTY_NO_COMPILE_', 0); define('_PS_SMARTY_CHECK_COMPILE_', 1); define('_PS_SMARTY_FORCE_COMPILE_', 2); define('_PS_SMARTY_CONSOLE_CLOSE_', 0); define('_PS_SMARTY_CONSOLE_OPEN_BY_URL_', 1); define('_PS_SMARTY_CONSOLE_OPEN_', 2); if (!defined('_PS_JQUERY_VERSION_')) { define('_PS_JQUERY_VERSION_', '1.11.0'); } define('_PS_CACHE_CA_CERT_FILE_', _PS_CACHE_DIR_.'cacert.pem'); Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 yes j 'ai compris, je vois le fichier à modifier Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 * Debug only */if (!defined('_PS_MODE_DEV_')) {define('_PS_MODE_DEV_', false); je dois juste modifier ca? Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 On avance^^ Mettez true à la place de false et enregistrez le fichier Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 c 'est fait Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 2 minutes ago, Eolia said: On avance^^ Mettez true à la place de false et enregistrez le fichier toujours rien ... Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 Vous avez rafraîchi la page qui était en erreur ? Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 4 minutes ago, Eolia said: Vous avez rafraîchi la page qui était en erreur ? oui et j'ai meme effacé les cookies du navigateur Link to comment Share on other sites More sharing options...
doekia Posted June 23, 2019 Share Posted June 23, 2019 Une patience d'ange @Eolia Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 4 minutes ago, doekia said: Une patience d'ange @Eolia merci pour elle doekia ☺️ heureusement que je tombe sur ce genre de personne .... Link to comment Share on other sites More sharing options...
Eolia Posted June 23, 2019 Share Posted June 23, 2019 Sauf que je suis un mec^^ Bon si pas d'erreur s'affiche c'est que le pb vient d'au-dessus, dans ce cas il faut regarder le fichier error.log de l'hébergeur Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 21 minutes ago, Eolia said: Sauf que je suis un mec^^ Bon si pas d'erreur s'affiche c'est que le pb vient d'au-dessus, dans ce cas il faut regarder le fichier error.log de l'hébergeur donc merci pour lui ^^ Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 je viens de lancer une restauration d'un snapshot sur OVH! bonne solution? Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 44 minutes ago, Eolia said: Sauf que je suis un mec^^ Bon si pas d'erreur s'affiche c'est que le pb vient d'au-dessus, dans ce cas il faut regarder le fichier error.log de l'hébergeur j'ai tout récupéré ..... merci pour tout Monsieur !!! j'ai modifié la base sur "net2ftp" via OVH et tout est ok merci encore pour votre "patience d'un ange" ☺️ Link to comment Share on other sites More sharing options...
hdt Posted June 23, 2019 Author Share Posted June 23, 2019 oups, je suis en mode debug !!!! l'erreur vient de là? L'activation de la configuration " sensio_framework_extra.router.annotations " est déconseillée depuis la version 5.2. Définissez-le sur false et utilisez l' annotation " Symfony \ Component \ Routing \ Annotation \ Route " de Symfony elle-même. Masquer le contexte Masquer la trace Link to comment Share on other sites More sharing options...
doekia Posted June 23, 2019 Share Posted June 23, 2019 Whaou, 4h a ne rien comprendre et quand on est à 2s d'un aboutissement, jeter l'échiquier par la fenêtre et demander sans sourciller si c'est une bonne solution. Pauvre @Eolia, il doit regretter d'avoir investi autant de temps en pure perte. Je te plains - comme quoi ta signature n'est jamais lu 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