Table 'tabtel_v22.ps_shop_group' doesn't exist
SELECT gs.*, s.*, gs.name AS group_name, s.name AS shop_name, s.active, su.domain, su.domain_ssl, su.physical_uri, su.virtual_uri FROM ps_shop_group gs LEFT JOIN ps_shop s ON s.id_shop_group = gs.id_shop_group LEFT JOIN ps_shop_url su ON s.id_shop = su.id_shop AND su.main = 1 WHERE s.deleted = 0 AND gs.deleted = 0 ORDER BY gs.name, s.name
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 gs.*, s.*, gs.name AS group_name, s.name AS shop_name, s.active, su.domain, su.domain_ssl, su.physical_uri, su.virtual_uri FROM ps_shop_group gs LEFT JOIN ps_shop s ON s.id_shop_group = gs.id_shop_group LEFT JOIN ps_shop_url su ON s.id_shop = su.id_shop AND su.main = 1 WHERE s.deleted = 0 AND gs.deleted = 0 ORDER BY gs.name, s.name
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 gs.*, s.*, gs.name AS group_name, s.name AS shop_name, s.active, su.domain, su.domain_ssl, su.physical_uri, su.virtual_uri FROM ps_shop_group gs LEFT JOIN ps_shop s ON s.id_shop_group = gs.id_shop_group LEFT JOIN ps_shop_url su ON s.id_shop = su.id_shop AND su.main = 1 WHERE s.deleted = 0 AND gs.deleted = 0 ORDER BY gs.name, s.name
658. WHERE s.deleted = 0
659. AND gs.deleted = 0
660. '.$where.'
661. ORDER BY gs.name, s.name';
662.
663. if ($results = Db::getInstance()->executeS($sql)) {
664. foreach ($results as $row) {
665. if (!isset(self::$shops[$row['id_shop_group']])) {
666. self::$shops[$row['id_shop_group']] = array(
667. 'id' => $row['id_shop_group'],
668. 'name' => $row['group_name'],
Argument [0] SELECT gs.*, s.*, gs.name AS group_name, s.name AS shop_name, s.active, su.domain, su.domain_ssl, su.physical_uri, su.virtual_uri FROM ps_shop_group gs LEFT JOIN ps_shop s ON s.id_shop_group = gs.id_shop_group LEFT JOIN ps_shop_url su ON s.id_shop = su.id_shop AND su.main = 1 WHERE s.deleted = 0 AND gs.deleted = 0 ORDER BY gs.name, s.name
712. * @param bool $get_as_list_id
713. * @return array
714. */
715. public static function getShops($active = true, $id_shop_group = null, $get_as_list_id = false)
716. {
717. Shop::cacheShops();
718.
719. $results = array();
720. foreach (self::$shops as $group_id => $group_data) {
721. foreach ($group_data['shops'] as $id => $shop_data) {
722. if ((!$active || $shop_data['active']) && (!$id_shop_group || $id_shop_group == $group_id)) {
239. * @param int $id_lang
240. * @return array Values for all shops
241. */
242. public static function getMultiShopValues($key, $id_lang = null)
243. {
244. $shops = Shop::getShops(false, null, true);
245. $resultsArray = array();
246. foreach ($shops as $id_shop) {
247. $resultsArray[$id_shop] = Configuration::get($key, $id_lang, null, $id_shop);
248. }
249. return $resultsArray;
Argument [0] Argument [1] Argument [2] 1
364. }
365. }
366. }
367.
368. $http_host = Tools::getHttpHost();
369. $all_media = array_merge(Configuration::getMultiShopValues('PS_MEDIA_SERVER_1'), Configuration::getMultiShopValues('PS_MEDIA_SERVER_2'), Configuration::getMultiShopValues('PS_MEDIA_SERVER_3'));
370.
371. if ((!$id_shop && defined('_PS_ADMIN_DIR_')) || Tools::isPHPCLI() || in_array($http_host, $all_media)) {
372. // If in admin, we can access to the shop without right URL
373. if ((!$id_shop && Tools::isPHPCLI()) || defined('_PS_ADMIN_DIR_')) {
374. $id_shop = (int)Configuration::get('PS_SHOP_DEFAULT');
Argument [0] PS_MEDIA_SERVER_1
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) {
76. sleep(5);
77. die('<p>Captcha Invalide</p><a href="'.$_SERVER['HTTP_REFERER'].'"><button>Retour au formulaire</button></a>');
78. }
79. }
80.
81. require(dirname(__FILE__).'/config/config.inc.php');
82. Dispatcher::getInstance()->dispatch();
Argument [0] /home/tabtel/public_html/config/config.inc.php