SQLSTATE[42S02]: Base table or view not found: 1146 Table 'calzadosbienve2023.ps_shop_group' doesn't exist
at line 151 in file classes/db/DbPDO.php
146. protected function _query($sql)
147. {
148. try {
149. return $this->link->query($sql);
150. } catch (\PDOException $exception) {
151. throw new PrestaShopException($exception->getMessage(), (int) $exception->getCode(), $exception);
152. }
153. }
154.
155. /**
156. * Returns the next row from the result set.
372. {
373. if ($sql instanceof DbQuery) {
374. $sql = $sql->build();
375. }
376.
377. $this->result = $this->_query($sql);
378.
379. if (!$this->result && $this->getNumberError() == 2006) {
380. $this->connect();
381. $this->result = $this->_query($sql);
382. }
605. // This method must be used only with queries which display results
606. if (!preg_match('#^\s*\(?\s*(select|show|explain|describe|desc|checksum)\s#i', $sql)) {
607. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
608. }
609.
610. $this->result = $this->query($sql);
611.
612. if (!$this->result) {
613. $result = false;
614. } else {
615. if (!$array) {
710. WHERE s.deleted = 0
711. AND gs.deleted = 0
712. ' . $where . '
713. ORDER BY gs.name, s.name';
714.
715. if ($results = Db::getInstance()->executeS($sql)) {
716. foreach ($results as $row) {
717. if (!isset(self::$shops[$row['id_shop_group']])) {
718. self::$shops[$row['id_shop_group']] = [
719. 'id' => $row['id_shop_group'],
720. 'name' => $row['group_name'],
769. *
770. * @return array
771. */
772. public static function getShops($active = true, $id_shop_group = null, $get_as_list_id = false)
773. {
774. Shop::cacheShops();
775.
776. $results = [];
777. foreach (self::$shops as $group_id => $group_data) {
778. foreach ($group_data['shops'] as $id => $shop_data) {
779. if ((!$active || $shop_data['active']) && (!$id_shop_group || $id_shop_group == $group_id)) {
294. *
295. * @return array Values for all shops
296. */
297. public static function getMultiShopValues($key, $idLang = null)
298. {
299. $shops = Shop::getShops(false, null, true);
300. $resultsArray = [];
301. foreach ($shops as $idShop) {
302. $resultsArray[$idShop] = Configuration::get($key, $idLang, null, $idShop);
303. }
304.
393. }
394. }
395.
396. $http_host = Tools::getHttpHost();
397. $all_media = array_merge(
398. Configuration::getMultiShopValues('PS_MEDIA_SERVER_1'),
399. Configuration::getMultiShopValues('PS_MEDIA_SERVER_2'),
400. Configuration::getMultiShopValues('PS_MEDIA_SERVER_3')
401. );
402.
403. $isAllShop = 'all' === $id_shop;
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] /var/www/vhosts/calzadosbienve.com/httpdocs/config/config.inc.php