Jump to content

[PrestaShopException] Property Product->description_short length (611) must be between 0 and 500


Recommended Posts

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

post-270939-0-22379600-1359626449_thumb.png

post-270939-0-72052800-1359626463_thumb.png

post-270939-0-86239800-1359626475_thumb.png

  • Like 1
Link to comment
Share on other sites

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 by thinks (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

(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.

Any help would be much appreciated!

Edited by Midtown (see edit history)
  • Like 1
Link to comment
Share on other sites

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 by sso (see edit history)
  • Like 1
Link to comment
Share on other sites

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

(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!

  • Like 1
Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...

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

  • 2 months later...
×
×
  • Create New...