MySQL server has gone awaySELECT *
FROM `ps_theme` a
WHERE (a.id_theme = 1)
LIMIT 1
at line 635 in file classes/db/Db.php
629. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
630. }
631. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
632. {
633. if ($sql)
634. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
635. throw new PrestaShopDatabaseException($this->getMsgError());
636. }
637. }
638.
639. /**
319. if ($sql instanceof DbQuery)
320. $sql = $sql->build();
321.
322. $this->result = $this->_query($sql);
323. if (_PS_DEBUG_SQL_)
324. $this->displayError($sql);
325. return $this->result;
326. }
327.
328. /**
329. * Execute an INSERT query
Argument [0] SELECT * FROM `ps_theme` a WHERE (a.id_theme = 1) LIMIT 1
541. if ($use_cache && $this->is_cache_enabled && ($result = Cache::getInstance()->get(Tools::encryptIV($sql))) !== false)
542. {
543. $this->last_cached = true;
544. return $result;
545. }
546. $this->result = $this->query($sql);
547. if (!$this->result)
548. $result = false;
549. else
550. $result = $this->nextRow($this->result);
551. $this->last_cached = false;
Argument [0] SELECT * FROM `ps_theme` a WHERE (a.id_theme = 1) LIMIT 1
211. }
212.
213. // Get shop informations
214. if (Shop::isTableAssociated($this->def['table']))
215. $sql->leftJoin($this->def['table'].'_shop', 'c', 'a.'.$this->def['primary'].' = c.'.$this->def['primary'].' AND c.id_shop = '.(int)$this->id_shop);
216. if ($object_datas = ObjectModel::$db->getRow($sql))
217. {
218. if (!$id_lang && isset($this->def['multilang']) && $this->def['multilang'])
219. {
220. $sql = 'SELECT * FROM `'.pSQL(_DB_PREFIX_.$this->def['table']).'_lang`
221. WHERE `'.bqSQL($this->def['primary']).'` = '.(int)$id
Argument [0] DbQuery Object ( [query:protected] => Array ( [select] => Array ( ) [from] => Array ( [0] => `ps_theme` a ) [join] => Array ( ) [where] => Array ( [0] => a.id_theme = 1 ) [group] => Array ( ) [having] => Array ( ) [order] => Array ( ) [limit] => Array ( [offset] => 0 [limit] => 0 ) ) )
92.
93. /* Initialize the current Shop */
94. try
95. {
96. $context->shop = Shop::initialize();
97. $context->theme = new Theme((int)$context->shop->id_theme);
98. if ((Tools::isEmpty($theme_name = $context->shop->getTheme()) || !Validate::isLoadedObject($context->theme)) && !defined('_PS_ADMIN_DIR_'))
99. throw new PrestaShopException(Tools::displayError('Current theme unselected. Please check your theme configuration.'));
100. }
101. catch (PrestaShopException $e)
102. {
Argument [0] 1
21. * @copyright 2007-2014 PrestaShop SA
22. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
23. * International Registered Trademark & Property of PrestaShop SA
24. */
25.
26. require(dirname(__FILE__).'/config/config.inc.php');
27. Dispatcher::getInstance()->dispatch();
Argument [0] /data/3/a/3a521af7-0468-4799-ab18-c2f8122a72c2/xdvision.sk/web/config/config.inc.php