Chughtai Posted February 21, 2014 Share Posted February 21, 2014 (edited) Dear Members I was unable to add or edit any of CMS pages, I made few changes in ps_cms table as per vekia instruction, now I can modify and add cms pages but when trying to enter some code as html, got following error. need help [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 - ks/index.php] - [0 Argument] Edited February 21, 2014 by Chughtai (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted February 21, 2014 Share Posted February 21, 2014 about what instructions you're talking? Link to comment Share on other sites More sharing options...
katya.vettorello Posted March 23, 2014 Share Posted March 23, 2014 This is the same problem I have if I try to insert a video (youtube url) in CMS page. How to solve this? Link to comment Share on other sites More sharing options...
vekia Posted March 23, 2014 Share Posted March 23, 2014 hello it's because iframes aren't allowd on cms pages by default. go to preferences > general and use this option: (it's screenshot from 1.6 but prestashop 1.5 has got the same feature) Link to comment Share on other sites More sharing options...
patrik1972 Posted October 19, 2016 Share Posted October 19, 2016 Hi, I try to add this code to a CMS page, but I only get "Content is invalid", anyone know why? <div id='loading' style='width: 200px; margin: auto;padding-top:50px;'> <div style='float:left;width:25px;margin-top:10px;'><img src='https://www.bokamera.se/Images/LoadingSpinner.gif' /></div><div style='float:left;margin-left:10px;'><h3>Laddar bokningen..</h3></div> </div> <script src='https://code.jquery.com/jquery-2.2.3.min.js' integrity='sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=' crossorigin='anonymous'></script> <script type='text/javascript'> $(document).ready(function () { var frame1 = document.getElementById('frameBooking'); var loadingDisplay = document.getElementById('loading').style; loadingDisplay.display = 'block'; if (frame1.onload == null) { frame1.onload = function () { loadingDisplay.display = 'none' }; if (window.attachEvent) { frame1.attachEvent('onload', frame1.onload); } } }); </script> <iframe id='frameBooking' width='100%' height='950' src='https://www.bokamera.se/KalmarGolfbutik/EventListEmbedded/?embedded=1' frameborder='0' allowfullscreen></iframe> Link to comment Share on other sites More sharing options...
Recommended Posts