tomkay Posted January 6, 2014 Share Posted January 6, 2014 Hey there, when trying to implement a YT Video in a CMS Page, after saving I receive an exception: [PrestaShopException] Property CMS->content is not valid at 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 - adminbereich/index.php] - [0 Argument] How can I fix it ? Link to comment Share on other sites More sharing options...
Optimus_Sam Posted January 6, 2014 Share Posted January 6, 2014 Did you try using an iFrame? Link to comment Share on other sites More sharing options...
tomkay Posted January 6, 2014 Author Share Posted January 6, 2014 Yes, this is what presta did automatically. Link to comment Share on other sites More sharing options...
tomkay Posted January 7, 2014 Author Share Posted January 7, 2014 How can I get this fixed ? I would like to implement this video from youtube. Link to comment Share on other sites More sharing options...
Optimus_Sam Posted January 7, 2014 Share Posted January 7, 2014 Using the embed code didn't work? Link to comment Share on other sites More sharing options...
El Patron Posted January 7, 2014 Share Posted January 7, 2014 Please see this post http://www.prestashop.com/forums/topic/273632-solved-cant-add-an-iframe-in-cms-page-155/?p=1372223 Link to comment Share on other sites More sharing options...
vekia Posted January 7, 2014 Share Posted January 7, 2014 and what about option to accept iframes in preferences > general? Link to comment Share on other sites More sharing options...
El Patron Posted January 7, 2014 Share Posted January 7, 2014 Hi Milos, isn't that just for product? Link to comment Share on other sites More sharing options...
vekia Posted January 7, 2014 Share Posted January 7, 2014 it's related to every "textbox" that uses isHTML validate function, and cms page uses it too 1 Link to comment Share on other sites More sharing options...
El Patron Posted January 7, 2014 Share Posted January 7, 2014 and what about option to accept iframes in preferences > general? as suggested by vekia you will also need to turn on iframes for products, if you will be using them. 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