thegame123 Posted March 11, 2014 Share Posted March 11, 2014 Hi I am using Prestashop 1.5.6.2 and need to add different forms into different CMS Pages. I have found a good free HTML form builder but when I try to add the code I get the following error message when trying to save the page: [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 - admin123/index.php] - [0 Argument] Now I know that I need to extend the HTML on TinyMCE using the form.tpl and validate.tpl files using the method shown here: http://mypresta.eu/en/art/know-how/tinymce-editor-full-options-all-html-tags.html I have done all this but still I get the error message. I am not a coder and I am not great with php or HTML so easy to follow instructions are a must I'm afraid. If you need my amended code please let me know what and from which files so I can get it quickly. All help is much appreciated. Regards Link to comment Share on other sites More sharing options...
vekia Posted March 11, 2014 Share Posted March 11, 2014 please show contents of your changed validate isCleanHtml function EDIT it's a duplicated thread http://www.prestashop.com/forums/topic/312374-error-message-when-trying-to-add-html-code-to-cms-page/ please answer to my questions instead of creating new topics. Link to comment Share on other sites More sharing options...
Recommended Posts