Bonjovi67 Posted January 9, 2018 Share Posted January 9, 2018 Hello, I have some costumers (not all) that can not checkout out their ordrer and get a 500 error message to contact the site administrator at the checkout page. When i check the log file prestashop admin i see errors like this, but there is no error in the webserver log. Anyone that have any idea about what is wrong ? [500] error\n\n #psException{font-family: Verdana; font-size: 14px}\n #psException h2{color: #F20000}\n #psException p{padding-left: 20px}\n #psException ul li{margin-bottom: 10px}\n #psException a{font-size: 12px; color: #000000}\n #psException .psTrace, #psException .psArgs{display: none}\n #psException pre{border:1px solid #236B04; background-color:#EAFEE1; padding:5px; font-family:Courier;\n width: 99%; overflow-x: auto; margin-bottom: 30px;}\n #psException .psArgs pre{background-color: #F1FDFE;}\n #psException pre .selected{color: #F20000; font-weight: bold;}\n [PrestaShopException]Property Address->postcode is not validat line 909 in file classes/ObjectModel.php904. }\n905. \n906. $message = $this->validateField($field, $this->$field);\n907. if ($message !== true) {\n908. if ($die) {\n909. throw new PrestaShopException($message);\n910. }\n911. return $error_return ? $message : false;\n912. }\n913. }\n914. \nObjectModelCore->validateFields - [line 246 - classes/ObjectModel.php]241. * @return array All object fields\n242. * @throws PrestaShopException\n243. */\n244. public function getFields()\n245. {\n246. $this->validateFields();\n247. $fields = $this->formatFields(self::FORMAT_COMMON);\n248. \n249. // For retro compatibility\n250. if (Shop::isTableAssociated($this->def[\'table\'])) {\n251. $fields = array_merge($fields, $this->getFieldsShop());\nObjectModelCore->getFields - [line 652 - classes/ObjectModel.php]647. \n648. if (Shop::checkIdShopDefault($this->def[\'table\']) && !$this->id_shop_default) {\n649. $this->id_shop_default = (in_array(Configuration::get(\'PS_SHOP_DEFAULT\'), $id_shop_list) == true) ? Configuration::get(\'PS_SHOP_DEFAULT\') : min($id_shop_list);\n650. }\n651. // Database update\n652. if (!$result = Db::getInstance()->update($this->def[\'table\'], $this->getFields(), \'`\'.pSQL($this->def[\'primary\']).\'` = \'.(int)$this->id, 0, $null_values)) {\n653. return false;\n654. }\n655. \n656. // Database insertion for multishop fields related to the object\n657. if (Shop::isTableAssociated($this->def[\'table\'])) {\nObjectModelCore->update - [line 195 - classes/Address.php] - [1 Arguments]190. \n191. if (Validate::isUnsignedId($this->id_customer)) {\n192. Customer::resetAddressCache($this->id_customer, $this->id);\n193. }\n194. \n195. return parent::update($null_values);\n196. }\n197. \n198. /**\n199. * @see ObjectModel::delete()\n200. */\nArgument [0]\n\nAddressCore->update - [line 4656 - modules/onepagecheckoutps/onepagecheckoutps.php]4651. $this->context->cart->id_address_delivery = $id_address_delivery;\n4652. \n4653. if ($this->config_vars[\'OPC_USE_SAME_NAME_CONTACT_DA\']) {\n4654. $address_delivery->firstname = $customer->firstname;\n4655. $address_delivery->lastname = $customer->lastname;\n4656. $address_delivery->update();\n4657. }\n4658. \n4659. if (!$this->context->cart->update()) {\n4660. $this->errors[] = $this->l(\'An error occurred while updating your cart.\');\n4661. }\nOnePageCheckoutPS->loadAddress - [line 720 - override/controllers/front/OrderOpcController.php]715. } elseif (method_exists($this->onepagecheckoutps, $action)) {\n716. switch ($data_type) {\n717. case \'html\':\n718. die($this->onepagecheckoutps->$action());\n719. case \'json\':\n720. $response = $this->onepagecheckoutps->jsonEncode($this->onepagecheckoutps->$action());\n721. die($response);\n722. default:\n723. die(\'Invalid data type.\');\n724. }\n725. } else {\nOrderOpcController->postProcess - [line 178 - classes/controller/Controller.php]173. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) {\n174. $this->setMedia();\n175. }\n176. \n177. // postProcess handles ajaxProcess\n178. $this->postProcess();\n179. \n180. if (!empty($this->redirect_after)) {\n181. $this->redirect();\n182. }\n183. \nControllerCore->run - [line 335 - override/classes/Dispatcher.php]330. try\n331. {\n332. $controller = Controller::getController($controller_class);\n333. if (isset($params_hook_action_dispatcher))\n334. Hook::exec(\'actionDispatcher\', $params_hook_action_dispatcher);\n335. $controller->run();\n336. if ($this->_isPageCacheActive())\n337. {\n338. PageCache::displayStats(false, $pre_display_html);\n339. }\n340. }\nDispatcher->dispatch_16 - [line 107 - override/classes/Dispatcher.php]102. * date: 2017-06-01 00:44:10\n103. * version: 4.02\n104. */\n105. public function dispatch() {\n106. if (Tools::version_compare(_PS_VERSION_,\'1.6\',\'>=\')) {\n107. $this->dispatch_16();\n108. } else {\n109. $this->dispatch_15();\n110. }\n111. }\n112. /*\nDispatcher->dispatch - [line 28 - index.php]23. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)\n24. * International Registered Trademark & Property of PrestaShop SA\n25. */\n26. \n27. require(dirname(__FILE__).\'/config/config.inc.php\');\n28. Dispatcher::getInstance()->dispatch();\n\n\n{\"url_call\":\"https://e-tech.dk/quick-order?rand=1515498148131\",\"is_ajax\":1,\"action\":\"loadAddress\",\"delivery_id\":0,\"invoice_id\":0,\"dataType\":\"json\",\"async\":true,\"token\":\"ee00c2e36a18457ba96d95d8e21f6835\",\"navigator\":\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36 Edge/15.15063\"}\n----------------------------------------------------------------\n\n Link to comment Share on other sites More sharing options...
prestamonste Posted January 10, 2018 Share Posted January 10, 2018 Hi there, I saw in your message, this is error: Address->postcode is not validate. Maybe postcode field is empty or invalid. Please double check this field. Thanks, Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now