[ThemeRepository] Theme configuration file not found for theme at `/web/htdocs/www.ghisleri.net/home/shop/themes/ap_olay/config/theme.yml`.
at line 144 in file src/Core/Addon/Theme/ThemeRepository.php
139. }
140.
141. private function getConfigFromFile($file)
142. {
143. if (!$this->filesystem->exists($file)) {
144. throw new PrestaShopException(sprintf(
145. '[ThemeRepository] Theme configuration file not found for theme at `%s`.',
146. $file
147. ));
148. }
149.
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. // Write parsed yml data into json conf (faster parsing next time)
68. $this->filesystem->dumpFile($jsonConf, json_encode($data), 0777);
69. }
70.
487. $db = Db::getInstance();
488. $themeRepository = (new PrestaShop\PrestaShop\Core\Addon\Theme\ThemeManagerBuilder($context, $db))->buildRepository($this);
489. if (empty($this->theme_name)) {
490. $this->theme_name = 'classic';
491. }
492. $this->theme = $themeRepository->getInstanceByName($this->theme_name);
493. }
494.
495. /**
496. * Get theme directory name.
497. *
128. parent::__construct($id, $id_lang, $id_shop);
129.
130. if ($this->id) {
131. $this->setUrl();
132. if ($this->theme == null) {
133. $this->setTheme();
134. }
135. }
136. }
137.
138. /**
410. }
411. } else {
412. $shop = new Shop($id_shop);
413. if (!Validate::isLoadedObject($shop) || !$shop->active) {
414. // No shop found ... too bad, let's redirect to default shop
415. $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
416.
417. // Hmm there is something really bad in your Prestashop !
418. if (!Validate::isLoadedObject($default_shop)) {
419. throw new PrestaShopException('Shop not found');
420. }
114.
115. $context = Context::getContext();
116.
117. /* Initialize the current Shop */
118. try {
119. $context->shop = Shop::initialize();
120. } catch (PrestaShopException $e) {
121. $e->displayMessage();
122. }
123. define('_THEME_NAME_', $context->shop->theme->getName());
124. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
22. * @copyright 2007-2018 PrestaShop SA
23. * @license https://opensource.org/licenses/OSL-3.0 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();
Argument [0] /web/htdocs/www.ghisleri.net/home/shop/config/config.inc.php