The table '#sql-5df_14dd06' is fullALTER TABLE prstshp_cat_restriction ADD PRIMARY KEY (id_product),
ADD KEY `id_manufacturer` (`id_manufacturer`,`id_product`) USING BTREE,
ADD KEY `condition` (`condition`,`id_product`) USING BTREE,
ADD KEY `weight` (`weight`,`id_product`) USING BTREE
at line 791 in file classes/db/Db.php
786. if ($webservice_call && $errno) {
787. $dbg = debug_backtrace();
788. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
789. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
790. if ($sql) {
791. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
792. }
793.
794. throw new PrestaShopDatabaseException($this->getMsgError());
795. }
796. }
420. $this->result = $this->_query($sql);
421. }
422. }
423.
424. if (_PS_DEBUG_SQL_) {
425. $this->displayError($sql);
426. }
427.
428. return $this->result;
429. }
430.
Argument [0] ALTER TABLE prstshp_cat_restriction ADD PRIMARY KEY (id_product), ADD KEY `id_manufacturer` (`id_manufacturer`,`id_product`) USING BTREE, ADD KEY `condition` (`condition`,`id_product`) USING BTREE, ADD KEY `weight` (`weight`,`id_product`) USING BTREE
596. {
597. if ($sql instanceof DbQuery) {
598. $sql = $sql->build();
599. }
600.
601. $this->result = $this->query($sql);
602. if ($use_cache && $this->is_cache_enabled) {
603. Cache::getInstance()->deleteQuery($sql);
604. }
605.
606. return (bool)$this->result;
Argument [0] ALTER TABLE prstshp_cat_restriction ADD PRIMARY KEY (id_product), ADD KEY `id_manufacturer` (`id_manufacturer`,`id_product`) USING BTREE, ADD KEY `condition` (`condition`,`id_product`) USING BTREE, ADD KEY `weight` (`weight`,`id_product`) USING BTREE
2151.
2152.
2153. Db::getInstance(_PS_USE_SQL_SLAVE_)->execute('ALTER TABLE '._DB_PREFIX_.'cat_restriction ADD PRIMARY KEY (id_product),
2154. ADD KEY `id_manufacturer` (`id_manufacturer`,`id_product`) USING BTREE,
2155. ADD KEY `condition` (`condition`,`id_product`) USING BTREE,
2156. ADD KEY `weight` (`weight`,`id_product`) USING BTREE', false);
2157.
2158. // Remove all empty selected filters
2159. foreach ($selected_filters as $key => $value)
2160. switch ($key)
2161. {
Argument [0] ALTER TABLE prstshp_cat_restriction ADD PRIMARY KEY (id_product), ADD KEY `id_manufacturer` (`id_manufacturer`,`id_product`) USING BTREE, ADD KEY `condition` (`condition`,`id_product`) USING BTREE, ADD KEY `weight` (`weight`,`id_product`) USING BTREE Argument [1]
696. {
697.
698. global $smarty, $cookie;
699.
700. // No filters => module disable
701. if ($filter_block = $this->getFilterBlock($this->getSelectedFilters()))
702. if ($filter_block['nbr_filterBlocks'] == 0)
703. return false;
704.
705. if (Tools::getValue('id_category', Tools::getValue('id_category_layered', Configuration::get('PS_HOME_CATEGORY'))) == Configuration::get('PS_HOME_CATEGORY'))
706. return;
Argument [0] Array ( [category] => Array ( ) )
210. if ($use_push && isset($moduleInstance->push_filename) && file_exists($moduleInstance->push_filename))
211. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
212. if ($hook_callable)
213. $display = $moduleInstance->{'hook'.$hook_name}($hook_args);
214. elseif ($hook_retro_callable)
215. $display = $moduleInstance->{'hook'.$retro_hook_name}($hook_args);
216. if (!$array_return && $array['live_edit'] && Tools::isSubmit('live_edit') && Tools::getValue('ad') && Tools::getValue('liveToken') == Tools::getAdminToken('AdminModulesPositions'.(int)Tab::getIdFromClassName('AdminModulesPositions').(int)Tools::getValue('id_employee')))
217. {
218. $live_edit = true;
219. $output .= self::wrapLiveEdit($display, $moduleInstance, $array['id_hook']);
220. }
Argument [0]
33. * version: 4.28
34. */
35. public static function exec($hook_name, $hook_args = array(), $id_module = null, $array_return = false, $check_exceptions = true, $use_push = false, $id_shop = null)
36. {
37. if (Tools::version_compare(_PS_VERSION_,'1.6','>=')) {
38. return self::exec_16($hook_name, $hook_args, $id_module, $array_return, $check_exceptions, $use_push, $id_shop);
39. } else {
40. return self::exec_15($hook_name, $hook_args, $id_module, $array_return, $check_exceptions);
41. }
42. }
43. /*
Argument [0] displayHeader Argument [1] Argument [2] Argument [3] Argument [4] 1 Argument [5] Argument [6]
574.
575. if (!$this->useMobileTheme()) {
576. // These hooks aren't used for the mobile theme.
577. // Needed hooks are called in the tpl files.
578. $this->context->smarty->assign(array(
579. 'HOOK_HEADER' => Hook::exec('displayHeader'),
580. 'HOOK_TOP' => Hook::exec('displayTop'),
581. 'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
582. 'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : ''),
583. ));
584. } else {
Argument [0] displayHeader
124. /**
125. * Initializes page content variables
126. */
127. public function initContent()
128. {
129. parent::initContent();
130.
131. $this->setTemplate(_PS_THEME_DIR_.'category.tpl');
132.
133. if (!$this->customer_access) {
134. return;
4. * module: jscomposer
5. * date: 2020-06-29 23:07:57
6. * version: 4.4.8
7. */
8. public function initContent() {
9. parent::initContent();
10. $description = $this->category->description = JsComposer::do_shortcode($this->category->description);
11. if (Module::isInstalled('jscomposer') && (bool) Module::isEnabled('jscomposer')) {
12. $this->context->smarty->assign(
13. array(
14. 'description_short' => JsComposer::do_shortcode($description),
184. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
185. $this->initHeader();
186. }
187.
188. if ($this->viewAccess()) {
189. $this->initContent();
190. } else {
191. $this->errors[] = Tools::displayError('Access denied.');
192. }
193.
194. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
541. try
542. {
543. $controller = Controller::getController($controller_class);
544. if (isset($params_hook_action_dispatcher))
545. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
546. $controller->run();
547. if ($this->_isPageCacheActive())
548. {
549. PageCache::displayStats(false, $pre_display_html);
550. }
551. }
313. * date: 2017-11-29 09:41:33
314. * version: 4.09
315. */
316. public function dispatch() {
317. if (Tools::version_compare(_PS_VERSION_,'1.6','>=')) {
318. $this->dispatch_16();
319. } else {
320. $this->dispatch_15();
321. }
322. }
323. /*
50. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
51. * International Registered Trademark & Property of PrestaShop SA
52. */
53.
54. require(dirname(__FILE__).'/config/config.inc.php');
55. Dispatcher::getInstance()->dispatch();