Jump to content

[Solved] Legend to long?????


Recommended Posts

I get this error when i try to add a photo into the produkt profile...

 

[the field legend (Français (French)) is too long (64 chars max)

the field legend (Deutsch (German)) is too long (64 chars max)

the field legend (Español (Spanish)) is too long (64 chars max)

the field legend (Nederlands (Dutch)) is too long (64 chars max)

the field legend (Bahasa Indonesia (Indonesian)) is too long (64 chars max)

the field legend (Italiano (Italian)) is too long (64 chars max)

the field legend (Język polski (Polish)) is too long (64 chars max)

the field legend (Português (Portuguese)) is too long (64 chars max)

the field legend (Četina (Czech)) is too long (64 chars max)

the field legend (Pусский язык (Russian)) is too long (64 chars max)

the field legend (Türkçe (Turkish)) is too long (64 chars max)

the field legend (Tiếng Việt (Vietnamese)) is too long (64 chars max)

the field legend (Danish) is too long (64 chars max) ]

 

I can't solve the problem by my self, can somebody give me a hint to solve it? I can't do so much before this is solved.

 

I have tried to make the discription shorter also the picture name but it does not work?

 

Please help me...

 

Sincerly Lars from Denmark

Link to comment
Share on other sites

The legend is duplicated from the product name, which is obviously over 64 chars

 

you have 2 Options for this

 

1) in your MYSQL DB table 'ps_image_lang' the field 'legend' is set to 64 varchar change this value to suit, i.e. set the value to 255

 

2) You will notice when you insert a product there are several tabs, when you finish inserting the products '1.information' tab don't press 'save product properties' instead move on to the next tab '2.images' 

then manually enter you 'legend' (image caption) to avoid automatically auto filling this field in, hope that helps  ;)

 

also not sure if this helps but are all those languages really necessary?

I just use English & have deleted the rest to save the confusion in the admin, unless you are displaying the site in different languages just select your default language & delete the rest

 

Go to 'Tools' >> 'Languages'

to the left of ID there should be a checkbox which selects all languages just deselect the language your use then delete selection, but remember not all translations are complete please see peter's post for further details  8)

http://www.prestashop.com/forum/index.php?topic=2123.msg11155

Link to comment
Share on other sites

  • 4 months later...

I'm running into this same problem. I have increased the database field to 255 and I've even gone so far as to change the "maxlength=64" to "maxlength=255" in the admin\tabs\AdminProducts.php page for the legend texboxes and I'm STILL receiving the legend error messages. I've tried to shorten the caption that displays in the box, but it's obviously ignoring what I type in there. Is the 64 hardcoded someplace else that I'm not finding?

Any further help on this is greatly appreciated,

Jenifer

Link to comment
Share on other sites

Hi everyone!

I see that everybody gave a piece of the complete solution so there's a summarization:


1. in your MYSQL DB table 'ps_image_lang' the field 'legend' is set to 64 varchar change this value to suit, i.e. set the value to 128



2. change the “maxlength=64” to “maxlength=128” in the admin\tabs\AdminProducts.php page for the legend texboxes



3. line 39 of “/classes/Image.php” has to be 128 instead of 64


Everything should works now ;-P
Link to comment
Share on other sites

  • 5 months later...
Hi everyone!

I see that everybody gave a piece of the complete solution so there's a summarization:


1. in your MYSQL DB table 'ps_image_lang' the field 'legend' is set to 64 varchar change this value to suit, i.e. set the value to 128



2. change the “maxlength=64” to “maxlength=128” in the admin\tabs\AdminProducts.php page for the legend texboxes



3. line 39 of “/classes/Image.php” has to be 128 instead of 64


Everything should works now ;-P



What about changing the 600 character limitation when i want to send a message to a customer from the back office regarding his order? i've tried modifying in AdminOrders.php at line 635 the numbers with 1600, but i still get the same error "field message is too long (600 chars max)"
What else should i modify to be able to send larger messages to my customers because 600 isn't enough

Help please
Link to comment
Share on other sites

×
×
  • Create New...