thierry68 Posted May 3, 2013 Share Posted May 3, 2013 (edited) Bonsoir, Je construis ma boutique sur Prestashop. En voulant compléter le Récapitulatif : (apparaît dans les listes de produits et sur le haut de la page du produit), voila le message d'erreur ......... Qui pourrait m'expliquer ? Property Product->description_short length (1551) must be between 0 and 800 at line 872 in file classes/ObjectModel.php 866. 867. $message = $this->validateField($field, $value, $id_lang); 868. if ($message !== true) 869. { 870. if ($die) 871. throw new PrestaShopException($message); 872. return $error_return ? $message : false; 873. } 874. } 875. } 876. ObjectModelCore->validateFieldsLang - [line 660 - classes/Product.php] - [2 Arguments] · 654. $limit = (int)Configuration::get('PS_PRODUCT_SHORT_DESC_LIMIT'); · 655. if ($limit <= 0) · 656. $limit = 800; · 657. $this->def['fields']['description_short']['size'] = $limit; · 658. · 659. return parent::validateFieldsLang($die, $error_return); · 660. } · 661. · 662. public function toggleStatus() · 663. { · 664. //test if the product is active and if redirect_type is empty string and set default value to id_product_redirected & redirect_type · Argument [0] · 1 · Argument [1] · ProductCore->validateFieldsLang - [line 305 - classes/ObjectModel.php] - [0 Argument] · 299. { · 300. // Retrocompatibility · 301. if (method_exists($this, 'getTranslationsFieldsChild')) · 302. return $this->getTranslationsFieldsChild(); · 303. · 304. $this->validateFieldsLang(); · 305. $is_lang_multishop = $this->isLangMultishop(); · 306. · 307. $fields = array(); · 308. if ($this->id_lang === null) · 309. foreach (Language::getLanguages(false) as $language) ObjectModelCore->getFieldsLang - [line 637 - classes/ObjectModel.php] - [0 Argument] · 631. } · 632. · 633. // Database update for multilingual fields related to the object · 634. if (isset($this->def['multilang']) && $this->def['multilang']) · 635. { · 636. $fields = $this->getFieldsLang(); · 637. if (is_array($fields)) · 638. { · 639. foreach ($fields as $field) · 640. { · 641. foreach (array_keys($field) as $key) ObjectModelCore->update - [line 492 - classes/Product.php] - [1 Arguments] · 486. return true; · 487. } · 488. · 489. public function update($null_values = false) · 490. { · 491. $return = parent::update($null_values); · 492. $this->setGroupReduction(); · 493. Hook::exec('actionProductSave', array('id_product' => $this->id)); · 494. return $return; · 495. } · 496. · Argument [0] · ProductCore->update - [line 1688 - controllers/admin/AdminProductsController.php] - [0 Argument] · 1682. $object->indexed = 0; · 1683. · 1684. if (Shop::isFeatureActive() && Shop::getContext() != Shop::CONTEXT_SHOP) · 1685. $object->setFieldsToUpdate((array)Tools::getValue('multishop_check')); · 1686. · 1687. if ($object->update()) · 1688. { · 1689. if (in_array($this->context->shop->getContext(), array(Shop::CONTEXT_SHOP, Shop::CONTEXT_ALL))) · 1690. { · 1691. if ($this->isTabSubmitted('Shipping')) · 1692. $this->addCarriers(); AdminProductsControllerCore->processUpdate - [line 626 - classes/controller/AdminController.php] - [0 Argument] · 620. public function processSave() · 621. { · 622. if ($this->id_object) · 623. { · 624. $this->object = $this->loadObject(); · 625. return $this->processUpdate(); · 626. } · 627. else · 628. return $this->processAdd(); · 629. } · 630. AdminControllerCore->processSave - [line 541 - classes/controller/AdminController.php] - [0 Argument] · 535. { · 536. // Hook before action · 537. Hook::exec('actionAdmin'.ucfirst($this->action).'Before', array('controller' => $this)); · 538. Hook::exec('action'.get_class($this).ucfirst($this->action).'Before', array('controller' => $this)); · 539. // Call process · 540. $return = $this->{'process'.Tools::toCamelCase($this->action)}(); · 541. // Hook After Action · 542. Hook::exec('actionAdmin'.ucfirst($this->action).'After', array('controller' => $this, 'return' => $return)); · 543. Hook::exec('action'.get_class($this).ucfirst($this->action).'After', array('controller' => $this, 'return' => $return)); · 544. · 545. return $return; AdminControllerCore->postProcess - [line 1171 - controllers/admin/AdminProductsController.php] - [0 Argument] · 1165. * @return void · 1166. */ · 1167. public function postProcess() · 1168. { · 1169. if (!$this->redirect_after) · 1170. parent::postProcess(); · 1171. · 1172. if ($this->display == 'edit' || $this->display == 'add') · 1173. { · 1174. $this->addjQueryPlugin(array( · 1175. 'autocomplete', AdminProductsControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] · 152. // setMedia MUST be called before postProcess · 153. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) · 154. $this->setMedia(); · 155. · 156. // postProcess handles ajaxProcess · 157. $this->postProcess(); · 158. · 159. if (!empty($this->redirect_after)) · 160. $this->redirect(); · 161. · 162. if (!$this->content_only && ($this->display_header || (isset($this->className) && $this->className))) ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] · 342. // Execute hook dispatcher · 343. if (isset($params_hook_action_dispatcher)) · 344. Hook::exec('actionDispatcher', $params_hook_action_dispatcher); · 345. · 346. // Running controller · 347. $controller->run(); · 348. } · 349. catch (PrestaShopException $e) · 350. { · 351. $e->displayMessage(); · 352. } DispatcherCore->dispatch - [line 50 - adminTH68/index.php] - [0 Argument] Edited May 3, 2013 by thierry68 (see edit history) Link to comment Share on other sites More sharing options...
thierry68 Posted May 3, 2013 Author Share Posted May 3, 2013 (edited) PS ) il fallait lire : " En voulant compléter." Edited May 3, 2013 by thierry68 (see edit history) Link to comment Share on other sites More sharing options...
emily_d Posted May 3, 2013 Share Posted May 3, 2013 Property Product->description_short length (1551) must be between 0 and 800 A priori la description est trop longue, diminue le texte à moins de 800 caractères. Quelle version de Prestashop utilises-tu ? Dans la 1.5.4.1, y a pas d'exception juste un petit message en rouge : "Maximum 400 caractères : -96230" 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