Table 'euphoria_gigshop.ps_store_lang' doesn't exist<br /><br /><pre>
SELECT s.id_store AS `id`, s.*, sl.*
FROM ps_store s
INNER JOIN ps_store_shop store_shop
ON (store_shop.id_store = s.id_store AND store_shop.id_shop = 1)
LEFT JOIN ps_store_lang sl ON (
sl.id_store = s.id_store
AND sl.id_lang = 2
)
WHERE s.active = 1</pre>
at line 747 in file classes/db/Db.php
742. if ($webservice_call && $errno) {
743. $dbg = debug_backtrace();
744. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
745. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
746. if ($sql) {
747. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
748. }
749.
750. throw new PrestaShopDatabaseException($this->getMsgError());
751. }
752. }
373. $this->result = $this->_query($sql);
374. }
375. }
376.
377. if (_PS_DEBUG_SQL_) {
378. $this->displayError($sql);
379. }
380.
381. return $this->result;
382. }
383.
Argument [0] SELECT s.id_store AS `id`, s.*, sl.* FROM ps_store s INNER JOIN ps_store_shop store_shop ON (store_shop.id_store = s.id_store AND store_shop.id_shop = 1) LEFT JOIN ps_store_lang sl ON ( sl.id_store = s.id_store AND sl.id_lang = 2 ) WHERE s.active = 1
593. || stripos($sql, 'dumpfile') !== false
594. ) {
595. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
596. }
597.
598. $this->result = $this->query($sql);
599.
600. if (!$this->result) {
601. $result = false;
602. } else {
603. if (!$array) {
Argument [0] SELECT s.id_store AS `id`, s.*, sl.* FROM ps_store s INNER JOIN ps_store_shop store_shop ON (store_shop.id_store = s.id_store AND store_shop.id_shop = 1) LEFT JOIN ps_store_lang sl ON ( sl.id_store = s.id_store AND sl.id_lang = 2 ) WHERE s.active = 1
146. SELECT s.id_store AS `id`, s.*, sl.*
147. FROM '._DB_PREFIX_.'store s
148. '.Shop::addSqlAssociation('store', 's').'
149. LEFT JOIN ' . _DB_PREFIX_ . 'store_lang sl ON (
150. sl.id_store = s.id_store
151. AND sl.id_lang = ' . (int)$idLang . '
152. )
153. WHERE s.active = 1'
154. );
155.
156. return $stores;
Argument [0] SELECT s.id_store AS `id`, s.*, sl.* FROM ps_store s INNER JOIN ps_store_shop store_shop ON (store_shop.id_store = s.id_store AND store_shop.id_shop = 1) LEFT JOIN ps_store_lang sl ON ( sl.id_store = s.id_store AND sl.id_lang = 2 ) WHERE s.active = 1
176. $this->setTemplate('cms/stores');
177. }
178.
179. public function getTemplateVarStores()
180. {
181. $stores = Store::getStores($this->context->language->id);
182.
183. $imageRetriever = new \PrestaShop\PrestaShop\Adapter\Image\ImageRetriever($this->context->link);
184.
185. foreach ($stores as &$store) {
186. unset($store['active']);
Argument [0] 2
167.
168. $this->context->smarty->assign(array(
169. 'mediumSize' => Image::getSize(ImageType::getFormattedName('medium')),
170. 'searchUrl' => $this->context->link->getPageLink('stores'),
171. 'distance_unit' => $distance_unit,
172. 'stores' => $this->getTemplateVarStores(),
173. ));
174.
175. parent::initContent();
176. $this->setTemplate('cms/stores');
177. }
250. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
251. $this->initHeader();
252. }
253.
254. if ($this->viewAccess()) {
255. $this->initContent();
256. } else {
257. $this->errors[] = $this->trans('Access denied.', array(), 'Admin.Notifications.Error');
258. }
259.
260. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
423. if (isset($params_hook_action_dispatcher)) {
424. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
425. }
426.
427. // Running controller
428. $controller->run();
429.
430. // Execute hook dispatcher after
431. if (isset($params_hook_action_dispatcher)) {
432. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
433. }
23. * @license https://opensource.org/licenses/OSL-3.0 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();