Unknown column 'c.id_shop_group' in 'field list'SELECT c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
FROM `ps_1configuration` c
LEFT JOIN `ps_1configuration_lang` cl ON (c.`id_configuration` = cl.`id_configuration`)
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
Argument [0]
SELECT c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
FROM `ps_1configuration` c
LEFT JOIN `ps_1configuration_lang` cl ON (c.`id_configuration` = cl.`id_configuration`)
638. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
639. }
640. return $this->execute($sql, $use_cache);
641. }
642.
643. $this->result = $this->query($sql);
644.
645. if (!$this->result) {
646. $result = false;
647. } else {
648. if (!$array) {
Argument [0]
SELECT c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
FROM `ps_1configuration` c
LEFT JOIN `ps_1configuration_lang` cl ON (c.`id_configuration` = cl.`id_configuration`)
143.
144. $sql = 'SELECT c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
145. FROM `'._DB_PREFIX_.bqSQL(self::$definition['table']).'` c
146. LEFT JOIN `'._DB_PREFIX_.bqSQL(self::$definition['table']).'_lang` cl ON (c.`'.bqSQL(self::$definition['primary']).'` = cl.`'.bqSQL(self::$definition['primary']).'`)';
147. $db = Db::getInstance();
148. $rows = (array) $db->executeS($sql);
149. foreach ($rows as $row) {
150. $lang = ($row['id_lang']) ? $row['id_lang'] : 0;
151. self::$types[$row['name']] = ($lang) ? 'lang' : 'normal';
152. if (!isset(self::$_cache[self::$definition['table']][$lang])) {
153. self::$_cache[self::$definition['table']][$lang] = array(
Argument [0]
SELECT c.`name`, cl.`id_lang`, IF(cl.`id_lang` IS NULL, c.`value`, cl.`value`) AS value, c.id_shop_group, c.id_shop
FROM `ps_1configuration` c
LEFT JOIN `ps_1configuration_lang` cl ON (c.`id_configuration` = cl.`id_configuration`)
180. return false;
181. }
182.
183. // If conf if not initialized, try manual query
184. if (!isset(self::$_cache[self::$definition['table']])) {
185. Configuration::loadConfiguration();
186. if (!self::$_cache[self::$definition['table']]) {
187. return Db::getInstance()->getValue('SELECT `value` FROM `'._DB_PREFIX_.bqSQL(self::$definition['table']).'` WHERE `name` = "'.pSQL($key).'"');
188. }
189. }
190. $id_lang = (int)$id_lang;
395. }
396. } else {
397. $shop = new Shop($id_shop);
398. if (!Validate::isLoadedObject($shop) || !$shop->active) {
399. // No shop found ... too bad, let's redirect to default shop
400. $default_shop = new Shop(Configuration::get('PS_SHOP_DEFAULT'));
401.
402. // Hmm there is something really bad in your Prestashop !
403. if (!Validate::isLoadedObject($default_shop)) {
404. throw new PrestaShopException('Shop not found');
405. }
Argument [0] PS_SHOP_DEFAULT
109.
110. $context = Context::getContext();
111.
112. /* Initialize the current Shop */
113. try {
114. $context->shop = Shop::initialize();
115. $context->theme = new Theme((int)$context->shop->id_theme);
116. if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_')) {
117. throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.'));
118. }
119. } catch (PrestaShopException $e) {
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();
Argument [0] /data/web/virtuals/314880/virtual/www/config/config.inc.php