david9145 Posted July 11, 2017 Share Posted July 11, 2017 Bonjour, J'ai un petit soucis avec mon prestashop 1.7 Je suis vraiment embêter !!Toutes les pages de mon site affiche ceci ... : J'étais simplement en train de rajouter un petit script sur le footer, j'ai remis le footer d'origine.AIDEZ MOI SVP [PrestaShopException]Cannot select any valid SQL engine.at line 295 in file classes/db/Db.php 290. } elseif (extension_loaded('mysqli')) {291. $class = 'DbMySQLi';292. }293.294. if (empty($class)) {295. throw new PrestaShopException('Cannot select any valid SQL engine.');296. }297.298. return $class;299. }300. DbCore::getClass - [line 229 - classes/db/Db.php] DbCore::getInstance - [line 48 - config/alias.php] pSQL - [line 339 - classes/shop/Shop.php] - [1 Arguments] ShopCore::initialize - [line 120 - config/config.inc.php] require - [line 27 - index.php] - [1 Arguments] Link to comment Share on other sites More sharing options...
david9145 Posted July 12, 2017 Author Share Posted July 12, 2017 Re bonjour, Après une demande auprès de mon hebergeurVoici le resultat : [PrestaShopException][ThemeRepository] Theme configuration file not found for theme at `/home/u929127273/public_html/themes/classic/config/theme.yml`.at line 129 in file src/Core/Addon/Theme/ThemeRepository.php 124. }125.126. private function getConfigFromFile($file)127. {128. if (!$this->filesystem->exists($file)) {129. throw new \PrestaShopException(sprintf('[ThemeRepository] Theme configuration file not found for theme at `%s`.', $file));130. }131.132. $content = file_get_contents($file);133.134. if (preg_match('/.\.(yml|yaml)$/', $file)) { PrestaShop\PrestaShop\Core\Addon\Theme\ThemeRepository->getConfigFromFile - [line 65 - src/Core/Addon/Theme/ThemeRepository.php] - [1 Arguments]60. }61.62. if ($this->filesystem->exists($jsonConf)) {63. $data = $this->getConfigFromFile($jsonConf);64. } else {65. $data = $this->getConfigFromFile($dir.'/config/theme.yml');66. }67.68. $data['directory'] = $dir;69.70. return new Theme($data); PrestaShop\PrestaShop\Core\Addon\Theme\ThemeRepository->getInstanceByName - [line 491 - classes/shop/Shop.php] - [1 Arguments]486. $db = Db::getInstance();487. $themeRepository = (new PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManagerBuilder($context, $db))->buildRepository($this);488. if (empty($this->theme_name)) {489. $this->theme_name = 'classic';490. }491. $this->theme = $themeRepository->getInstanceByName($this->theme_name);492. }493.494. /**495. * Get theme directory name496. * ShopCore->setTheme - [line 135 - classes/shop/Shop.php]130. parent::__construct($id, $id_lang, $id_shop);131.132. if ($this->id) {133. $this->setUrl();134. if ($this->theme == null) {135. $this->setTheme();136. }137. }138. }139.140. /** ShopCore->__construct - [line 414 - classes/shop/Shop.php] - [1 Arguments]409. }410. } else {411. $shop = new Shop($id_shop);412. if (!Validate::isLoadedObject($shop) || !$shop->active) {413. // No shop found ... too bad, let's redirect to default shop414. $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));415.416. // Hmm there is something really bad in your Prestashop !417. if (!Validate::isLoadedObject($default_shop)) {418. throw new PrestaShopException('Shop not found');419. } ShopCore::initialize - [line 120 - config/config.inc.php]115.116. $context = Context::getContext();117.118. /* Initialize the current Shop */119. try {120. $context->shop = Shop::initialize();121. } catch (PrestaShopException $e) {122. $e->displayMessage();123. }124. define('_THEME_NAME_', $context->shop->theme->getName());125. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: ''); require - [line 27 - index.php] - [1 Arguments] Argument [0]/home/u929127273/public_html/config/config.inc.php Link to comment Share on other sites More sharing options...
BeComWeb Posted July 12, 2017 Share Posted July 12, 2017 Bonjour, Et si vous vous connectez via FTP, est ce que le fichier en question est présent dans le répertoire ? Link to comment Share on other sites More sharing options...
Ryan Hidri Posted July 12, 2017 Share Posted July 12, 2017 selon la reponse de ton hébergeur, le pb etait avec le serveur de base de données ou c etait quoi la source de l'erreur ? 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