[ThemeRepository] Theme configuration file not found for theme at `/home/armolanf/armolan.es/themes/classic_child/config/theme.yml`.
at line 161 in file src/Core/Addon/Theme/ThemeRepository.php
156. }
157.
158. private function getConfigFromFile($file)
159. {
160. if (!$this->filesystem->exists($file)) {
161. throw new PrestaShopException(sprintf('[ThemeRepository] Theme configuration file not found for theme at `%s`.', $file));
162. }
163.
164. $content = file_get_contents($file);
165.
166. if (preg_match('/.\.(yml|yaml)$/', $file)) {
80. }
81.
82. if ($this->filesystem->exists($jsonConf)) {
83. $data = $this->getConfigFromFile($jsonConf);
84. } else {
85. $data = $this->getConfigFromFile($dir . '/config/theme.yml');
86.
87. // Write parsed yml data into json conf (faster parsing next time)
88. $this->filesystem->dumpFile($jsonConf, json_encode($data));
89. }
90.
506. $themeManagerBuilder = new ThemeManagerBuilder(Context::getContext(), Db::getInstance());
507. $themeRepository = $themeManagerBuilder->buildRepository($this instanceof Shop ? $this : null);
508. if (empty($this->theme_name)) {
509. $this->theme_name = 'classic';
510. }
511. $this->theme = $themeRepository->getInstanceByName($this->theme_name);
512. }
513.
514. /**
515. * Get shop URI.
516. *
145. parent::__construct($id, $id_lang, $id_shop);
146.
147. if ($this->id) {
148. $this->setUrl();
149. if ($this->theme == null) {
150. $this->setTheme();
151. }
152. }
153. }
154.
155. /**
426. if (!isset($_SERVER['REMOTE_ADDR']) || empty($_SERVER['REMOTE_ADDR'])) {
427. $_SERVER['REMOTE_ADDR'] = '127.0.0.1';
428. }
429. }
430. } else {
431. $shop = new Shop($id_shop);
432. if (!Validate::isLoadedObject($shop) || !$shop->active) {
433. // No shop found ... too bad, let's redirect to default shop
434. $default_shop = new Shop((int) Configuration::get('PS_SHOP_DEFAULT'));
435.
436. // Hmm there is something really bad in your Prestashop !
112.
113. $context = Context::getContext();
114.
115. /* Initialize the current Shop */
116. try {
117. $context->shop = Shop::initialize();
118. } catch (PrestaShopException $e) {
119. $e->displayMessage();
120. }
121. define('_THEME_NAME_', $context->shop->theme->getName());
122. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
22. * @author PrestaShop SA and Contributors <contact@prestashop.com>
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26.
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();
Argument [0] /home/armolanf/armolan.es/config/config.inc.php