Server shutdown in progressSELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit`
FROM `ps_module` m
LEFT JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module`
LEFT JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook`
WHERE ((SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN(1)) = 1) AND (hm.id_shop IN(1))
GROUP BY hm.id_hook, hm.id_module
ORDER BY hm.`position`
at line 604 in file classes/db/Db.php
598. if ($webservice_call && $errno)
599. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. Query was : '.$sql, 97);
600. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
601. {
602. if ($sql)
603. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
604. throw new PrestaShopDatabaseException($this->getMsgError());
605. }
606. }
607.
608. /**
302. if ($sql instanceof DbQuery)
303. $sql = $sql->build();
304.
305. $this->result = $this->_query($sql);
306. if (_PS_DEBUG_SQL_) {
307. $this->displayError($sql);
308. }
309. return $this->result;
310. }
311.
312. /**
Argument [0] SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit` FROM `ps_module` m LEFT JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module` LEFT JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook` WHERE ((SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN(1)) = 1) AND (hm.id_shop IN(1)) GROUP BY hm.id_hook, hm.id_module ORDER BY hm.`position`
478. {
479. $this->last_cached = true;
480. return $result;
481. }
482.
483. $this->result = $this->query($sql);
484. if (!$this->result)
485. return false;
486.
487. $this->last_cached = false;
488. if (!$array)
Argument [0] SELECT h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit` FROM `ps_module` m LEFT JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module` LEFT JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook` WHERE ((SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN(1)) = 1) AND (hm.id_shop IN(1)) GROUP BY hm.id_hook, hm.id_module ORDER BY hm.`position`
260.
261. $sql->groupBy('hm.id_hook, hm.id_module');
262. $sql->orderBy('hm.`position`');
263.
264. // Store results per hook name
265. $results = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS($sql);
266. $list = array();
267. if ($results)
268. foreach ($results as $row)
269. {
270. $row['hook'] = strtolower($row['hook']);
Argument [0] DbQuery Object ( [query:protected] => Array ( [select] => Array ( [0] => h.`name` as hook, m.`id_module`, h.`id_hook`, m.`name` as module, h.`live_edit` ) [from] => `ps_module` m [join] => Array ( [0] => LEFT JOIN `ps_hook_module` hm ON hm.`id_module` = m.`id_module` [1] => LEFT JOIN `ps_hook` h ON hm.`id_hook` = h.`id_hook` ) [where] => Array ( [0] => (SELECT COUNT(*) FROM ps_module_shop ms WHERE ms.id_module = m.id_module AND ms.id_shop IN(1)) = 1 [1] => hm.id_shop IN(1) ) [group] => Array ( [0] => hm.id_hook, hm.id_module ) [having] => Array ( ) [order] => Array ( [0] => hm.`position` ) [limit] => Array ( [offset] => 0 [limit] => 0 ) ) )
336. $hookArgs['cookie'] = $context->cookie;
337. if (!isset($hookArgs['cart']) || !$hookArgs['cart'])
338. $hookArgs['cart'] = $context->cart;
339.
340. // If no modules associated to hook_name or recompatible hook name, we stop the function
341. if (!$module_list = Hook::getHookModuleExecList($hook_name))
342. return '';
343.
344. // Look on modules list
345. $altern = 0;
346. $output = '';
Argument [0] displayHeader
450.
451. if ($this->context->getMobileDevice() == false)
452. {
453. // These hooks aren't used for the mobile theme.
454. // Needed hooks are called in the tpl files.
455. $Header = Hook::exec('displayHeader');
456.
457. $Top = Hook::exec('displayTop');
458.
459. $Left = '';
460. if($this->display_column_left) {
Argument [0] displayHeader
256. */
257. public function initContent()
258. {
259. $this->setTemplate(_PS_THEME_DIR_.'errors.tpl');
260. if (!$this->ajax)
261. parent::initContent();
262. }
263.
264. /**
265. * Display ajax content (this function is called instead of classic display, in ajax mode)
266. */
163. }
164. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
165. $this->initHeader();
166.
167. if ($this->viewAccess()) {
168. $this->initContent();
169. }
170. else {
171. $this->errors[] = Tools::displayError('Access denied.');
172. }
173.
390. {
391. $mycontroller = Controller::getController($controller_class);
392. if( $_SERVER['REMOTE_ADDR']== IP_DEBUG_BLAISE) {
393. // mail('blaise2@motobel.fr', $time_start . ' ' . __FILE__ . ' ' . __LINE__, $_SERVER['REQUEST_URI'] . print_r($this, true));
394. }
395. $mycontroller->run();
396. if( $_SERVER['REMOTE_ADDR']== IP_DEBUG_BLAISE) {
397. // mail('blaise2@motobel.fr', $time_start . ' ' . __FILE__ . ' ' . __LINE__, $_SERVER['REQUEST_URI'] . print_r($this, true));
398. }
399. }
400. catch (PrestaShopException $e)
75.
76. if( $_SERVER['REMOTE_ADDR']== IP_DEBUG_BLAISE) {
77. //mail('blaise2@motobel.fr', $time_start . ' ' . __FILE__ . ' ' . __LINE__, $_SERVER['REQUEST_URI']);
78. }
79.
80. Dispatcher::getInstance()->dispatch();
81.
82. $time_end = microtime(true);
83. $delay = $time_end - $time_start;
84. if($delay > 1) {
85. // error_log(__FILE__ . ' ' . __LINE__ . ' ' . $delay);