Table 'new_jok.newjok_discount' doesn't exist
SELECT COUNT(d.`id_discount`) as `count`
FROM `newjok_discount` d
LEFT JOIN `newjok_discount_lang` dl ON dl.`id_discount`=d.`id_discount` AND dl.`id_lang`=1
WHERE dl.`description`="Gift voucher" LIMIT 1
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] SELECT COUNT(d.`id_discount`) as `count` FROM `newjok_discount` d LEFT JOIN `newjok_discount_lang` dl ON dl.`id_discount`=d.`id_discount` AND dl.`id_lang`=1 WHERE dl.`description`="Gift voucher" LIMIT 1
685. $this->last_cached = true;
686. return $result;
687. }
688. }
689.
690. $this->result = $this->query($sql);
691. if (!$this->result) {
692. $result = false;
693. } else {
694. $result = $this->nextRow($this->result);
695. }
Argument [0] SELECT COUNT(d.`id_discount`) as `count` FROM `newjok_discount` d LEFT JOIN `newjok_discount_lang` dl ON dl.`id_discount`=d.`id_discount` AND dl.`id_lang`=1 WHERE dl.`description`="Gift voucher" LIMIT 1
718. {
719. if ($sql instanceof DbQuery) {
720. $sql = $sql->build();
721. }
722.
723. if (!$result = $this->getRow($sql, $use_cache)) {
724. return false;
725. }
726.
727. return array_shift($result);
728. }
Argument [0] SELECT COUNT(d.`id_discount`) as `count` FROM `newjok_discount` d LEFT JOIN `newjok_discount_lang` dl ON dl.`id_discount`=d.`id_discount` AND dl.`id_lang`=1 WHERE dl.`description`="Gift voucher" LIMIT 1 Argument [1] 1
245. SELECT COUNT(d.`id_discount`) as `count`
246. FROM `' . _DB_PREFIX_ . 'discount` d
247. LEFT JOIN `' . _DB_PREFIX_ . 'discount_lang` dl ON dl.`id_discount`=d.`id_discount` AND dl.`id_lang`=' . (int)$cookie->id_lang . '
248. WHERE dl.`description`="' . $voucher_name . '"';
249.
250. $sales = (int)Db::getInstance()->getValue($sql);
251.
252. return $sales;
253. }
254. }
Argument [0] SELECT COUNT(d.`id_discount`) as `count` FROM `newjok_discount` d LEFT JOIN `newjok_discount_lang` dl ON dl.`id_discount`=d.`id_discount` AND dl.`id_lang`=1 WHERE dl.`description`="Gift voucher"
100.
101. public function hookRightColumn($params) {
102. global $smarty, $link, $cookie;
103.
104. $smarty->assign(array(
105. 'sales' => $this->getSales(),
106. 'days' => Configuration::get('BLOCKVOUCHERZ_DAYS'),
107. 'start' => Configuration::get('BLOCKVOUCHERZ_START'),
108. 'cat' => $link->getCategoryLink((int)Configuration::get('BLOCKVOUCHERZ_CAT'), null, (int)$cookie->id_lang),
109. ));
110.
582. }
583. }
584.
585. // Immediately return the result if we do not log performances
586. if (!Module::$_log_modules_perfs) {
587. return $module->{$method}($params);
588. }
589.
590. // Store time and memory before and after hook call and save the result in the database
591. $time_start = microtime(true);
592. $memory_start = memory_get_usage(true);
Argument [0]
539.
540. // Call hook method
541. if ($hook_callable) {
542. $display = Hook::coreCallHook($moduleInstance, 'hook'.$hook_name, $hook_args);
543. } elseif ($hook_retro_callable) {
544. $display = Hook::coreCallHook($moduleInstance, 'hook'.$retro_hook_name, $hook_args);
545. }
546.
547. // Live edit
548. if (!$array_return && $array['live_edit'] && Tools::isSubmit('live_edit') && Tools::getValue('ad')
549. && Tools::getValue('liveToken') == Tools::getAdminToken('AdminModulesPositions'
Argument [0] Argument [1] hookrightcolumn Argument [2]
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 {
585. $this->context->smarty->assign('HOOK_MOBILE_HEADER', Hook::exec('displayMobileHeader'));
586. }
587. }
Argument [0] displayRightColumn Argument [1]
71. * Assign template vars related to page content
72. * @see FrontController::initContent()
73. */
74. public function initContent()
75. {
76. parent::initContent();
77.
78. if (Validate::isLoadedObject($this->manufacturer) && $this->manufacturer->active && $this->manufacturer->isAssociatedToShop()) {
79. $this->productSort();
80. $this->assignOne();
81. $this->setTemplate(_PS_THEME_DIR_.'manufacturer.tpl');
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))) {
362. if (isset($params_hook_action_dispatcher)) {
363. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
364. }
365.
366. // Running controller
367. $controller->run();
368. } catch (PrestaShopException $e) {
369. $e->displayMessage();
370. }
371. }
372.
23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
24. * International Registered Trademark & Property of PrestaShop SA
25. */
26.
27. require(dirname(__FILE__).'/config/config.inc.php');
28. Dispatcher::getInstance()->dispatch();