Artur Fonzarelli Posted July 22, 2014 Share Posted July 22, 2014 Hi,I tried to paste the youtube video in the form of a slide that appears on the home page.Obviously, I glued on which was written "paste code". But when I go to save me from an error message and the video will not save me and you can not see.How so? The code youtube that paste is the following:<iframe width = "420" height = "315"src = "/ / www.youtube.com/embed/ictsurt_y2" frameborder = "0"allowfullscreen> </ iframe>The error message that I get from the other hand is as follows: [PrestaShopException] Property HomeSlide->description is not validat line 887 in file classes/ObjectModel.php 881. 882. $message = $this->validateField($field, $value, $id_lang);883. if ($message !== true)884. {885. if ($die)886. throw new PrestaShopException($message);887. return $error_return ? $message : false;888. }889. }890. }891. ObjectModelCore->validateFieldsLang - [line 301 - classes/ObjectModel.php] ObjectModelCore->getFieldsLang - [line 643 - classes/ObjectModel.php] ObjectModelCore->update - [line 414 - modules/homeslider/homeslider.php] HomeSlider->_postProcess - [line 208 - modules/homeslider/homeslider.php] HomeSlider->getContent - [line 803 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcessCallback - [line 1043 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Best Regards Link to comment Share on other sites More sharing options...
vekia Posted July 22, 2014 Share Posted July 22, 2014 /modules/homeslider/homeslide.php change: 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isCleanHtml', 'size' => 4000), to: 'description' => array('type' => self::TYPE_HTML, 'lang' => true, 'validate' => 'isAnything', 'size' => 4000), 2 Link to comment Share on other sites More sharing options...
mkbond777 Posted June 21, 2015 Share Posted June 21, 2015 Hi, I tried to paste the youtube video in the form of a slide that appears on the home page. Obviously, I glued on which was written "paste code". But when I go to save me from an error message and the video will not save me and you can not see. How so? The code youtube that paste is the following: <iframe width = "420" height = "315" src = "/ / www.youtube.com/embed/ictsurt_y2" frameborder = "0" allowfullscreen> </ iframe> The error message that I get from the other hand is as follows: [PrestaShopException] Property HomeSlide->description is not valid at line 887 in file classes/ObjectModel.php 881. 882. $message = $this->validateField($field, $value, $id_lang);883. if ($message !== true)884. {885. if ($die)886. throw new PrestaShopException($message);887. return $error_return ? $message : false;888. }889. }890. }891. ObjectModelCore->validateFieldsLang - [line 301 - classes/ObjectModel.php] ObjectModelCore->getFieldsLang - [line 643 - classes/ObjectModel.php] ObjectModelCore->update - [line 414 - modules/homeslider/homeslider.php] HomeSlider->_postProcess - [line 208 - modules/homeslider/homeslider.php] HomeSlider->getContent - [line 803 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcessCallback - [line 1043 - controllers/admin/AdminModulesController.php] AdminModulesControllerCore->postProcess - [line 171 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Best Regards Hi Artur, In which file you tried to paste the youtube code? Or you did it through back office? Did the solution given by vekia worked? Thanks Manish Kumar Link to comment Share on other sites More sharing options...
Recommended Posts