JTL Music Posted December 31, 2013 Share Posted December 31, 2013 (edited) Please help! I've posted CMS successfully with 5.6.1.0. Now I get the following error with the update: [PrestaShopException] Property CMS->content is not validat line 878 in file classes/ObjectModel.php 872.873. $message = $this->validateField($field, $value, $id_lang);874. if ($message !== true)875. {876. if ($die)877. throw new PrestaShopException($message);878. return $error_return ? $message : false;879. }880. }881. }882. ObjectModelCore->validateFieldsLang - [line 296 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 634 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 75 - classes/CMS.php] - [1 Arguments] CMSCore->update - [line 334 - controllers/admin/AdminCmsController.php] - [0 Argument] AdminCmsControllerCore->postProcess - [line 121 - controllers/admin/AdminCmsContentController.php] - [0 Argument] AdminCmsContentControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 53 - jtlmusic/index.php] - [0 Argument] Edited January 26, 2014 by vekia (see edit history) Link to comment Share on other sites More sharing options...
JTL Music Posted December 31, 2013 Author Share Posted December 31, 2013 Please help! I've posted CMS successfully with 5.6.1.0. Now I get the following error with the update: [PrestaShopException]Property CMS->content is not validat line 878 in file classes/ObjectModel.php 872.873. $message = $this->validateField($field, $value, $id_lang);874. if ($message !== true)875. {876. if ($die)877. throw new PrestaShopException($message);878. return $error_return ? $message : false;879. }880. }881. }882. ObjectModelCore->validateFieldsLang - [line 296 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 634 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 75 - classes/CMS.php] - [1 Arguments] CMSCore->update - [line 334 - controllers/admin/AdminCmsController.php] - [0 Argument] AdminCmsControllerCore->postProcess - [line 121 - controllers/admin/AdminCmsContentController.php] - [0 Argument] AdminCmsContentControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 53 - jtlmusic/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
JTL Music Posted January 3, 2014 Author Share Posted January 3, 2014 Nobody knows how to correct this? Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 when you've got this message? where it appears? please shed some more light about how to reproduce this issue. Link to comment Share on other sites More sharing options...
JTL Music Posted January 3, 2014 Author Share Posted January 3, 2014 When attempting to edit this page: http://americanbridalonline.com/content/1-start-here It worked fine with the previous version, and now I can't even repost the current version without an error. Link to comment Share on other sites More sharing options...
vekia Posted January 3, 2014 Share Posted January 3, 2014 i see this page without any problem: you've got the same? Link to comment Share on other sites More sharing options...
JTL Music Posted January 4, 2014 Author Share Posted January 4, 2014 The current version of that page was uploaded with the PREVIOUS version of Prestashop, 1.5.6.0. If I attempt to upload or edit the page in version 1.5.6.1, I get the error message as mentioned previously. At this point, I can't edit the above page. The only way to make an edit is to go back to the previous version of Prestashop. Whatever was changed with the CMS function in Prestashop 1.5.6.1, caused issues with the ability to use HTML code in CMS pages. Link to comment Share on other sites More sharing options...
JTL Music Posted January 8, 2014 Author Share Posted January 8, 2014 No response or suggestions? The programmers should know what they changed with the CMS/HTML part of the shop, which caused this issue. So far, support for Prestashop seems to be lacking... Very discouraged and disappointed. Link to comment Share on other sites More sharing options...
vekia Posted January 9, 2014 Share Posted January 9, 2014 i don't know the code that you use. no one knows. attach code here then someone will be able to verify it (for example me ) it looks like validate function cant validate positively your code, what does it mean? it mean that you probably use some not accepted anymore html tags etc. Link to comment Share on other sites More sharing options...
JTL Music Posted January 9, 2014 Author Share Posted January 9, 2014 Thanks for your reply. It worked perfectly in 1.5.6.0 and know doesn't in 1.5.6.1. It's easy to view the code on any page of a site using "view source" in your browser or Firefox's developer tools. If that doesn't work, I can paste the code later today. Link to comment Share on other sites More sharing options...
JTL Music Posted January 10, 2014 Author Share Posted January 10, 2014 <table> <tr> <td width="500" valign="top" nowrap="nowrap"><p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://americanbridalonline.com/bridaltown/video.html,popup,width=730,height=495,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://americanbridalonline.com/bridaltown/images/videoicon.gif" alt="" border="0" align="middle" style="text-decoration:none;border:0" /> STEP 1 - How to save money</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/storewidesale.html,popup,width=1000,height=1000,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 2 - Store Wide Sale Coupon</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/bridesmaidtuxmother.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 3 - Bridesmaids, Tuxedos, and Mothers Coupon</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/promtuxrental.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" width="75" height="75" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 4 - Coupons for Prom and Tuxedo Rental</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://www.yourinvitationplace.com/bridaltown,popup,width=1000,height=1000,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 5 - Invitations</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/godblessamerica.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/flag.jpg" alt="" width="75" height="75" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 6 - God Bless America</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/vacation.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://americanbridalonline.com/bridaltown/images/luggageicon.gif" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 7 - A Free 3-Day 2-Night Mini-Vacation for You</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/testimonials,popup,width=1000,height=1000,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/testimonialicon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 8 - Choose your bridal consultant, the one with the best reviews</a></p> <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/appointment,popup,width=750,height=750,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/phoneicon.gif" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 9 - Make an appointment by phone if before 5 pm 800-330-4696</a></p> </td> </tr> </table> Link to comment Share on other sites More sharing options...
vekia Posted January 11, 2014 Share Posted January 11, 2014 well, answer is easy you use onclick="" code and this (and many other) isn't working anymore. what else codes aren't supported? $events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange'; $events .= '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend'; $events .= '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove'; $events .= '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel'; $events .= '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart'; $events .= '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange'; $events .= '|onselectstart|onstart|onstop'; also: script, iframes, form, input, embed, object, what to do? it's necessary to modify validate class. unfortunately, there is no other way. check "validate class change" part here: validate.php prestashop modification 1 Link to comment Share on other sites More sharing options...
JTL Music Posted January 26, 2014 Author Share Posted January 26, 2014 The edit to validate.php did the trick! 1 Link to comment Share on other sites More sharing options...
vekia Posted January 26, 2014 Share Posted January 26, 2014 thank you for information where the problem was and how you solved it now it's time to mark this thread as solved with regards MIlos Link to comment Share on other sites More sharing options...
nikmagnus Posted March 16, 2014 Share Posted March 16, 2014 This helped me a lot. I got my iframe working on my CMS page. Thanks Milos Link to comment Share on other sites More sharing options...
vekia Posted March 17, 2014 Share Posted March 17, 2014 you're welcome glad to hear that i could help you a little in this case. may i know what ps version you use? Link to comment Share on other sites More sharing options...
subhamca2003 Posted September 12, 2014 Share Posted September 12, 2014 PrestaShop™ 1.5.6.2 I am also get the same error, unable to solve. [PrestaShopException]Property CMS->content is not validat line 878 in file classes/ObjectModel.php 872. 873. $message = $this->validateField($field, $value, $id_lang);874. if ($message !== true)875. {876. if ($die)877. throw new PrestaShopException($message);878. return $error_return ? $message : false;879. }880. }881. }882. ObjectModelCore->validateFieldsLang - [line 296 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->getFieldsLang - [line 634 - classes/ObjectModel.php] - [0 Argument] ObjectModelCore->update - [line 75 - classes/CMS.php] - [1 Arguments] CMSCore->update - [line 334 - controllers/admin/AdminCmsController.php] - [0 Argument] AdminCmsControllerCore->postProcess - [line 121 - controllers/admin/AdminCmsContentController.php] - [0 Argument] AdminCmsContentControllerCore->postProcess - [line 158 - classes/controller/Controller.php] - [0 Argument] ControllerCore->run - [line 348 - classes/Dispatcher.php] - [0 Argument] DispatcherCore->dispatch - [line 53 - admin2123/index.php] - [0 Argument] Link to comment Share on other sites More sharing options...
Recommended Posts