smoke Posted January 9, 2014 Share Posted January 9, 2014 Hi, Im using Prestashop 1.5.6.0 and when i try to add a iframe to product description i get a 404 error . Is the same using HTML or insert media button . The funny part is that I have the site on mylocalhost as well and everything is working fine there . Could be something from my hosting ? Dose anyone have any ideas ? Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted January 10, 2014 Share Posted January 10, 2014 If I try to add the iframe tag, I get The description field (English (English)) is invalid. I don't think you can add it as a valid tag, did you edit ps so it accepts that too? Link to comment Share on other sites More sharing options...
vekia Posted January 10, 2014 Share Posted January 10, 2014 preferences > general there is an option to accept iframes in html fields (descriptions, cms editor etc.) accept it - then everything should work. Link to comment Share on other sites More sharing options...
NemoPS Posted January 10, 2014 Share Posted January 10, 2014 wow I didn't know that myself Link to comment Share on other sites More sharing options...
smoke Posted January 10, 2014 Author Share Posted January 10, 2014 (edited) preferences > general there is an option to accept iframes in html fields (descriptions, cms editor etc.) accept it - then everything should work. Vekia, that option is set to yes and still dosen't work! The think is that I don't understand why on my localhost ( backup from the main one .. ) the iframe is working fine and on the main one i get the 404 error!! same ps in both location . Edited January 10, 2014 by smoke (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted January 11, 2014 Share Posted January 11, 2014 Are you using friendly urls? What are the properties of the iframe? Can you try adding simply <iframe>test test</iframe> ? Link to comment Share on other sites More sharing options...
vekia Posted January 11, 2014 Share Posted January 11, 2014 and what page url you use in this iframe? maybe this is the main problem in this case Link to comment Share on other sites More sharing options...
smoke Posted January 11, 2014 Author Share Posted January 11, 2014 (edited) Yes, I use friendly url and is the same with test <iframe>test test</iframe> or any others Here is a sample of the iframe from HTML <p><iframe src="//www.youtube.com/embed/qg4MxKEOg-E?feature=player_detailpage" frameborder="0" width="640" height="360"></iframe></p> Edited January 11, 2014 by smoke (see edit history) Link to comment Share on other sites More sharing options...
smoke Posted January 12, 2014 Author Share Posted January 12, 2014 (edited) Hi guys , I finally mange to get the video working and get the product description saved without getting the 404 error by using the old embed code:)) but still can't figured out why on my localhost the new embed code is working ok and on the main site I have to use old embed code ) as I mentioned above on my localhost is the backup from main site ) Sample: <object width="420" height="315"><param name="movie" value="//www.youtube.com/watch?v=C3N_bnc6dn4?hl=en_US&version=3&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="//www.youtube.com/watch?v=C3N_bnc6dn4?hl=en_US&version=3&rel=0" type="application/x-shockwave-flash" width="420" height="315" allowscriptaccess="always" allowfullscreen="true"></embed></object> Edited January 12, 2014 by smoke (see edit history) Link to comment Share on other sites More sharing options...
zemzem1 Posted January 12, 2014 Share Posted January 12, 2014 I think that smoke right, your problem is not difficult! Link to comment Share on other sites More sharing options...
Recommended Posts