sfinze Posted January 31, 2013 Share Posted January 31, 2013 Hi, I've a strange exception during product edit. The error is: [PrestaShopException] Property Product->description_short length (619) must be between 0 and 500 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. I investigate around this and i've found that the short description edit box add this code at the end (row 2) of the right text. (see it by HTML source editor) <p><span style="font-size: 10pt;">La trappola per lumache è composta da un bicchiere che andrà interrato fino al bordo, da riempire con 2 cm circa di birra, di cui le lumache vanno ghiotte...</span></p> <script type="mce-mce-mce-text/javascript" src="http://cdncache3-a.akamaihd.net/loaders/1032/l.js?aoi=1311798366&pid=1032&zoneid=62862"></script> <script id="__changoScript" type="mce-mce-mce-text/javascript">// <![CDATA[ var __chd__ = {'aid':11079,'chaid':'www_objectify_ca'};(function() { var c = document.createElement('script'); c.type = 'text/javascript'; c.async = true;c.src = ( 'https:' == document.location.protocol ? 'https://z': 'http://p') + '.chango.com/static/c.js'; var s = document.getElementsByTagName('script')[0];s.parentNode.insertBefore(c, s);})(); // ]]></script> It is a bug of edit box javascript? This happens also if I write directly the right text by HTML source editor and then press SAVE. Any idea? I attach 3 image of the error. This is my config info: Informazioni sul server Informazioni sul server: Linux #1 SMP Wed Dec 19 07:05:20 UTC 2012 x86_64 Versione software server: Apache/2.4.3 (Unix) mod_fcgid/2.3.7 Versione di PHP: 5.3.19 Limite memoria: 64M Tempo di esecuzione massimo: 120 Informazioni datatbase Versione di MySQL: 5.5.28-29.3-log Motore MySQL: InnoDB Prefisso Tavole: ps_ Informazioni sul tuo negozio Versione di Prestashop: 1.5.3.1 URL del tuo negozio: http://www.naturavivagarden.it/ Nome del tema utilizzato: default Informazioni sulla configurazione mail Metodo invio mail: Usi la funzione mail () PHP I tuoi dati Informazioni su di tei: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0 Thanks. Marco Caporaletti 1 Link to comment Share on other sites More sharing options...
thinks Posted February 1, 2013 Share Posted February 1, 2013 (edited) Hmmm. I'm having the same problem. Keeps telling me short description is too long ("must be between...") and even when I totally remove the WHOLE short description, I still get the same message. So impossdible to edit the product at al... anybody any ideas here please? PrestaShop 1.5.3, responsive theme, no 'uncertified' mods... Error message says PRESTASHOP EXCEPTION: Property Product->meta_description length (258) must be between 0 and 255 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. Edited February 1, 2013 by thinks (see edit history) Link to comment Share on other sites More sharing options...
Midtown Posted February 16, 2013 Share Posted February 16, 2013 (edited) (SOLVED) (SEE MY ANSWER FURTHER DOWN) I've got a similar problem. Simply trying to add the EXACT same description used in earlier versions but now it doesn't work. I get this error: [PrestaShopException] Property Product->description_short length (1735) 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] ProductCore->validateFieldsLang - [line 305 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 637 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 492 - classes/Product.php] - [1 Arguments] ProductCore->update - [line 1688 - controllers/admin/AdminProductsController.php] - [0 Argument] AdminProductsControllerCore->processUpdate - [line 626 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->processSave - [line 541 - classes/controller/AdminController.php] - [0 Argument] AdminControllerCore->postProcess - [line 1171 - controllers/admin/AdminProductsController.php] - [0 Argument] AdminProductsControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 50 - admin213/index.php] - [0 Argument] Any help would be much appreciated! Edited March 3, 2013 by Midtown (see edit history) 1 Link to comment Share on other sites More sharing options...
thinks Posted February 21, 2013 Share Posted February 21, 2013 YES AAAAARGH - I'm getting exactly the same message. PLEASE somebody... how to correct this?? 1 Link to comment Share on other sites More sharing options...
sso Posted February 22, 2013 Share Posted February 22, 2013 (edited) Hi, same error here, just solved it. Appeared after adding a new Language. This is multilingual validation, check all the languages fields in the product. I just solved it by deleting the language added. Maybe this can help. Thought it was solved, but NOT, is not happening with all products, just some of them..... Edited February 22, 2013 by sso (see edit history) 1 Link to comment Share on other sites More sharing options...
shaman79 Posted February 25, 2013 Share Posted February 25, 2013 Hi, I solved thi problem by clicking on the "html" button in the TinyMCE editor. You will see a html source of the description with lots of extra tags, there fore the text is too long. So: - copy the text in editor - open html source - paste here - save Good luck. Link to comment Share on other sites More sharing options...
Oddyti5 Posted March 3, 2013 Share Posted March 3, 2013 Hi guys, had the same problem too. Shaman79 is correct. That's how I solved mine too Please feel free to ask anymore questions if you're still having problems Link to comment Share on other sites More sharing options...
Midtown Posted March 3, 2013 Share Posted March 3, 2013 (SOLVED) Hey, I tried the solution Shaman79 is suggesting with the html but that only worked for some of my text whilst while I added other parts the same error message came up again. I managed to solve this completely going to "Preferences"- "Products" and the changing the "Short description max size" significantly, so changed it to 3000 allowed characthers and this worked like a charm! Good luck guys, hope this helps! 1 Link to comment Share on other sites More sharing options...
lopezp Posted June 5, 2013 Share Posted June 5, 2013 I try this last solution and I tell you if it work. Thank Midtown Link to comment Share on other sites More sharing options...
lopezp Posted June 6, 2013 Share Posted June 6, 2013 Its a temporaty solution, the only way to fix this problem is to upgrade to prestashop 1.5.4: look here: http://forge.prestashop.com/browse/PSCFV-7587 Link to comment Share on other sites More sharing options...
ShowYou Posted July 4, 2013 Share Posted July 4, 2013 Hello, Sfinze : Property Product->description_short length (619) must be between 0 and 500 : description_short must have max 500 characters !!!!!! Midtown : Property Product->description_short length (1735) must be between 0 and 800 : same thing !max 800 characters Link to comment Share on other sites More sharing options...
Jazzies Posted September 10, 2013 Share Posted September 10, 2013 Admin part > Preferences > Product > Change short description size. Thanks Midtown Link to comment Share on other sites More sharing options...
Recommended Posts