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 '' at line 1SELECT choice FROM `psk_pf` WHERE id_cart =
at line 646 in file classes/db/Db.php
641. WebserviceRequest::getInstance()->setError(500, '[SQL Error] '.$this->getMsgError().'. From '.(isset($dbg[3]['class']) ? $dbg[3]['class'] : '').'->'.$dbg[3]['function'].'() Query was : '.$sql, 97);
642. }
643. elseif (_PS_DEBUG_SQL_ && $errno && !defined('PS_INSTALLATION_IN_PROGRESS'))
644. {
645. if ($sql)
646. throw new PrestaShopDatabaseException($this->getMsgError().'<br /><br /><pre>'.$sql.'</pre>');
647. throw new PrestaShopDatabaseException($this->getMsgError());
648. }
649. }
650.
651. /**
335. if ($this->connect())
336. $this->result = $this->_query($sql);
337. }
338.
339. if (_PS_DEBUG_SQL_)
340. $this->displayError($sql);
341. return $this->result;
342. }
343.
344. /**
345. * Execute an INSERT query
Argument [0] SELECT choice FROM `psk_pf` WHERE id_cart =
511. {
512. $this->last_cached = true;
513. return $result;
514. }
515.
516. $this->result = $this->query($sql);
517.
518. if (!$this->result)
519. $result = false;
520. else
521. {
Argument [0] SELECT choice FROM `psk_pf` WHERE id_cart =
68. {
69. global $smarty, $cookie;
70. $db = Db::getInstance();
71. $this->context->controller->addJS(($this->_path).'save.js');
72. $pf = Configuration::get('PF_DEFAULT');
73. $ch = $db->ExecuteS('SELECT choice FROM `'._DB_PREFIX_.'pf` WHERE id_cart = '.$cookie->id_cart);
74.
75. if(count($ch) != 0)
76. $pf = $ch[0]['choice'];
77. $this->context->smarty->assign(
78. array(
Argument [0] SELECT choice FROM `psk_pf` WHERE id_cart =
505. if ($use_push && isset($moduleInstance->push_filename) && file_exists($moduleInstance->push_filename))
506. Tools::waitUntilFileIsModified($moduleInstance->push_filename, $moduleInstance->push_time_limit);
507.
508. // Call hook method
509. if ($hook_callable)
510. $display = $moduleInstance->{'hook'.$hook_name}($hook_args);
511. elseif ($hook_retro_callable)
512. $display = $moduleInstance->{'hook'.$retro_hook_name}($hook_args);
513. // Live edit
514. 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')))
515. {
Argument [0]
375. 'smallSize' => Image::getSize(ImageType::getFormatedName('small')),
376.
377. ));
378.
379. $this->context->smarty->assign(array(
380. 'HOOK_SHOPPING_CART' => Hook::exec('displayShoppingCartFooter', $summary),
381. 'HOOK_SHOPPING_CART_EXTRA' => Hook::exec('displayShoppingCart', $summary)
382. ));
383. }
384.
385. protected function _assignAddress()
Argument [0] displayShoppingCartFooter Argument [1] Array ( [delivery] => Address Object ( [id_customer] => [id_manufacturer] => [id_supplier] => [id_warehouse] => [id_country] => [id_state] => [country] => [alias] => [company] => [lastname] => [firstname] => [address1] => [address2] => [postcode] => [city] => [other] => [phone] => [phone_mobile] => [vat_number] => [dni] => [date_add] => [date_upd] => [deleted] => 0 [_includeVars:protected] => Array ( [addressType] => table ) [_includeContainer:protected] => [webserviceParameters:protected] => Array ( [objectsNodeName] => addresses [fields] => Array ( [id_customer] => Array ( [xlink_resource] => customers ) [id_manufacturer] => Array ( [xlink_resource] => manufacturers ) [id_supplier] => Array ( [xlink_resource] => suppliers ) [id_warehouse] => Array ( [xlink_resource] => warehouse ) [id_country] => Array ( [xlink_resource] => countries ) [id_state] => Array ( [xlink_resource] => states ) ) ) [id] => [id_lang:protected] => [id_shop:protected] => [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => address [identifier:protected] => id_address [fieldsRequired:protected] => Array ( [0] => id_country [1] => alias [2] => lastname [3] => firstname [4] => address1 [5] => city ) [fieldsSize:protected] => Array ( [alias] => 32 [company] => 64 [lastname] => 32 [firstname] => 32 [address1] => 128 [address2] => 128 [postcode] => 12 [city] => 64 [other] => 300 [phone] => 32 [phone_mobile] => 32 [dni] => 16 ) [fieldsValidate:protected] => Array ( [id_customer] => isNullOrUnsignedId [id_manufacturer] => isNullOrUnsignedId [id_supplier] => isNullOrUnsignedId [id_warehouse] => isNullOrUnsignedId [id_country] => isUnsignedId [id_state] => isNullOrUnsignedId [alias] => isGenericName [company] => isGenericName [lastname] => isName [firstname] => isName [vat_number] => isGenericName [address1] => isAddress [address2] => isAddress [postcode] => isPostCode [city] => isCityName [other] => isMessage [phone] => isPhoneNumber [phone_mobile] => isPhoneNumber [dni] => isDniLite [deleted] => isBool [date_add] => isDateFormat [date_upd] => isDateFormat ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => address [primary] => id_address [fields] => Array ( [id_customer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_manufacturer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_supplier] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_warehouse] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_country] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_state] => Array ( [type] => 1 [validate] => isNullOrUnsignedId ) [alias] => Array ( [type] => 3 [validate] => isGenericName [required] => 1 [size] => 32 ) [company] => Array ( [type] => 3 [validate] => isGenericName [size] => 64 ) [lastname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [firstname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [vat_number] => Array ( [type] => 3 [validate] => isGenericName ) [address1] => Array ( [type] => 3 [validate] => isAddress [required] => 1 [size] => 128 ) [address2] => Array ( [type] => 3 [validate] => isAddress [size] => 128 ) [postcode] => Array ( [type] => 3 [validate] => isPostCode [size] => 12 ) [city] => Array ( [type] => 3 [validate] => isCityName [required] => 1 [size] => 64 ) [other] => Array ( [type] => 3 [validate] => isMessage [size] => 300 ) [phone] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [phone_mobile] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [dni] => Array ( [type] => 3 [validate] => isDniLite [size] => 16 ) [deleted] => Array ( [type] => 2 [validate] => isBool [copy_post] => ) [date_add] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) [date_upd] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) ) [classname] => Address ) [update_fields:protected] => [force_id] => ) [delivery_state] => [invoice] => Address Object ( [id_customer] => [id_manufacturer] => [id_supplier] => [id_warehouse] => [id_country] => [id_state] => [country] => [alias] => [company] => [lastname] => [firstname] => [address1] => [address2] => [postcode] => [city] => [other] => [phone] => [phone_mobile] => [vat_number] => [dni] => [date_add] => [date_upd] => [deleted] => 0 [_includeVars:protected] => Array ( [addressType] => table ) [_includeContainer:protected] => [webserviceParameters:protected] => Array ( [objectsNodeName] => addresses [fields] => Array ( [id_customer] => Array ( [xlink_resource] => customers ) [id_manufacturer] => Array ( [xlink_resource] => manufacturers ) [id_supplier] => Array ( [xlink_resource] => suppliers ) [id_warehouse] => Array ( [xlink_resource] => warehouse ) [id_country] => Array ( [xlink_resource] => countries ) [id_state] => Array ( [xlink_resource] => states ) ) ) [id] => [id_lang:protected] => [id_shop:protected] => [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => address [identifier:protected] => id_address [fieldsRequired:protected] => Array ( [0] => id_country [1] => alias [2] => lastname [3] => firstname [4] => address1 [5] => city ) [fieldsSize:protected] => Array ( [alias] => 32 [company] => 64 [lastname] => 32 [firstname] => 32 [address1] => 128 [address2] => 128 [postcode] => 12 [city] => 64 [other] => 300 [phone] => 32 [phone_mobile] => 32 [dni] => 16 ) [fieldsValidate:protected] => Array ( [id_customer] => isNullOrUnsignedId [id_manufacturer] => isNullOrUnsignedId [id_supplier] => isNullOrUnsignedId [id_warehouse] => isNullOrUnsignedId [id_country] => isUnsignedId [id_state] => isNullOrUnsignedId [alias] => isGenericName [company] => isGenericName [lastname] => isName [firstname] => isName [vat_number] => isGenericName [address1] => isAddress [address2] => isAddress [postcode] => isPostCode [city] => isCityName [other] => isMessage [phone] => isPhoneNumber [phone_mobile] => isPhoneNumber [dni] => isDniLite [deleted] => isBool [date_add] => isDateFormat [date_upd] => isDateFormat ) [fieldsRequiredLang:protected] => Array ( ) [fieldsSizeLang:protected] => Array ( ) [fieldsValidateLang:protected] => Array ( ) [tables:protected] => Array ( ) [image_dir:protected] => [image_format:protected] => jpg [def:protected] => Array ( [table] => address [primary] => id_address [fields] => Array ( [id_customer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_manufacturer] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_supplier] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_warehouse] => Array ( [type] => 1 [validate] => isNullOrUnsignedId [copy_post] => ) [id_country] => Array ( [type] => 1 [validate] => isUnsignedId [required] => 1 ) [id_state] => Array ( [type] => 1 [validate] => isNullOrUnsignedId ) [alias] => Array ( [type] => 3 [validate] => isGenericName [required] => 1 [size] => 32 ) [company] => Array ( [type] => 3 [validate] => isGenericName [size] => 64 ) [lastname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [firstname] => Array ( [type] => 3 [validate] => isName [required] => 1 [size] => 32 ) [vat_number] => Array ( [type] => 3 [validate] => isGenericName ) [address1] => Array ( [type] => 3 [validate] => isAddress [required] => 1 [size] => 128 ) [address2] => Array ( [type] => 3 [validate] => isAddress [size] => 128 ) [postcode] => Array ( [type] => 3 [validate] => isPostCode [size] => 12 ) [city] => Array ( [type] => 3 [validate] => isCityName [required] => 1 [size] => 64 ) [other] => Array ( [type] => 3 [validate] => isMessage [size] => 300 ) [phone] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [phone_mobile] => Array ( [type] => 3 [validate] => isPhoneNumber [size] => 32 ) [dni] => Array ( [type] => 3 [validate] => isDniLite [size] => 16 ) [deleted] => Array ( [type] => 2 [validate] => isBool [copy_post] => ) [date_add] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) [date_upd] => Array ( [type] => 5 [validate] => isDateFormat [copy_post] => ) ) [classname] => Address ) [update_fields:protected] => [force_id] => ) [invoice_state] => [formattedAddresses] => Array ( [delivery] => Array ( [ordered] => Array ( [0] => firstname lastname [1] => company [2] => vat_number [3] => address1 [4] => address2 [5] => postcode city [6] => Country:name [7] => phone [8] => phone_mobile ) [formated] => Array ( [firstname] => [lastname] => [company] => [vat_number] => [address1] => [address2] => [postcode] => [city] => [Country:name] => [phone] => [phone_mobile] => ) [object] => Array ( [deleted] => 0 [force_id] => ) ) [invoice] => Array ( [ordered] => Array ( [0] => firstname lastname [1] => company [2] => vat_number [3] => address1 [4] => address2 [5] => postcode city [6] => Country:name [7] => phone [8] => phone_mobile ) [formated] => Array ( [firstname] => [lastname] => [company] => [vat_number] => [address1] => [address2] => [postcode] => [city] => [Country:name] => [phone] => [phone_mobile] => ) [object] => Array ( [deleted] => 0 [force_id] => ) ) ) [products] => Array ( ) [gift_products] => Array ( ) [discounts] => Array ( ) [is_virtual_cart] => 0 [total_discounts] => 0 [total_discounts_tax_exc] => 0 [total_wrapping] => 0 [total_wrapping_tax_exc] => 0 [total_shipping] => 0 [total_shipping_tax_exc] => 0 [total_products_wt] => 0 [total_products] => 0 [total_price] => 0 [total_tax] => 0 [total_price_without_tax] => 0 [is_multi_address_delivery] => [free_ship] => 1 [carrier] => Carrier Object ( [id_reference] => [name] => [url] => [delay] => [active] => 1 [deleted] => 0 [shipping_handling] => 1 [range_behavior] => [is_module] => [is_free] => [shipping_method] => 1 [shipping_external] => 0 [external_module_name] => [need_range] => 0 [position] => [max_width] => [max_height] => [max_depth] => [max_weight] => [grade] => [webserviceParameters:protected] => Array ( [fields] => Array ( [deleted] => Array ( ) [is_module] => Array ( ) [id_tax_rules_group] => Array ( [getter] => getIdTaxRulesGroup [setter] => setTaxRulesGroup [xlink_resource] => Array ( [resourceName] => tax_rule_groups ) ) ) ) [id] => [id_lang:protected] => 1 [id_shop:protected] => 1 [id_shop_list] => [get_shop_from_context:protected] => 1 [table:protected] => carrier [identifier:protected] => id_carrier [fieldsRequired:protected] => Array ( [0] => name [1] => active ) [fieldsSize:protected] => Array ( [name] => 64 [grade] => 1 [external_module_name] => 64 ) [fieldsValidate:protected] => Array ( [name] => isCarrierName [active] => isBool [is_free] => isBool [url] => isAbsoluteUrl [shipping_handling] => isBool [range_behavior] => isBool [shipping_method] => isUnsignedInt [max_width] => isUnsignedInt [max_height] => isUnsignedInt [max_depth] => isUnsignedInt [max_weight] => isFloat [grade] => isUnsignedInt [is_module] => isBool [deleted] => isBool ) [fieldsRequiredLang:protected] => Array ( [0] => delay ) [fieldsSizeLang:protected] => Array ( [delay] => 128 ) [fieldsValidateLang:protected] => Array ( [delay] => isGenericName ) [tables:protected] => Array ( ) [image_dir:protected] => /home/karsilla/domains/karsillahome.pl/public_html/img/s/ [image_format:protected] => jpg [def:protected] => Array ( [table] => carrier [primary] => id_carrier [multilang] => 1 [multilang_shop] => 1 [fields] => Array ( [id_reference] => Array ( [type] => 1 ) [name] => Array ( [type] => 3 [validate] => isCarrierName [required] => 1 [size] => 64 ) [active] => Array ( [type] => 2 [validate] => isBool [required] => 1 ) [is_free] => Array ( [type] => 2 [validate] => isBool ) [url] => Array ( [type] => 3 [validate] => isAbsoluteUrl ) [shipping_handling] => Array ( [type] => 2 [validate] => isBool ) [shipping_external] => Array ( [type] => 2 ) [range_behavior] => Array ( [type] => 2 [validate] => isBool ) [shipping_method] => Array ( [type] => 1 [validate] => isUnsignedInt ) [max_width] => Array ( [type] => 1 [validate] => isUnsignedInt ) [max_height] => Array ( [type] => 1 [validate] => isUnsignedInt ) [max_depth] => Array ( [type] => 1 [validate] => isUnsignedInt ) [max_weight] => Array ( [type] => 4 [validate] => isFloat ) [grade] => Array ( [type] => 1 [validate] => isUnsignedInt [size] => 1 ) [external_module_name] => Array ( [type] => 3 [size] => 64 ) [is_module] => Array ( [type] => 2 [validate] => isBool ) [need_range] => Array ( [type] => 2 ) [position] => Array ( [type] => 1 ) [deleted] => Array ( [type] => 2 [validate] => isBool ) [delay] => Array ( [type] => 3 [lang] => 1 [validate] => isGenericName [required] => 1 [size] => 128 ) ) [classname] => Carrier [associations] => Array ( [l] => Array ( [type] => 2 [field] => id_carrier [foreign_field] => id_carrier ) ) ) [update_fields:protected] => [force_id] => ) )
212. $this->_assignSummaryInformations();
213. $this->setTemplate(_PS_THEME_DIR_.'order-payment.tpl');
214. break;
215.
216. default:
217. $this->_assignSummaryInformations();
218. $this->setTemplate(_PS_THEME_DIR_.'shopping-cart.tpl');
219. break;
220. }
221. }
222.
175.
176. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className)))
177. $this->initHeader();
178.
179. if ($this->viewAccess())
180. $this->initContent();
181. else
182. $this->errors[] = Tools::displayError('Access denied.');
183.
184. if (!$this->content_only && ($this->display_footer || (isset($this->className) && $this->className)))
185. $this->initFooter();
368. // Execute hook dispatcher
369. if (isset($params_hook_action_dispatcher))
370. Hook::exec('actionDispatcher', $params_hook_action_dispatcher);
371.
372. // Running controller
373. $controller->run();
374. }
375. catch (PrestaShopException $e)
376. {
377. $e->displayMessage();
378. }
37. @fwrite($plik, date("Y-m-d H:i:s") . " - {$protocol}://{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']} - {$_SERVER['REMOTE_ADDR']} - {$host} - {$_SERVER['HTTP_REFERER']}\r\n");
38. @fclose($plik);
39. }
40.
41. require(dirname(__FILE__).'/config/config.inc.php');
42. Dispatcher::getInstance()->dispatch();