User 'prodigitdoliba' has exceeded the 'max_questions' resource (current value: 40000)SELECT m.`id_module`, m.`name`, (SELECT COUNT(*) FROM `ps_module_shop` ms WHERE m.`id_module` = ms.`id_module` AND ms.`id_shop` = 32) as total FROM `ps_module` m
at line 605 in file classes/db/Db.php
599. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
600. }
601. else if (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
602. {
603. if ($sql)
604. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
605. throw new PrestaShopDatabaseException($this->getMsgError());
606. }
607. }
608.
609. /**
301. if ($sql instanceof DbQuery)
302. $sql = $sql->build();
303.
304. $this->result = $this->_query($sql);
305. if (_PS_DEBUG_SQL_)
306. $this->displayError($sql);
307. return $this->result;
308. }
309.
310. /**
311. * Execute an INSERT query
Argument [0] SELECT m.`id_module`, m.`name`, (SELECT COUNT(*) FROM `ps_module_shop` ms WHERE m.`id_module` = ms.`id_module` AND ms.`id_shop` = 32) as total FROM `ps_module` m
476. {
477. $this->last_cached = true;
478. return $result;
479. }
480.
481. $this->result = $this->query($sql);
482. if (!$this->result)
483. return false;
484.
485. $this->last_cached = false;
486. if (!$array)
Argument [0] SELECT m.`id_module`, m.`name`, (SELECT COUNT(*) FROM `ps_module_shop` ms WHERE m.`id_module` = ms.`id_module` AND ms.`id_shop` = 32) as total FROM `ps_module` m
153. $sql_limit_shop = 'SELECT COUNT(*) FROM `'._DB_PREFIX_.'module_shop` ms WHERE m.`id_module` = ms.`id_module` AND ms.`id_shop` = '.(int)Context::getContext()->shop->id;
154. $sql = 'SELECT m.`id_module`, m.`name`, ('.$sql_limit_shop.') as total FROM `'._DB_PREFIX_.'module` m';
155.
156. // Result is cached
157. self::$modules_cache = array();
158. $result = Db::getInstance()->executeS($sql);
159. foreach ($result as $row)
160. {
161. self::$modules_cache[$row['name']] = $row;
162. self::$modules_cache[$row['name']]['active'] = ($row['total'] > 0) ? 1 : 0;
163. }
Argument [0] SELECT m.`id_module`, m.`name`, (SELECT COUNT(*) FROM `ps_module_shop` ms WHERE m.`id_module` = ms.`id_module` AND ms.`id_shop` = 32) as total FROM `ps_module` m
37. $this->tab = 'Blocks';
38. $this->version = '1.0';
39. $this->author = 'PrestaShop';
40. $this->need_instance = 0;
41.
42. parent::__construct();
43.
44. $this->displayName = $this->l('Block customer data privacy');
45. $this->description = $this->l('Adds a block to display a message about customer data privacy.');
46. }
47.
860. if (Tools::file_exists_cache(_PS_MODULE_DIR_.$module_name.'/'.$module_name.'.php'))
861. {
862. include_once(_PS_MODULE_DIR_.$module_name.'/'.$module_name.'.php');
863.
864. if (class_exists($module_name, false))
865. return self::$_INSTANCE[$module_name] = new $module_name;
866. }
867. return false;
868. }
869. return self::$_INSTANCE[$module_name];
870. }
389. foreach ($module_list as $array)
390. {
391. // Check errors
392. if ($id_module && $id_module != $array['id_module'])
393. continue;
394. if (!($moduleInstance = Module::getInstanceByName($array['module'])))
395. continue;
396.
397. // Check permissions
398. if ($check_exceptions)
399. {
Argument [0] blockcustomerprivacy
436. // These hooks aren't used for the mobile theme.
437. // Needed hooks are called in the tpl files.
438. if (!isset($this->context->cart))
439. $this->context->cart = new Cart();
440. $this->context->smarty->assign(array(
441. 'HOOK_HEADER' => Hook::exec('displayHeader'),
442. 'HOOK_TOP' => Hook::exec('displayTop'),
443. 'HOOK_TOPOFTHETOP' => Hook::exec('displayTopOfTheTop'),
444. 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
445. 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
446. ));
Argument [0] displayHeader
177. * Assign template vars related to page content
178. * @see FrontController::initContent()
179. */
180. public function initContent()
181. {
182. parent::initContent();
183.
184. if (!$this->errors)
185. {
186. // Assign to the template the id of the virtual product. "0" if the product is not downloadable.
187. $this->context->smarty->assign('virtual', ProductDownload::getIdFromIdProduct((int)$this->product->id));
161.
162. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
163. $this->initHeader();
164.
165. if ($this->viewAccess())
166. $this->initContent();
167. else
168. $this->errors[] = Tools::displayError('Access denied.');
169.
170. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
171. $this->initFooter();
343. // Execute hook dispatcher
344. if (isset($params_hook_action_dispatcher))
345. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
346.
347. // Running controller
348. $controller->run();
349. }
350. catch (PrestaShopException $e)
351. {
352. $e->displayMessage();
353. }
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();
28.