gr8web Posted June 7, 2013 Share Posted June 7, 2013 Hello, when I try to delete, change or even enabeling a carrier I get the following error Message: [PrestaShopException] Property Carrier->name length (82) must be between 0 and 64 at line 837 in file classes/ObjectModel.php 831. 832. $message = $this->validateField($field, $this->$field); 833. if ($message !== true) 834. { 835. if ($die) 836. throw new PrestaShopException($message); 837. return $error_return ? $message : false; 838. } 839. } 840. 841. return true; ObjectModelCore->validateFields - [line 265 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFields - [line 599 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 2699 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->processBulkDelete - [line 539 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->postProcess - [line 580 - controllers/admin/AdminCarriersController.php] - [0 Argument] AdminCarriersControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - edyxsoprcqesxkhs/index.php] - [0 Argument] Ho can I solve this Link to comment Share on other sites More sharing options...
Carlsen Posted June 8, 2013 Share Posted June 8, 2013 Hi Gr8web, A long shot, but try editing the carrier and see if you can update the name. If you can update the name, try and delete it afterwards. Link to comment Share on other sites More sharing options...
gr8web Posted June 8, 2013 Author Share Posted June 8, 2013 Hi, I have already tried this, but I get the same error when I try to change the name. Link to comment Share on other sites More sharing options...
ShowYou Posted July 4, 2013 Share Posted July 4, 2013 Hello gr8web, Property Carrier->name length (82) must be between 0 and 64 : The name of the carrier is too long, use max 64 characters ! 1 Link to comment Share on other sites More sharing options...
seomasterca Posted July 6, 2013 Share Posted July 6, 2013 Please help i am receving the same error [PrestaShopException] Property Carrier->name length (76) must be between 0 and 64 at line 837 in file classes/ObjectModel.php 831. 832. $message = $this->validateField($field, $this->$field); 833. if ($message !== true) 834. { 835. if ($die) 836. throw new PrestaShopException($message); 837. return $error_return ? $message : false; 838. } 839. } 840. 841. return true; ObjectModelCore->validateFields - [line 265 - classes/ObjectModel.php] - [0 Argument] 259. *260. * @return array All object fields261. */262. public function getFields()263. {264. $this->validateFields();265. $fields = $this->formatFields(self::FORMAT_COMMON);266. 267. // For retro compatibility268. if (Shop::isTableAssociated($this->def['table']))269. $fields = array_merge($fields, $this->getFieldsShop()); ObjectModelCore->getFields - [line 599 - classes/ObjectModel.php] - [0 Argument] 593. $id_shop_list = $this->id_shop_list;594. 595. if (Shop::checkIdShopDefault($this->def['table']) && !$this->id_shop_default)596. $this->id_shop_default = min($id_shop_list);597. // Database update598. if (!$result = ObjectModel::$db->update($this->def['table'], $this->getFields(), '`'.pSQL($this->def['primary']).'` = '.(int)$this->id, 0, $null_values))599. return false;600. 601. // Database insertion for multishop fields related to the object602. if (Shop::isTableAssociated($this->def['table']))603. { ObjectModelCore->update - [line 634 - classes/controller/AdminController.php] - [0 Argument] 628. 629. if (!$res)630. $this->errors[] = Tools::displayError('Unable to delete associated images.');631. 632. $object->deleted = 1;633. if ($object->update())634. $this->redirect_after = self::$currentIndex.'&conf=1&token='.$this->token;635. }636. elseif ($object->delete())637. $this->redirect_after = self::$currentIndex.'&conf=1&token='.$this->token;638. $this->errors[] = Tools::displayError('An error occurred during deletion.'); AdminControllerCore->processDelete - [line 539 - classes/controller/AdminController.php] - [0 Argument] 533. {534. // Hook before action535. Hook::exec('actionAdmin'.ucfirst($this->action).'Before', array('controller' => $this));536. Hook::exec('action'.get_class($this).ucfirst($this->action).'Before', array('controller' => $this));537. // Call process538. $return = $this->{'process'.Tools::toCamelCase($this->action)}();539. // Hook After Action540. Hook::exec('actionAdmin'.ucfirst($this->action).'After', array('controller' => $this, 'return' => $return));541. Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => $return));542. 543. return $return; AdminControllerCore->postProcess - [line 580 - controllers/admin/AdminCarriersController.php] - [0 Argument] AdminCarriersControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 349 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin-1363451492/index.php] - [0 Argument] 44. $_POST['controller'] = strtolower($_POST['tab']);45. if (!isset($_REQUEST['controller']) && isset($_REQUEST['tab']))46. $_REQUEST['controller'] = strtolower($_REQUEST['tab']);47. 48. // Prepare and trigger admin dispatcher49. Dispatcher::getInstance()->dispatch(); Link to comment Share on other sites More sharing options...
AngelSpeedy Posted August 6, 2013 Share Posted August 6, 2013 Hi, Just go to " /classes/Carrier.php " and change the number 64 to 200, and then you can already insert the name bigger. Cya.. 3 Link to comment Share on other sites More sharing options...
Frosenyatko Posted November 11, 2013 Share Posted November 11, 2013 Hi, Just go to " /classes/Carrier.php " and change the number 64 to 200, and then you can already insert the name bigger. Cya.. Thank you very much, a few days I could not solve this problem! Link to comment Share on other sites More sharing options...
ACV Posted December 14, 2015 Share Posted December 14, 2015 Thanks!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts