User 'motobelfqtmtbpre' has exceeded the 'max_questions' resource (current value: 40000)
SELECT `id_hook`
FROM `ps_hook`
WHERE `name` = 'displayRightColumn'
OR `name` = 'rightcolumn'
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` = 'displayRightColumn' OR `name` = 'rightcolumn' 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` = 'displayRightColumn' OR `name` = 'rightcolumn' 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` = 'displayRightColumn' OR `name` = 'rightcolumn' 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` = 'displayRightColumn' OR `name` = 'rightcolumn'
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] displayRightColumn
461. $Left = Hook::exec('displayLeftColumn');
462. }
463.
464. $Right = '';
465. if($this->display_column_right) {
466. $Right = Hook::exec('displayRightColumn', array('cart' => $this->context->cart));
467. }
468. $this->context->smarty->assign(array(
469. 'HOOK_HEADER' => $Header,
470. 'HOOK_TOP' => $Top,
471. 'HOOK_LEFT_COLUMN' => $Left,
Argument [0]
displayRightColumn
Argument [1]
Array
(
[cart] => Cart Object
(
[id] =>
[id_group_shop] => 1
[id_shop] => 1
[id_address_delivery] => 0
[id_address_invoice] => 0
[id_currency] => 1
[id_customer] =>
[id_guest] => 0
[id_lang] => 4
[recyclable] => 1
[gift] => 0
[gift_message] =>
[date_add] =>
[secure_key] =>
[id_carrier] => 0
[date_upd] =>
[checkedTos] =>
[pictures] =>
[textFields] =>
[delivery_option] =>
[allow_seperated_package] =>
[_products:protected] =>
[_taxCalculationMethod:protected] => 0
[webserviceParameters:protected] => Array
(
[fields] => Array
(
[id_address_delivery] => Array
(
[xlink_resource] => addresses
)
[id_address_invoice] => Array
(
[xlink_resource] => addresses
)
[id_currency] => Array
(
[xlink_resource] => currencies
)
[id_customer] => Array
(
[xlink_resource] => customers
)
[id_guest] => Array
(
[xlink_resource] => guests
)
[id_lang] => Array
(
[xlink_resource] => languages
)
)
[associations] => Array
(
[cart_rows] => Array
(
[resource] => cart_row
[virtual_entity] => 1
[fields] => Array
(
[id_product] => Array
(
[required] => 1
[xlink_resource] => products
)
[id_product_attribute] => Array
(
[required] => 1
[xlink_resource] => combinations
)
[quantity] => Array
(
[required] => 1
)
)
)
)
)
[get_shop_from_context:ObjectModelCore:private] => 1
[table:protected] => cart
[identifier:protected] => id_cart
[fieldsRequired:protected] => Array
(
[0] => id_currency
[1] => id_lang
)
[fieldsSize:protected] => Array
(
[secure_key] => 32
)
[fieldsValidate:protected] => Array
(
[id_group_shop] => isUnsignedId
[id_shop] => isUnsignedId
[id_address_delivery] => isUnsignedId
[id_address_invoice] => isUnsignedId
[id_carrier] => isUnsignedId
[id_currency] => isUnsignedId
[id_customer] => isUnsignedId
[id_guest] => isUnsignedId
[id_lang] => isUnsignedId
[recyclable] => isBool
[gift] => isBool
[gift_message] => isMessage
[allow_seperated_package] => isBool
[date_add] => isDateFormat
[date_upd] => isDateFormat
)
[fieldsRequiredLang:protected] => Array
(
)
[fieldsSizeLang:protected] => Array
(
)
[fieldsValidateLang:protected] => Array
(
)
[tables:protected] => Array
(
)
[image_dir:protected] =>
[image_format:protected] => jpg
[def:protected] => Array
(
[table] => cart
[primary] => id_cart
[fields] => Array
(
[id_group_shop] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_shop] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_address_delivery] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_address_invoice] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_carrier] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_currency] => Array
(
[type] => 1
[validate] => isUnsignedId
[required] => 1
)
[id_customer] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_guest] => Array
(
[type] => 1
[validate] => isUnsignedId
)
[id_lang] => Array
(
[type] => 1
[validate] => isUnsignedId
[required] => 1
)
[recyclable] => Array
(
[type] => 2
[validate] => isBool
)
[gift] => Array
(
[type] => 2
[validate] => isBool
)
[gift_message] => Array
(
[type] => 3
[validate] => isMessage
)
[delivery_option] => Array
(
[type] => 3
)
[secure_key] => Array
(
[type] => 3
[size] => 32
)
[allow_seperated_package] => Array
(
[type] => 2
[validate] => isBool
)
[date_add] => Array
(
[type] => 5
[validate] => isDateFormat
)
[date_upd] => Array
(
[type] => 5
[validate] => isDateFormat
)
)
[classname] => Cart Object
*RECURSION*
)
)
)
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);