You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND `id_feature_value` = 0
AND `id_shop` = 1
' at line 4SELECT * FROM `presta_vt_metatags`
WHERE `id_category` = 0
AND `id_manufacturer` =
AND `id_feature_value` = 0
AND `id_shop` = 1
AND `id_lang` = 2
AND `is_product` = 1 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 * FROM `presta_vt_metatags` WHERE `id_category` = 0 AND `id_manufacturer` = AND `id_feature_value` = 0 AND `id_shop` = 1 AND `id_lang` = 2 AND `is_product` = 1 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 * FROM `presta_vt_metatags` WHERE `id_category` = 0 AND `id_manufacturer` = AND `id_feature_value` = 0 AND `id_shop` = 1 AND `id_lang` = 2 AND `is_product` = 1 LIMIT 1
874. AND `id_manufacturer` = '.self::$currentParams['id_manufacturer'].'
875. AND `id_feature_value` = '.self::$currentParams['id_feature_value'].'
876. AND `id_shop` = '.self::$currentParams['id_shop'].'
877. AND `id_lang` = '.self::$currentParams['id_lang'].'
878. AND `is_product` = 1;';
879. $result = Db::getInstance()->getRow($sql);
880. self::$currentParams['meta'] = (
881. $result && ($result['title'] != '' || $result['description'] != '') ?
882. array(
883. 'title' => $result['title'] != '' ? $result['title'] : false,
884. 'description' => $result['description'] != '' ? $result['description'] : false,
Argument [0] SELECT * FROM `presta_vt_metatags` WHERE `id_category` = 0 AND `id_manufacturer` = AND `id_feature_value` = 0 AND `id_shop` = 1 AND `id_lang` = 2 AND `is_product` = 1;
153. /**
154. * Hook Header
155. */
156. public function hookHeader()
157. {
158. $meta = $this->getCurrentMeta();
159. if ($meta) {
160. if ($meta['title']) {
161. $this->context->smarty->assign(
162. 'meta_title',
163. str_replace(
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] hookHeader Argument [2]
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
6. * date: 2015-10-15 23:51:32
7. * version: 1.1.0
8. */
9. public function initContent()
10. {
11. parent::initContent();
12.
13. $this->context->smarty->assign(array(
14. 'HOOK_TOP_LEFT' => Hook::exec('displayTopLeft'),
15. 'HOOK_TOP_SECONDARY' => Hook::exec('displayTopSecondary'),
16. 'HOOK_FOOTER_TOP' => Hook::exec('displayFooterTop'),
339. */
340. public function initContent()
341. {
342. $this->setTemplate(_PS_THEME_DIR_.'errors.tpl');
343. if (!$this->ajax) {
344. parent::initContent();
345. }
346. }
347.
348. /**
349. * Display ajax content (this function is called instead of classic display, in ajax mode)
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))) {
178. if (isset($params_hook_action_dispatcher)) {
179. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
180. }
181.
182. // Running controller
183. $controller->run();
184. } catch (PrestaShopException $e) {
185. $e->displayMessage();
186. }
187. }
188. }
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();