Unknown column 'sfk_shipping_addressCountry' in 'field list'<br /><br /><pre> UPDATE prstshp_sfkseoschema SET `sfk_shipping_addressCountry` = 'ES', `sfk_shipping_currency` = 'EUR' </pre>
at line 769 in file classes/db/Db.php
764. if ($webservice_call && $errno) {
765. $dbg = debug_backtrace();
766. WebserviceRequest::getInstance()->setError(500, '[SQL Error] ' . $this->getMsgError() . '. From ' . (isset($dbg[3]['class']) ? $dbg[3]['class'] : '') . '->' . $dbg[3]['function'] . '() Query was : ' . $sql, 97);
767. } elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS')) {
768. if ($sql) {
769. throw new PrestaShopDatabaseException($this->getMsgError() . '<br /><br /><pre>' . $sql . '</pre>');
770. }
771.
772. throw new PrestaShopDatabaseException($this->getMsgError());
773. }
774. }
380. $this->result = $this->_query($sql);
381. }
382. }
383.
384. if (_PS_DEBUG_SQL_) {
385. $this->displayError($sql);
386. }
387.
388. return $this->result;
389. }
390.
561. {
562. if ($sql instanceof DbQuery) {
563. $sql = $sql->build();
564. }
565.
566. $this->result = $this->query($sql);
567. if ($use_cache && $this->is_cache_enabled) {
568. Cache::getInstance()->deleteQuery($sql);
569. }
570.
571. return (bool) $this->result;
1090.
1091. // Get the currency code of the default currency
1092. $defaultCurrencyCode = $defaultCurrency->iso_code;
1093.
1094. $sqlsm = " UPDATE " . _DB_PREFIX_ . "sfkseoschema SET `sfk_shipping_addressCountry` = '" . pSQL($defaultCountryIsoCode) . "', `sfk_shipping_currency` = '" . pSQL($defaultCurrencyCode) . "' ";
1095. Db::getInstance()->Execute($sqlsm);
1096.
1097. /*
1098. SELECT name,id_category FROM ps_category_lang
1099. INNER JOIN ps_product
1100. ON ps_product.id_category_default = ps_category_lang.id_category
1002. return $output;
1003. }
1004.
1005. public static function coreCallHook($module, $method, $params)
1006. {
1007. return $module->{$method}($params);
1008. }
1009.
1010. public static function coreRenderWidget($module, $hook_name, $params)
1011. {
1012. $context = Context::getContext();
426. // Since is_callable() will always return true when __call() is available,
427. // if the module was expecting an aliased hook name to be invoked, but we send
428. // the canonical hook name instead, the hook will never be acknowledged by the module.
429. $methodName = static::getMethodName($hookName);
430. if (is_callable([$module, $methodName])) {
431. return static::coreCallHook($module, $methodName, $hookArgs);
432. }
433.
434. // fall back to all other names
435. foreach (static::getAllKnownNames($hookName) as $hook) {
436. $methodName = static::getMethodName($hook);
939.
940. if (0 !== $key && true === $chain) {
941. $hook_args = $output;
942. }
943.
944. $display = Hook::callHookOn($moduleInstance, $registeredHookName, $hook_args);
945.
946. if ($array_return) {
947. $output[$moduleInstance->name] = $display;
948. } else {
949. if (true === $chain) {
188. $ajax=false;
189. if(self::_checkPageCache() && !$ajax)
190. return true;
191. $page_cache= Ps_superspeed::isInstalled('ps_superspeed') && Ps_superspeed::isEnabled('ps_superspeed') && Configuration::get('PS_SPEED_ENABLE_PAGE_CACHE') && Configuration::get('PS_SPEED_PAGES_TO_CACHE') && in_array(Tools::getValue('controller'),explode(',',Configuration::get('PS_SPEED_PAGES_TO_CACHE')));
192. if(!$page_cache)
193. return HookCore::exec($hook_name,$hook_args,$id_module,$array_return,$check_exceptions,$use_push,$id_shop,$chain);
194. $hook = new HookCore();
195. $myClassReflection = new ReflectionClass('HookCore');
196. $secret = $myClassReflection->getMethod('getHookRegistry');
197. $secret->setAccessible(true);
198. $hookRegistry =$secret->invoke($hook);
12. require_once(dirname(__FILE__).'/../../modules/ps_superspeed/classes/ext/ps_hook');
13. $class='Ps_Hook';
14. $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS, 1);
15. if (Tools::version_compare(_PS_VERSION_,'1.7','>=')) {
16. $method='exec17';
17. return call_user_func_array(array($class, $method),array($hook_name,$hook_args,$id_module,$array_return,$check_exceptions,$use_push,$id_shop,false,$backtrace));
18. }
19. else
20. {
21. $method='exec16';
22. return call_user_func_array(array($class, $method),array($hook_name,$hook_args,$id_module,$array_return,$check_exceptions,$use_push,$id_shop));
593. if (!isset($this->context->cart)) {
594. $this->context->cart = new Cart();
595. }
596.
597. $this->context->smarty->assign([
598. 'HOOK_HEADER' => Hook::exec('displayHeader'),
599. ]);
600. }
601.
602. public function initFooter()
603. {
74. }
75. }
76. header('X-Robots-Tag: noindex, nofollow', true);
77. die(Tools::jsonEncode($data));
78. }
79. parent::initContent();
80. }
81. }
37. public function initContent()
38. {
39. header('HTTP/1.1 404 Not Found');
40. header('Status: 404 Not Found');
41. $this->context->cookie->disallowWriting();
42. parent::initContent();
43. $this->setTemplate('errors/404');
44. }
45.
46. protected function canonicalRedirection($canonical_url = '')
47. {
301. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {
302. $this->initHeader();
303. }
304.
305. if ($this->viewAccess()) {
306. $this->initContent();
307. } else {
308. $this->errors[] = $this->trans('Access denied.', [], 'Admin.Notifications.Error');
309. }
310.
311. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className))) {
513. if (isset($params_hook_action_dispatcher)) {
514. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
515. }
516.
517. // Running controller
518. $controller->run();
519.
520. // Execute hook dispatcher after
521. if (isset($params_hook_action_dispatcher)) {
522. Hook::exec('actionDispatcherAfter', $params_hook_action_dispatcher);
523. }
1535. if($cache = Ps_superspeed::displayContentCache())
1536. {
1537. echo $cache;
1538. return true;
1539. }
1540. parent::dispatch();
1541. }
1542. }
23. * @copyright Since 2007 PrestaShop SA and Contributors
24. * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
25. */
26. //echo "2"; exit();
27. require dirname(__FILE__).'/config/config.inc.php';
28. Dispatcher::getInstance()->dispatch();