weblobsdesigner Posted October 1, 2010 Share Posted October 1, 2010 Bonjour, alors voici mon soucis, lors de l'installation j'ai rajouté à tous les fichiers .htacces de forcer les server en PHP5 et de configurer le register_global sur off.Seulement je me retrouve avec une erreur :Fatal error: Undefined class name 'configuration' in /homez.110/weblobsd/www/boutique/config/config.inc.php on line 66voici le code complet : 1. <?php 2. 3. /* Debug only */ 4. ini_set('display_errors', 'on'); 5. define('_PS_DEBUG_SQL_', true); 6. 7. /* SSL configuration */ 8. define('_PS_SSL_PORT_',443); 9. 10. /* PS Technical configuration */ 11. define('_PS_ADMIN_PROFILE_', 1); 12. 13. /* Improve PHP configuration to prevent issues */ 14. @ini_set('default_charset', 'utf-8'); 15. 16. /* Correct Apache charset */ 17. header('Content-Type: text/html; charset=utf-8'); 18. 19. /* Autoload */ 20. function __autoload($className) 21. { 22. if (!class_exists($className, false)) 23. require_once(dirname(__FILE__).'/../classes/'.$className.'.php'); 24. } 25. 26. /* No settings file? goto installer...*/ 27. if (!file_exists(dirname(__FILE__).'/settings.inc.php')) 28. { 29. $dir = ((is_dir($_SERVER['REQUEST_URI']) OR substr($_SERVER['REQUEST_URI'], -1) == '/') ? $_SERVER['REQUEST_URI'] : dirname($_SERVER['REQUEST_URI']).'/'); 30. if(!file_exists(dirname(__FILE__).'/../install')) 31. die('Error: \'install\' directory is missing'); 32. Tools::redirect('install', $dir); 33. } 34. include(dirname(__FILE__).'/settings.inc.php'); 35. 36. /* Redefine REQUEST_URI if empty (on some webservers...) */ 37. if (!isset($_SERVER['REQUEST_URI']) OR empty($_SERVER['REQUEST_URI'])) 38. { 39. $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; 40. if (isset($_SERVER['QUERY_STRING']) AND !empty($_SERVER['QUERY_STRING'])) 41. $_SERVER['REQUEST_URI'] .= '?'.$_SERVER['QUERY_STRING']; 42. } 43. 44. /* Include all defines */ 45. include(dirname(__FILE__).'/defines.inc.php'); 46. /* Defines are not in defines.inc.php file for no conflicts in installer */ 47. define('_PS_MAGIC_QUOTES_GPC_', get_magic_quotes_gpc()); 48. define('_PS_MODULE_DIR_', _PS_ROOT_DIR_.'/modules/'); 49. define('_PS_MYSQL_REAL_ESCAPE_STRING_', function_exists('mysql_real_escape_string')); 50. 51. /* aliases */ 52. function p($var) { 53. return (Tools:($var)); 54. } 55. function d($var) { 56. Tools:($var); 57. } 58. 59. global $_MODULES; 60. $_MODULES = array(); 61. 62. /* Globals */ 63. global $defaultCountry; 64. 65. /* Load all configuration keys */ 66. Configuration::loadConfiguration(); 67. 68. /* Load all language definitions */ 69. Language::loadLanguages(); 70. 71. /* Load all zone/tax relations */ 72. Tax::loadTaxZones(); 73. 74. /* Loading default country */ 75. $defaultCountry = new Country(intval(Configuration::get('PS_COUNTRY_DEFAULT'))); 76. 77. 78. /* 79. * It is not safe to rely on the system's timezone settings, but we can\'t easily determine the user timezone and the 80. use of this function cause trouble for some configurations. 81. * This will generate a PHP Strict Standards notice. To fix it up, uncomment the following line. 82. */ 83. if (function_exists('date_default_timezone_set')) 84. { 85. $timezone = Tools::getTimezones(Configuration::get('PS_TIMEZONE')); 86. date_default_timezone_set($timezone); 87. } 88. 89. /* Smarty */ 90. include(dirname(__FILE__).'/smarty.config.inc.php'); 91. ?> voilà si vous pouvez m'aider svp Merci d'avance[edit] j'ai installé la version 1.3.2.3 Link to comment Share on other sites More sharing options...
Recommended Posts