User 'motobelfqtmtbpre' has exceeded the 'max_questions' resource (current value: 40000)SELECT *
FROM `ps_cms` a
LEFT JOIN `ps_cms_lang` b ON a.id_cms = b.id_cms AND b.id_lang = 4
WHERE (a.id_cms = 58)
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 * FROM `ps_cms` a LEFT JOIN `ps_cms_lang` b ON a.id_cms = b.id_cms AND b.id_lang = 4 WHERE (a.id_cms = 58) 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 * FROM `ps_cms` a LEFT JOIN `ps_cms_lang` b ON a.id_cms = b.id_cms AND b.id_lang = 4 WHERE (a.id_cms = 58) LIMIT 1
179. {
180. $sql->leftJoin($this->def['table'].'_lang', 'b', 'a.'.$this->def['primary'].' = b.'.$this->def['primary'].' AND b.id_lang = '.(int)$id_lang);
181. if ($this->id_shop)
182. $sql->where('b.id_shop = '.$this->id_shop);
183. }
184. Cache::store($cache_id, Db::getInstance()->getRow($sql));
185. }
186.
187. $result = Cache::retrieve($cache_id);
188. if ($result)
189. {
Argument [0]
DbQuery Object
(
[query:protected] => Array
(
[select] => Array
(
)
[from] => `ps_cms` a
[join] => Array
(
[0] => LEFT JOIN `ps_cms_lang` b ON a.id_cms = b.id_cms AND b.id_lang = 4
)
[where] => Array
(
[0] => a.id_cms = 58
)
[group] => Array
(
)
[having] => Array
(
)
[order] => Array
(
)
[limit] => Array
(
[offset] => 0
[limit] => 0
)
)
)
599. $this->_menu .= '</li>';
600. }
601.
602. foreach ($pages as $page)
603. {
604. $cms = new CMS($page['id_cms'], $id_lang);
605. $links = $cms->getLinks($id_lang, array($cms->id));
606.
607. $selected = ($this->page_name == 'cms' && ((int)Tools::getValue('id_cms') == $page['id_cms'])) ? ' class="sfHoverForce"' : '';
608. $this->_menu .= '<li '.$selected.'>';
609. $this->_menu .= '<a href="'.$links[0]['link'].'">'.$cms->meta_title.'</a>';
Argument [0] 58 Argument [1] 4
593.
594. foreach ($categories as $category)
595. {
596. $this->_menu .= '<li>';
597. $this->_menu .= '<a href="#">'.$category['name'].'</a>';
598. $this->getCMSMenuItems($category['id_cms_category'], $depth + 1);
599. $this->_menu .= '</li>';
600. }
601.
602. foreach ($pages as $page)
603. {
Argument [0] 3 Argument [1] 2
471. case 'CMS_CAT':
472. $category = new CMSCategory($id, $id_lang);
473. if (count($category))
474. {
475. $this->_menu .= '<li><a href="#">'.$category->name.'</a>';
476. $this->getCMSMenuItems($category->id);
477. $this->_menu .= '</li>'.PHP_EOL;
478. }
479. break;
480.
481. case 'MAN':
Argument [0] 2
635.
636. public function hookTop($param)
637. {
638. global $smarty;
639.
640. $this->makeMenu();
641.
642. $smarty->assign('MENU_SEARCH', Configuration::get('MOD_BLOCKTOPMENU_SEARCH'));
643. $smarty->assign('MENU', $this->_menu);
644. $smarty->assign('this_path', $this->_path);
645.
369. $time_start2 = microtime(true);
370. // Call hook method
371. if ($hook_callable)
372. $display = $moduleInstance->{'hook'.$hook_name}($hookArgs);
373. else if ($hook_retro_callable)
374. $display = $moduleInstance->{'hook'.$retro_hook_name}($hookArgs);
375. $time_end = microtime(true);
376. $delay = $time_end - $time_start2;
377. if($delay > 0.1) {
378. $delay = $time_end - $time_start;
379. // error_log(__FILE__ . ' ' . __LINE__ . ' ' . $delay . ' ' . 'hook'.$hook_name . ' ' . $array['module']);
Argument [0]
Array
(
[cookie] => Cookie Object
(
[_content:protected] => Array
(
[date_add] => 2025-12-13 03:34:36
[id_lang] => 4
[id_currency] => 1
[checksum] => -837004257
)
[_name:protected] => 9ffb800e76372160cbb02415dccd7dec
[_expire:protected] => 1767321276
[_domain:protected] => www.motobel.fr
[_path:protected] => /
[_cipherTool:protected] => Rijndael Object
(
[_key:protected] => rvUDbYI459NJcS1aso30RCsjKuNfWogd
[_iv:protected] => eâxû¤@Š2ì%µàÀäZ
)
[_key:protected] => 2foI3Yh6FaLaoun9kvM1ixgrCxR6RQ9wd8G9tDpzIKVTI9eSCjuIJaEc
[_iv:protected] => fTLNORxn
[_modified:protected] =>
)
[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*
)
)
[altern] => 4
)
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) {
461. $Left = Hook::exec('displayLeftColumn');
462. }
Argument [0] displayTop
88. $this->errors[] = Tools::displayError('You do not have access to this category.');
89. }
90.
91. public function initContent()
92. {
93. parent::initContent();
94.
95. // BR 20140407
96. // categorie inactive, on renvoit à la catégorie parente
97. if(!$this->category->active) {
98. $Parents = $this->category->getParentsCategories();
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);