jcmil Posted July 9, 2013 Share Posted July 9, 2013 (edited) 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 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. Edited July 9, 2013 by jcmil (see edit history) Link to comment Share on other sites More sharing options...
jcmil Posted July 29, 2013 Author Share Posted July 29, 2013 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 More sharing options...
NemoPS Posted August 19, 2013 Share Posted August 19, 2013 Hi! Are you using any special character in your description? Link to comment Share on other sites More sharing options...
jcmil Posted August 19, 2013 Author Share Posted August 19, 2013 Thanks for reply Nemo1. No, the characters are all normal a-z latin. Only started after the upgrade. I assume it is a BO - DB issue. Link to comment Share on other sites More sharing options...
NemoPS Posted August 19, 2013 Share Posted August 19, 2013 At this point, try replacing the validate class with one from a fresh archive. Just replace validate.php in the /classes/ folder Link to comment Share on other sites More sharing options...
jcmil Posted August 21, 2013 Author Share Posted August 21, 2013 Thanks for the suggestion Nemo1 I have extracted/uploaded the file from the install package. Hasn't changed the behavior. Link to comment Share on other sites More sharing options...
NemoPS Posted August 21, 2013 Share Posted August 21, 2013 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 More sharing options...
jcmil Posted August 22, 2013 Author Share Posted August 22, 2013 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? Link to comment Share on other sites More sharing options...
NemoPS Posted August 22, 2013 Share Posted August 22, 2013 whoops. My fault, it's category.PHP, sorry :/ I must/ve been sleepy Link to comment Share on other sites More sharing options...
jcmil Posted August 22, 2013 Author Share Posted August 22, 2013 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 More sharing options...
jcmil Posted August 23, 2013 Author Share Posted August 23, 2013 @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 More sharing options...
Customize Posted August 30, 2013 Share Posted August 30, 2013 This is a definite bug that needs to be fixed. I installed a clean 1.4.11 and I have this error right off the bat. Link to comment Share on other sites More sharing options...
fpaul Posted September 2, 2013 Share Posted September 2, 2013 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 More sharing options...
fpaul Posted September 2, 2013 Share Posted September 2, 2013 When click on Modules, I see below message (screenshot). But when I refresh the page, that message disappears. But I am still not able to edit current products and save them. Link to comment Share on other sites More sharing options...
fpaul Posted September 3, 2013 Share Posted September 3, 2013 I am not able to save a product page after installing a youtube video by editing HTML code in Description. It gives the same message "The description field (English) is invalid." I think this is a bug in 1.5.5 1 Link to comment Share on other sites More sharing options...
fpaul Posted September 3, 2013 Share Posted September 3, 2013 (edited) 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 September 3, 2013 by fpaul (see edit history) 6 Link to comment Share on other sites More sharing options...
Customize Posted September 3, 2013 Share Posted September 3, 2013 Which version of PS are you using because I do not see that option under Preferences > General 1 Link to comment Share on other sites More sharing options...
fpaul Posted September 3, 2013 Share Posted September 3, 2013 I use 1.5.5 Link to comment Share on other sites More sharing options...
Customize Posted September 3, 2013 Share Posted September 3, 2013 Thanks for replying. I guess this option is not 1.4.11. I wonder if there is a manual workaround? 1 Link to comment Share on other sites More sharing options...
lob Posted September 5, 2013 Share Posted September 5, 2013 I have the same problem. I have a youtube video link in my product discription. When I delete the video everything is fine. The bug is in the medialink. Link to comment Share on other sites More sharing options...
fpaul Posted September 5, 2013 Share Posted September 5, 2013 Which PS version you are using ? Link to comment Share on other sites More sharing options...
zberg007 Posted September 6, 2013 Share Posted September 6, 2013 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 More sharing options...
Dreamway Posted September 17, 2013 Share Posted September 17, 2013 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 More sharing options...
dylanhf Posted September 18, 2013 Share Posted September 18, 2013 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 More sharing options...
elektrojo Posted September 21, 2013 Share Posted September 21, 2013 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 More sharing options...
gubtan Posted October 1, 2013 Share Posted October 1, 2013 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.) - in the Preferences - > General, the "Allow iframes on html fields" checked ON (picture 2.) Please help me!!!!!! Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 follow this: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change (only part related to "validate") 3 Link to comment Share on other sites More sharing options...
gubtan Posted October 1, 2013 Share Posted October 1, 2013 Great! Thanks! Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 Great! Thanks! so it works for you as well right now? Link to comment Share on other sites More sharing options...
gubtan Posted October 1, 2013 Share Posted October 1, 2013 so it works for you as well right now? Yes, it works! Thank You again! Link to comment Share on other sites More sharing options...
vekia Posted October 1, 2013 Share Posted October 1, 2013 you're welcome - 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 Link to comment Share on other sites More sharing options...
gubtan Posted October 1, 2013 Share Posted October 1, 2013 you're welcome - 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 More sharing options...
Dreamway Posted October 4, 2013 Share Posted October 4, 2013 follow this: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change (only part related to "validate") With your "Validate.php file change" tutorial now it work. Thank you so much!!!!! Link to comment Share on other sites More sharing options...
ps3z Posted November 29, 2013 Share Posted November 29, 2013 Which version of PS are you using because I do not see that option under Preferences > General you are super i solved it with your solution.i didnt expect to fix it easily. Greetings Ps3z Link to comment Share on other sites More sharing options...
ps3z Posted December 4, 2013 Share Posted December 4, 2013 i got backup of validate.php. and edited with yours. page is coming blank. i loaded the backup.still page is blank.how i can solve it? Link to comment Share on other sites More sharing options...
vekia Posted December 4, 2013 Share Posted December 4, 2013 problem solved in another post: http://www.prestashop.com/forums/topic/293748-validationphp-modify-after-gets-problem/ Link to comment Share on other sites More sharing options...
Rainbowgeorge69 Posted February 26, 2014 Share Posted February 26, 2014 Hello everyone I am trying to enter text when my product is out of date but it won't allow me, it just says ' the description field english english is invalid '. It works okay with some products but not with others. Any ideas why? Thanks. Link to comment Share on other sites More sharing options...
vekia Posted February 26, 2014 Share Posted February 26, 2014 hello you use always the same code in description field? (both for product that work, and for product that has got this error?) Link to comment Share on other sites More sharing options...
archproject Posted July 21, 2014 Share Posted July 21, 2014 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 More sharing options...
bovario Posted August 15, 2014 Share Posted August 15, 2014 follow this: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change (only part related to "validate") I have error message "The content field is invalid." when try to save edited cms page in prestashop 1.6.0.9. Upgraded from 1.4.6.2. Link to comment Share on other sites More sharing options...
vekia Posted August 17, 2014 Share Posted August 17, 2014 in prestashop 1.6.0.9 you have to use different method to extend tinymce editor after upgrade, you applied changes to validate class? Link to comment Share on other sites More sharing options...
bovario Posted September 7, 2014 Share Posted September 7, 2014 (edited) 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 September 7, 2014 by bovario (see edit history) Link to comment Share on other sites More sharing options...
Since1953 Posted September 8, 2014 Share Posted September 8, 2014 Experiencing the same bug when I try to edit some products, although if I find the right table/field in PHP My Admin it seems to bypass it. PrestaShop™ 1.6.0.8 Link to comment Share on other sites More sharing options...
kikis Posted January 6, 2015 Share Posted January 6, 2015 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 More sharing options...
kikis Posted January 6, 2015 Share Posted January 6, 2015 (edited) 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 hahaThanks anyway Vekia!! Edited January 6, 2015 by kikis (see edit history) Link to comment Share on other sites More sharing options...
devil7777 Posted January 20, 2015 Share Posted January 20, 2015 hello I do not understand so well the English. I was trying to figure out the solution to the problem of iframe video: http://mypresta.eu/en/art/developer/prestashop-product-page-full-rich-editor.html#validate_class_change 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 More sharing options...
Behc98 Posted March 30, 2023 Share Posted March 30, 2023 I removed some chrome extensions, it's fixed 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