Table 'marebit_prestashop_2.ps_shop_url' doesn't existSELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main
FROM ps_shop_url su
LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop)
WHERE (su.domain = 'mareb.it' OR su.domain_ssl = 'mareb.it')
AND s.active = 1
AND s.deleted = 0
ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
at line 746 in file classes/db/Db.php
741. if ($webservice_call && $errno) {
742. $dbg = debug_backtrace();
743. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
744. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
745. if ($sql) {
746. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
747. }
748.
749. throw new PrestaShopDatabaseException($this->getMsgError());
750. }
751. }
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_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps_shop_url su LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'mareb.it' OR su.domain_ssl = 'mareb.it') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
592. throw new PrestaShopDatabaseException('Db->executeS() must be used only with select, show, explain or describe queries');
593. }
594. return $this->execute($sql, $use_cache);
595. }
596.
597. $this->result = $this->query($sql);
598.
599. if (!$this->result) {
600. $result = false;
601. } else {
602. if (!$array) {
Argument [0] SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps_shop_url su LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'mareb.it' OR su.domain_ssl = 'mareb.it') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
339. WHERE (su.domain = \''.pSQL($host).'\' OR su.domain_ssl = \''.pSQL($host).'\')
340. AND s.active = 1
341. AND s.deleted = 0
342. ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC';
343.
344. $result = Db::getInstance()->executeS($sql);
345.
346. $through = false;
347. foreach ($result as $row) {
348. // An URL matching current shop was found
349. if (preg_match('#^'.preg_quote($row['uri'], '#').'#i', $request_uri)) {
Argument [0] SELECT s.id_shop, CONCAT(su.physical_uri, su.virtual_uri) AS uri, su.domain, su.main FROM ps_shop_url su LEFT JOIN ps_shop s ON (s.id_shop = su.id_shop) WHERE (su.domain = 'mareb.it' OR su.domain_ssl = 'mareb.it') AND s.active = 1 AND s.deleted = 0 ORDER BY LENGTH(CONCAT(su.physical_uri, su.virtual_uri)) DESC
115.
116. $context = Context::getContext();
117.
118. /* Initialize the current Shop */
119. try {
120. $context->shop = Shop::initialize();
121. } catch (PrestaShopException $e) {
122. $e->displayMessage();
123. }
124. define('_THEME_NAME_', $context->shop->theme->getName());
125. define('_PARENT_THEME_NAME_', $context->shop->theme->get('parent') ?: '');
22. * @copyright 2007-2018 PrestaShop SA
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();
Argument [0] /var/www/vhosts/mareb.it/public_html/ps/config/config.inc.php