[ThemeRepository] Theme configuration file not found for theme at `/home/aniaduda/domains/johnstanley.pl/public_html/themes/1/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.
Argument [0] /home/aniaduda/domains/johnstanley.pl/public_html/themes/1/config/theme.yml
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. *
Argument [0] 1
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. /**
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 !
437. if (!Validate::isLoadedObject($default_shop)) {
438. throw new PrestaShopException('Shop not found');
439. }
Argument [0] 1
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/aniaduda/domains/johnstanley.pl/public_html/config/config.inc.php
( ! ) Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND module_shop.enable_device & 1) INNER JOIN `ps_hook_module` `hm` ON hm.`...' at line 4 in /home/aniaduda/domains/johnstanley.pl/public_html/classes/db/DbPDO.php:149 Stack trace: #0 /home/aniaduda/domains/johnstanley.pl/public_html/classes/db/DbPDO.php(149): PDO->query('SELECT h.`name`...') #1 /home/aniaduda/domains/johnstanley.pl/public_html/classes/db/Db.php(377): DbPDOCore->_query('SELECT h.`name`...') #2 /home/aniaduda/domains/johnstanley.pl/public_html/classes/db/Db.php(614): DbCore->query('SELECT h.`name`...') #3 /home/aniaduda/domains/johnstanley.pl/public_html/classes/Hook.php(1233): DbCore->executeS('SELECT h.`name`...') #4 /home/aniaduda/domains/johnstanley.pl/public_html/classes/Hook.php(735): HookCore::getAllHookRegistrations(Object(Context), 'actionLoggerLog...') #5 /home/aniaduda/domains/johnstanley.pl/public_html/classes/Hook.php(842): HookCore::getHookModuleExecList('actionLoggerLog...') #6 /home/aniaduda/domains/johnstanley.pl/public_html/classes/log/AbstractLogger.php(70): HookCore::exec('actionLoggerLog...', Array) #7 /home/aniaduda/domains/johnstanley.pl/public_html/classes/log/AbstractLogger.php(112): AbstractLoggerCore->log('[ThemeRepositor...', 3) #8 /home/aniaduda/domains/johnstanley.pl/public_html/classes/exception/PrestaShopException.php(206): AbstractLoggerCore->logError('[ThemeRepositor...') #9 /home/aniaduda/domains/johnstanley.pl/public_html/classes/exception/PrestaShopException.php(98): PrestaShopExceptionCore->logError() #10 /home/aniaduda/domains/johnstanley.pl/public_html/config/config.inc.php(119): PrestaShopExceptionCore->displayMessage() #11 /home/aniaduda/domains/johnstanley.pl/public_html/index.php(27): require('/home/aniaduda/...') #12 {main} Next PrestaShopException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND module_shop.enable_device & 1) INNER JOIN `ps_hook_module` `hm` ON hm.`...' at line 4 in /home/aniaduda/domains/johnstanley.pl/public_html/classes/db/DbPDO.php on line 151 | ||||
---|---|---|---|---|
( ! ) PrestaShopException: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ') AND module_shop.enable_device & 1) INNER JOIN `ps_hook_module` `hm` ON hm.`...' at line 4 in /home/aniaduda/domains/johnstanley.pl/public_html/classes/db/DbPDO.php on line 151 | ||||
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0001 | 360656 | {main}( ) | .../index.php:0 |
2 | 0.0001 | 363056 | require( '/home/aniaduda/domains/johnstanley.pl/public_html/config/config.inc.php ) | .../index.php:27 |
3 | 0.0130 | 1262104 | PrestaShopExceptionCore->displayMessage( ) | .../config.inc.php:119 |
4 | 0.0139 | 1262696 | PrestaShopExceptionCore->logError( ) | .../PrestaShopException.php:98 |
5 | 0.0142 | 1269144 | AbstractLoggerCore->logError( $message = '[ThemeRepository] Theme configuration file not found for theme at `/home/aniaduda/domains/johnstanley.pl/public_html/themes/1/config/theme.yml`. at line 161 in file src/Core/Addon/Theme/ThemeRepository.php' ) | .../PrestaShopException.php:206 |
6 | 0.0142 | 1269144 | AbstractLoggerCore->log( $message = '[ThemeRepository] Theme configuration file not found for theme at `/home/aniaduda/domains/johnstanley.pl/public_html/themes/1/config/theme.yml`. at line 161 in file src/Core/Addon/Theme/ThemeRepository.php', $level = 3 ) | .../AbstractLogger.php:112 |
7 | 0.0145 | 1359336 | HookCore::exec( $hook_name = 'actionLoggerLogMessage', $hook_args = ['message' => '[ThemeRepository] Theme configuration file not found for theme at `/home/aniaduda/domains/johnstanley.pl/public_html/themes/1/config/theme.yml`. at line 161 in file src/Core/Addon/Theme/ThemeRepository.php', 'level' => 3, 'isLogged' => TRUE], $id_module = ???, $array_return = ???, $check_exceptions = ???, $use_push = ???, $id_shop = ???, $chain = ??? ) | .../AbstractLogger.php:70 |
8 | 0.0156 | 1460024 | HookCore::getHookModuleExecList( $hookName = 'actionLoggerLogMessage' ) | .../Hook.php:842 |
9 | 0.0156 | 1460024 | HookCore::getAllHookRegistrations( $context = class Context { public $cart = NULL; public $customer = NULL; public $cookie = NULL; public $session = NULL; public $link = NULL; public $country = NULL; public $employee = NULL; public $controller = NULL; public $override_controller_name_for_translations = NULL; public $language = NULL; public $currency = NULL; public $currentLocale = NULL; public $tab = NULL; public $shop = NULL; public $tmpOldShop = NULL; public $smarty = NULL; public $mobile_detect = class Mobile_Detect { protected $cache = [...]; protected $userAgent = 'claudebot'; protected $httpHeaders = [...]; protected $cloudfrontHeaders = [...]; protected $matchingRegex = NULL; protected $matchesArray = NULL; protected $detectionType = 'mobile' }; public $mode = NULL; public $container = NULL; public $virtualTotalTaxExcluded = 0; public $virtualTotalTaxIncluded = 0; protected $translator = NULL; protected $priceComputingPrecision = NULL; protected $mobile_device = NULL; protected $is_mobile = FALSE; protected $is_tablet = FALSE }, $hookName = 'actionLoggerLogMessage' ) | .../Hook.php:735 |
10 | 0.0170 | 1515264 | DbCore->executeS( $sql = class DbQuery { protected $query = ['type' => 'SELECT', 'select' => [...], 'from' => [...], 'join' => [...], 'where' => [...], 'group' => [...], 'having' => [...], 'order' => [...], 'limit' => [...]] }, $array = ???, $use_cache = ??? ) | .../Hook.php:1233 |
11 | 0.0171 | 1515208 | DbCore->query( $sql = 'SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module\nFROM `ps_module` m\n INNER JOIN ps_module_shop module_shop\n ON (module_shop.id_module = m.id_module AND module_shop.id_shop IN () AND module_shop.enable_device & 1)\nINNER JOIN `ps_hook_module` `hm` ON hm.`id_module` = m.`id_module`\nINNER JOIN `ps_hook` `h` ON hm.`id_hook` = h.`id_hook`\nLEFT JOIN `ps_module_group` `mg` ON mg.`id_module` = m.`id_module`\nWHERE (h.`name` != "paymentOptions") AND (mg.`id_group` IN (1))\nGROUP BY hm.id_h'... ) | .../Db.php:614 |
12 | 0.0171 | 1515208 | DbPDOCore->_query( $sql = 'SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module\nFROM `ps_module` m\n INNER JOIN ps_module_shop module_shop\n ON (module_shop.id_module = m.id_module AND module_shop.id_shop IN () AND module_shop.enable_device & 1)\nINNER JOIN `ps_hook_module` `hm` ON hm.`id_module` = m.`id_module`\nINNER JOIN `ps_hook` `h` ON hm.`id_hook` = h.`id_hook`\nLEFT JOIN `ps_module_group` `mg` ON mg.`id_module` = m.`id_module`\nWHERE (h.`name` != "paymentOptions") AND (mg.`id_group` IN (1))\nGROUP BY hm.id_h'... ) | .../Db.php:377 |