User 'motobelfqtmtbpre' has exceeded the 'max_questions' resource (current value: 40000)
SELECT `id_hook`
FROM `ps_hook`
WHERE `name` = 'displayFooter'
OR `name` = 'footer'
LIMIT 1
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 `id_hook` FROM `ps_hook` WHERE `name` = 'displayFooter' OR `name` = 'footer' LIMIT 1
517. {
518. $this->last_cached = true;
519. return $result;
520. }
521.
522. $this->result = $this->query($sql);
523. if (!$this->result)
524. return false;
525.
526. $this->last_cached = false;
527. $result = $this->nextRow($this->result);
Argument [0] SELECT `id_hook` FROM `ps_hook` WHERE `name` = 'displayFooter' OR `name` = 'footer' LIMIT 1
540. public function getValue($sql, $use_cache = true)
541. {
542. if ($sql instanceof DbQuery)
543. $sql = $sql->build();
544.
545. if (!$result = $this->getRow($sql, $use_cache))
546. return false;
547. return array_shift($result);
548. }
549.
550. /**
Argument [0] SELECT `id_hook` FROM `ps_hook` WHERE `name` = 'displayFooter' OR `name` = 'footer' Argument [1] 1
113. Cache::store($cache_id, Db::getInstance()->getValue('
114. SELECT `id_hook`
115. FROM `'._DB_PREFIX_.'hook`
116. WHERE `name` = \''.pSQL($hook_name).'\'
117. OR `name` = \''.pSQL($retro_hook_name).'\'
118. '));
119. }
120.
121. return Cache::retrieve($cache_id);
122. }
123.
Argument [0] SELECT `id_hook` FROM `ps_hook` WHERE `name` = 'displayFooter' OR `name` = 'footer'
322. $context = Context::getContext();
323. if (($id_module && !Validate::isUnsignedId($id_module)) || !Validate::isHookName($hook_name))
324. throw new PrestaShopException('Invalid id_module or hook_name');
325.
326. // Check if hook exists
327. if (!$id_hook = Hook::getIdByName($hook_name))
328. return false;
329. $retro_hook_name = Hook::getRetroHookName($hook_name);
330.
331. // Store list of executed hooks on this page
332. Hook::$executed_hooks[$id_hook] = $hook_name;
Argument [0] displayFooter
781. }
782.
783. public function initFooter()
784. {
785. $this->context->smarty->assign(array(
786. 'HOOK_FOOTER' => Hook::exec('displayFooter'),
787. ));
788.
789. }
790.
791. public function getLiveEditFooter()
Argument [0] displayFooter
170. else {
171. $this->errors[] = Tools::displayError('Access denied.');
172. }
173.
174. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
175. $this->initFooter();
176.
177. // default behavior for ajax process is to use $_POST[action] or $_GET[action]
178. // then using displayAjax[action]
179. if ($this->ajax)
180. {
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);