Jump to content

Error when deleting Carrier - Urgent


Recommended Posts

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;

 

Ho can I solve this

Link to comment
Share on other sites

  • 4 weeks later...

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 fields
    261. */
    262. public function getFields()
    263. {
    264. $this->validateFields();
    265. $fields = $this->formatFields(self::FORMAT_COMMON);
    266.
    267. // For retro compatibility
    268. 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 update
    598. 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 object
    602. 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 action
    535. 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 process
    538. $return = $this->{'process'.Tools::toCamelCase($this->action)}();
    539. // Hook After Action
    540. 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 dispatcher
    49. Dispatcher::getInstance()->dispatch();

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 2 years later...
×
×
  • Create New...