Kaluaris Posted March 20, 2018 Share Posted March 20, 2018 (edited) Hey guys, I have the following problem ... I bought a template. After the installation just did not work anymore, then just deleted it in the ftp, as I know! Now, however, I always get the following things after trying to delete the old template, of course, from the system. Because now I can not install a new template nor can I delete anything. Any changes in the "DESIGN" section are simply not saved. ! Pictures trail in the appendix! Short and sweet Here is my QUESTION: Where can I find the file or the place where I can manually change the path which template he should use. Have looked through some files but can only find links like this: use PrestaShop\PrestaShop\Core\Addon\Theme\Theme; use PrestaShop\PrestaShop\Core\Addon\Theme\ThemeChecker; Here again the complete error message "uncovered": [PrestaShopException] [ThemeRepository] Theme configuration file not found for theme at `/var/www/html/themes/foliage/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 name 496. * 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 shop 414. $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] 22. * @copyright 2007-2017 PrestaShop SA 23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 24. * International Registered Trademark & Property of PrestaShop SA 25. */ 26. 27. require(dirname(__FILE__).'/config/config.inc.php'); 28. Dispatcher::getInstance()->dispatch(); WHERE CAN I CHANGE THE PATH TO THE TEMPLATE TO QUICK MANUEL THE PROBLEM QUICKLY? Thanks in advance for any help Edited March 20, 2018 by Kaluaris (see edit history) Link to comment Share on other sites More sharing options...
musicmaster Posted March 20, 2018 Share Posted March 20, 2018 The ps_Shop table has a field that determines the theme. But I find your methods very ugly. You forget that many themes come with a lot of modules. Those you obviously don't uninstall. Neither will you install those of your new template. In your case my best option would be bringing back the deleted template and uninstalling it the official way. The second best option would be to copy a random theme (maybe the default theme with a renamed directory) to the place of the deleted theme and to proceed from there. Link to comment Share on other sites More sharing options...
Kaluaris Posted March 21, 2018 Author Share Posted March 21, 2018 (edited) its right but this doenst work. if i upload the theme with ftp/ssh, i also cannot delete the theme, it will always give me this error- Everything I change in the "Design" section will not be saved. Edited March 21, 2018 by Kaluaris (see edit history) Link to comment Share on other sites More sharing options...
Kaluaris Posted March 22, 2018 Author Share Posted March 22, 2018 Request for urgent help, I sell over 48,000 items and advertisements are posted through agencies. If I do not get the page up and running, I lose too much. Link to comment Share on other sites More sharing options...
musicmaster Posted March 22, 2018 Share Posted March 22, 2018 I really don't understand guys like you. Reading your posts it is obvious that you spent hardly any time reading my post, searching the forum and writing a reaction. You just ignored some of my questions. So why do you expect us to jump up to be at your service? I am perfectly happy to help you if you take effort yourself. But if you want a servant you should hire someone. Link to comment Share on other sites More sharing options...
LucanN Posted December 21, 2020 Share Posted December 21, 2020 Hi I also have the same problem, I installed Prestashop 1.7.7.0, and I installed angartheme via filezilla successsfully but when trying change to this theme in back office i get the bellow error. please help. 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