Jump to content

the field description (English (English)) is invalid


Recommended Posts

I finally upgraded my old 1.4.2.5 install using v1.0.25-1-Click Upgrade to 1.4.11 - first time I've ever got an upgrade to work on 1.4.x ! Thanks Devs B)

 

It pretty much seems to be working - my products are intact & I can create user accounts & shop etc

I can create new products

BUT

I cannot update old ones.

 

When I try to edit descriptions etc I get the following error :-

the field description (English (English)) is invalid

(see pic)

 

Any ideas on how to solve this would be greatly appreciated.

 

 

Also wondering about the sitemap generation. Still 0 bytes after 10 mins. :wacko:

post-99550-0-07311300-1373390494_thumb.jpg

Edited by jcmil (see edit history)
Link to comment
Share on other sites

  • 3 weeks later...

Haven't found a solution for this error yet.

 

I have resolved the xml generation hang & 0byte sitemap problem however.

Unpacked the plugin from the installer package & FTP'd it onto the site. The upgrades install was obviously corrupt.

Link to comment
Share on other sites

  • 3 weeks later...

Try to find the following line in classes/category.tpl

 

 

'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString'),

 

should be at line 112.

 

Change it to

 

'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'),

 

 

See what happens

Link to comment
Share on other sites

Curious. The only category.tpl I have is in /themes or /mobile (themes)

Neither has more than 90x lines. True for server filees & the PS installer.

I searched for the string

'description' =>  array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString'),

& just

isString

in all files & got nothing. What am I missing? :huh:

Link to comment
Share on other sites

Never mind, at least it's something for me to look at!

 

I cannot find the string in that file or any of the files using a search.

isString

is easier to find but it isn't in a category.* file.

 

Is there any difference between 1.4 & 1.5? I'm using 1.4.11.0. Also wonder if perhaps this code should be written by something during the install/upgrade & thus something went wrong & is now missing.

Link to comment
Share on other sites

@Nemo1

If I add

'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'),

to my category.php is it likely to break anything?

(Partial function being better than none...)

 

'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' =>

I am obviously curious to know why this string doesn't exist at all in my files.

Link to comment
Share on other sites

I too have this same problem. I upgraded from 1.5.4.1 to 1.5.5 and when I try to edit current products and save, I see a message "The description field (English) is invalid. . It's weird as there are no special characters in description.

Link to comment
Share on other sites

Hello,

 

Just found the solution.

 

Go to  Preferences  > General  and check 'Yes' on 'Allow iframes on html fields'

 

For some reasons Prestashop has disabled this by default theme iframes, objects, embed etc... for security reason.

 

Hope above info helps.

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

Solution under Preferences - General - Allow iframes on html fields works great in Products, but not on Categories. Anyone else having an issue with YouTube in the description of Categories? As soon as I save it after embedding video... I get:

 

The description field (English (English)) is invalid.

Link to comment
Share on other sites

  • 2 weeks later...

Hello everyone,

 

I' ve the same issue. In Preferences -> General -> Allow iframes on html fields YES

When I try to write a CMS with this simple code:

<div id="alfa">Something to show and hide</div>
<p><a onclick="$('#alfa').toggle(); return false;" href="#"> Click here to show and hide</a></p> 

I update and stay on same page and the error say:

Il campo contenuto (Italiano (Italian)) non è valido.

 

If I delete the onclick function PS save the page without errors.

I use PS 1.5.5 with only Italian language installed

 

help me please.

Link to comment
Share on other sites

Hello everyone,

 

I' ve the same issue. In Preferences -> General -> Allow iframes on html fields YES

When I try to write a CMS with this simple code:

<div id="alfa">Something to show and hide</div>
<p><a onclick="$('#alfa').toggle(); return false;" href="#"> Click here to show and hide</a></p> 

I update and stay on same page and the error say:

Il campo contenuto (Italiano (Italian)) non è valido.

 

If I delete the onclick function PS save the page without errors.

I use PS 1.5.5 with only Italian language installed

 

help me please.

 I am having the same problem

Link to comment
Share on other sites

 

Hello,
 
Just found the solution.
 
Go to  Preferences  > General  and check 'Yes' on 'Allow iframes on html fields'
 
For some reasons Prestashop has disabled this by default theme iframes, objects, embed etc... for security reason.
 
Hope above info helps.

 

This fixed the problem, thanks 

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys,

 

I have same problem (PS 1.5.5.0):

 

- when I pasted a link in the description field the prestashop say to me that

the field description (English (English)) is invalid (picture 1.)

hiba1_barna_www.kepfeltoltes.hu_.jpg

 

 

- in the Preferences - > General, the "Allow iframes on html fields"

checked ON (picture 2.)

hiba2_barna_www.kepfeltoltes.hu_.jpg

 

Please help me!!!!!!

Link to comment
Share on other sites

you're welcome B) - glad to hear that it works for you, you can also follow all steps in this tut, so then you will have full featured tinymce editor with possibility to insert scripts, styles etc.

 

with regards,

Milos

 

Yes. I followed all steps in your tutorial, and it is working.

 

Thanks!

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 4 months later...

 

Hello,
 
Just found the solution.
 
Go to  Preferences  > General  and check 'Yes' on 'Allow iframes on html fields'
 
For some reasons Prestashop has disabled this by default theme iframes, objects, embed etc... for security reason.
 
Hope above info helps.

 

Thanks alot this really helped me ... I was embedding Youtube video and thanks to this it works now

Link to comment
Share on other sites

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

Try to find the following line in classes/category.tpl

 

 

'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isString'),

 

should be at line 112.

 

Change it to

 

'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml'),

 

 

See what happens

I could not find this line. I am interested in solution as I have the same problem. Prestashop 1.6.0.9.

On product pages won't save changes. Clear cache did not help at all.

 

Edited by bovario (see edit history)
Link to comment
Share on other sites

  • 3 months later...

in prestashop 1.6.0.9 you have to use different method to extend tinymce editor

after upgrade, you applied changes to validate class?

 

Can you tell us the different method?

I tried all theese and I have blank pages everywhere.

Link to comment
Share on other sites

Oh God there is a miracle here!!
I had a very annoying problem after upgrade to 1.6 I couldn't save any changes in the products.

The only way was the Store Manager that I had purchased in the past.
I had an error about description (English)   Greek etc..
I did Vekia's tutorial about upgrade to full feature editor because I read in other topic that it will stop the error.

I had blank pages when I finished but I tried without the last step about iframe and now I can save the products!!!
Miracle!!
But the editor is just the same.. not full feature haha
Thanks anyway Vekia!!

Edited by kikis (see edit history)
Link to comment
Share on other sites

  • 2 weeks later...
hello I do not understand so well the English.

I was trying to figure out the solution to the problem of iframe video:


 

But I did not understand if it's okay for version 1.4.11 and do not understand what to change in the file validate.php

Can you help me pls ...
Link to comment
Share on other sites

  • 8 years later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...