CoolBreeze Posted August 4, 2014 Share Posted August 4, 2014 (edited) Bonjour à tous, je rencontre un problème avec mon site en front office qui affiche uniquement ce message sur une page blanche : Parse error: syntax error, unexpected '}' in /var/www/virtual/sn-solutions.ch/htdocs/override/classes/Cart.php on line 36 Je l'ai depuis hier (en tout cas) et je ne trouve ni la cause, ni la solution... Mon hébergeur ne cesse de me dire que c'est moi qui ait du faire une erreur alors que je n'ai strictement rien touché (j'y connais pas grand chose en php, pour ne pas dire rien du tout ) J'ai fais la mise à jour vers 1.6.0.9 aujourd'hui, ça n'a rien changé J'utilise le thème default-bootstrap D'où peut provenir ce problème ? Et comment le régler ? Merci pour votre aide Edited August 5, 2014 by CoolBreeze (see edit history) Link to comment Share on other sites More sharing options...
aghilas Posted August 4, 2014 Share Posted August 4, 2014 est ce que tu as activé un nouveau moyen de paiement récemment ? Link to comment Share on other sites More sharing options...
coeos.pro Posted August 4, 2014 Share Posted August 4, 2014 as tu installé ou désinstallé un module ? sur la 1.6.0.8 il y avait un bug qui pouvait mal installer ou désinstaller un override et ça provoquait justement ce type d'erreur. Regarde le fichier override/classes/Cart.php , dit nous si tu as des accolades qui n'ont pas leur place ou manquante Link to comment Share on other sites More sharing options...
CoolBreeze Posted August 4, 2014 Author Share Posted August 4, 2014 (edited) Bonjour à tous et merci pour vos réponses, je n'ai rien dé/installé récemment, si ce n'est la mise à jour 1.6.0.8 ==> 1.6.0.9 mais comme dit avant j'avais déjà ce problème en version 1.6.0.8... Pour faire simple et vu que je suis pas doué en php, voici le contenu du fichier fichier override/classes/Cart.php : <?php/** * Shopgate GmbH * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file AFL_license.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/AFL-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. * * @author Shopgate GmbH, Schloßstraße 10, 35510 Butzbach <[email protected]> * @copyright Shopgate GmbH * @license http://opensource.org/licenses/AFL-3.0 Academic Free License ("AFL"), in the version 3.0 */if (version_compare(_PS_VERSION_, '1.4.0.2', '>=') && version_compare(_PS_VERSION_, '1.4.1.0', '<=') && !class_exists('CartCore')){ /** * load CartCore for extending it for overwritting methods in 1.4.0.2 to 1.4.1.0 * in newer versions this is load automatically */ include_once(dirname(__FILE__).'/../../../../classes/Cart.php');}if (version_compare(_PS_VERSION_, '1.4.0.2', '>=')){ /** CartCore only exists in version 1.4.0.2 and above */ class Cart extends CartCore { } } }}?> J'ai noté qu'il y a moins d'accolade ouvrante "{" => 3 que de fermante "}" => 5 Mais à part ça... Edited August 4, 2014 by CoolBreeze (see edit history) Link to comment Share on other sites More sharing options...
coeos.pro Posted August 4, 2014 Share Posted August 4, 2014 1- tu as un module shopgate qui pose problème tu l'as peut être réinitialisé si tu ne l'a pas installé ou désinstallé.. 2- supprime le fichier override/classes/Cart.php (n'ai pas peur), vérifie si tout fonctionne normalement, sinon supprime aussi le fichier taboutique.com/cache/class_index.php 1 Link to comment Share on other sites More sharing options...
CoolBreeze Posted August 4, 2014 Author Share Posted August 4, 2014 (edited) Alors j'ai fais ma petite recherche et le seul module shopgate que j'ai trouvé est "Shopgate M-Commerce" mais il n'est ni installé ni actif du coup... Par contre en allant dans Paramètres avancés > Informations, je vois que le fichier "config/defines.inc.php" a été modifié alors que, encore une fois, je n'ai touché à rien du tout... Bref, je vais déjà supprimer ce que tu m'indiques et je verrais bien Edited August 4, 2014 by CoolBreeze (see edit history) Link to comment Share on other sites More sharing options...
CoolBreeze Posted August 5, 2014 Author Share Posted August 5, 2014 C'est l'heure d'une petite mise au point : J'ai supprimé le fichier override/classes/Cart.php Mon site est à nouveau accessible Dans Paramètres avancés > Informations, je vois toujours le message : le fichier "config/defines.inc.php" a été modifié Est-ce que cette modification a une certaine importance/signification ? Link to comment Share on other sites More sharing options...
coeos.pro Posted August 5, 2014 Share Posted August 5, 2014 j'en ai aucune idée, ça dépend de la modification, met voir le contenu ici Link to comment Share on other sites More sharing options...
CoolBreeze Posted August 5, 2014 Author Share Posted August 5, 2014 <?php /* * 2007-2014 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: * http://opensource.org/licenses/osl-3.0.php * 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-2014 PrestaShop SA * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ /* Debug only */ if (!defined('_PS_MODE_DEV_')) define('_PS_MODE_DEV_', true); /* Compatibility warning */ define('_PS_DISPLAY_COMPATIBILITY_WARNING_', false); if (_PS_MODE_DEV_) { @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('PHP_VERSION_ID')) { $version = explode('.', PHP_VERSION); define('PHP_VERSION_ID', ($version[0] * 10000 + $version[1] * 100 + $version[2])); } if (!defined('_PS_VERSION_') && (getenv('_PS_VERSION_') || getenv('REDIRECT__PS_VERSION_'))) define('_PS_VERSION_', getenv('_PS_VERSION_') ? getenv('_PS_VERSION_') : getenv('REDIRECT__PS_VERSION_')); 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_', _PS_ROOT_DIR_); } elseif (!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/'); define('_PS_CACHE_DIR_', _PS_ROOT_DIR_.'/cache/'); define('_PS_CONFIG_DIR_', _PS_CORE_DIR_.'/config/'); define('_PS_CLASS_DIR_', _PS_CORE_DIR_.'/classes/'); 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/'); 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/'); define('_PS_GEOIP_DIR_', _PS_TOOL_DIR_.'geoip/'); 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/'); 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_SCENE_IMG_DIR_', _PS_IMG_DIR_.'scenes/'); define('_PS_SCENE_THUMB_IMG_DIR_', _PS_IMG_DIR_.'scenes/thumbs/'); 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_', get_magic_quotes_gpc()); 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_PRICE_DISPLAY_PRECISION_', 2); define('PS_TAX_EXC', 1); define('PS_TAX_INC', 0); define('PS_ORDER_PROCESS_STANDARD', 0); define('PS_ORDER_PROCESS_OPC', 1); define('PS_ROUND_UP', 0); define('PS_ROUND_DOWN', 1); define('PS_ROUND_HALF', 2); /* Registration behavior */ define('PS_REGISTRATION_PROCESS_STANDARD', 0); define('PS_REGISTRATION_PROCESS_AIO', 1); /* 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); /** * @deprecated 1.5.0.1 * @see Configuration::get('PS_CUSTOMER_GROUP') */ define('_PS_DEFAULT_CUSTOMER_GROUP_', 3); 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); define('_PS_JQUERY_VERSION_', '1.11.0'); Link to comment Share on other sites More sharing options...
coeos.pro Posted August 5, 2014 Share Posted August 5, 2014 define('_PS_MODE_DEV_', true); normalement c'est false, à mon avis c'est ça Link to comment Share on other sites More sharing options...
CoolBreeze Posted August 5, 2014 Author Share Posted August 5, 2014 Et c'est grave ? (Désolé si mes questions paraissent neuneu...) Link to comment Share on other sites More sharing options...
coeos.pro Posted August 5, 2014 Share Posted August 5, 2014 non ça permet d'afficher les erreurs : http://www.prestashop.com/forums/topic/232472-que-faire-en-cas-de-page-blanche-ou-partie-blanche-dans-le-shop/ Link to comment Share on other sites More sharing options...
CoolBreeze Posted August 5, 2014 Author Share Posted August 5, 2014 Bon je vais laisser tel quel pour l'instant et si ça pose problème un jour, et bien je modifierai Merci pour ton aide en tout cas Link to comment Share on other sites More sharing options...
aghilas Posted August 5, 2014 Share Posted August 5, 2014 1- à mon avis si le site est en production, vaut mieux ne pas afficher les erreurs d'ailleurs c'est ça l'objectif, afficher les erreurs, doit être temporaire, le temps de régler le pb 2- je me suis inscris sur ton site pour un test (tu peux supprimer mon compte si tu veux, aucune info n'est vrai ) à un moment donné, j'ai eu l'erreur : Warning: curl_setopt(): CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /var/www/virtual/sn-solutions.ch/htdocs/modules/sendinblue/sendinblue.php on line 3346 mais ça n'avait pas d'impact sur la suite du processus Link to comment Share on other sites More sharing options...
lolyspoon Posted October 19, 2014 Share Posted October 19, 2014 (edited) bonjour ce topic m'interesse car j'ai installer un module prestshop de vente privée, je n'arrivais pas a en creer une , javais un message d'erreur, mon hebergeur a fait s'afficher les erreurs et surement modifier un fichier car apres cela, fonctionnais enfin. Sauf que depuis ce matin, j'ai des erreur partout sur le cart les client ne peuvent pas ajouter, modifier le panier ou commander. Rien qu'a la connexion a mon back office javais des message d'erreur bizzare. le probleme peux t'il venir de l'affichage des erreurS? voici les message que j'ai maintenant: Si vous pouvez me donner un coup de main, cela vraiment genial. J 'ai passer la journee a desinstaller mes modules un apres l'autre pour voir si cela changeais quelque chose et RIEN. Merci d'avance des lumieres de certains Edited October 19, 2014 by lolyspoon (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