contactovisual Posted October 7, 2014 Share Posted October 7, 2014 I'm trying to embed a video in one of the 2 custom CMS information blocks in the home page, and everytime I enter the embed code, it does not let me save the content. Explaining: 1. Edit the Custom CMS information block text on the module config. 2. Click on the Insert/Edit Video to place a video on the text box. 3. Choose Embed tab and paste the youtube embed code 4. Press OK and the Save button It goes to a 404 Page not Found and the content is not saved! Note, if I enter only text, or an image, it's OK. This only happens with video. Anyone knows why and how to fix this? Thanks Nelson Link to comment Share on other sites More sharing options...
contactovisual Posted October 8, 2014 Author Share Posted October 8, 2014 (edited) A few more attempts to solve this: - Preferences >> General >> Allow iframes on HTML fields: YES Did not solve it. - Modify tinyMCE rich text editor - extended version, according to Vekia tutorial Did not solve it. Still going to the 404 page not found when clicking on the Save button, and nothing is saved. Edited October 8, 2014 by contactovisual (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2014 Share Posted October 8, 2014 it's a case of security probably where you have hosting? it's godaddy? are you able to save sime "TEXT" code ? Link to comment Share on other sites More sharing options...
contactovisual Posted October 8, 2014 Author Share Posted October 8, 2014 Theme? I don't think so. Anyway, I reverted to the default theme, and try again. Same error: This page is not available We're sorry, but the Web address you've entered is no longer available. URI: index.php?controller=AdminModules&configure=blockcmsinfo&token=72b018f7e9968216dbf8c39dd18ec01e Referer: index.php?controller=AdminModules&configure=blockcmsinfo&id_info=3&updateblockcmsinfo&token=72b018f7e9968216dbf8c39dd18ec01e I use theme theme984. Hosting info: Server information: Linux #1 SMP Wed Jun 18 08:28:56 EDT 2014 x86_64 Server software version: Apache PHP version: 5.3.28 Memory limit: 256M Max execution time: 30 MySQL version: 5.5.37-cll MySQL engine: InnoDB PrestaShop version: 1.6.0.5 Current theme in use: theme984 are you able to save sime "TEXT" code ? No. Not even if I remove all the text and code. I tried to add a new record, with simple text. It adds just right. Then I tried to edit and add the youtube embed code. Nope. Nothing. It goes to the 404 page and nothing is modified on the record. Tried a new one. This time, I edit the record, and instead of adding the youtube code, just changed the text. It accepts. Edit again, and add an image. OK. It works just fine. Only the video code is not working. Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2014 Share Posted October 8, 2014 i don't know why i wrote "theme" i wanted to write "security" what hosting? Link to comment Share on other sites More sharing options...
contactovisual Posted October 8, 2014 Author Share Posted October 8, 2014 The site is hosted on a Linux server. Not godaddy's. I have access to cPanel, and php version config. What should I look for (on security)? Here's current configuration: allow_url_fopen On display_errors Off error_reporting E_ALL file_uploads On include_path .:/opt/alt/php53/usr/share/pear:/opt/alt/php53/usr/share/php log_errors On magic_quotes_gpc Off mail.force_extra_parameters no value max_execution_time 30 max_input_time -1 memory_limit 128M open_basedir no value post_max_size 8M register_globals Off register_long_arrays Off safe_mode Off safe_mode_exec_dir no value safe_mode_include_dir no value session.save_path /tmp short_open_tag On upload_max_filesize 2M Link to comment Share on other sites More sharing options...
contactovisual Posted October 8, 2014 Author Share Posted October 8, 2014 This is what I can edit on the PHP config panel, other than switch from version 5.3 to 5.2, 5.3, 5.4, or 5.5: Link to comment Share on other sites More sharing options...
vekia Posted October 8, 2014 Share Posted October 8, 2014 by security i meant that some hosts (godaddy for example) doesnt allow to save files from php, but only if file contains words like: filemanager, filesmanager, script etc. i don't know what they use to prevent saving files with such code, but in effect you will see 404 error like you see. so i just bet that your hoster uses similar solution Link to comment Share on other sites More sharing options...
contactovisual Posted October 8, 2014 Author Share Posted October 8, 2014 What you are saying is we cannot add embed iframe code, such as youtube code? Well, I edited directly on the database, in the ps_info_lang table, entering the youtube code on the records field, and the page loads nice, showing the video. I guess the problem is in the way prestahop or tinymce validates the text field content. I will make some additional experiments, to see how it goes: - try on other text field modules or cms content - try different iframe code blocks ... Link to comment Share on other sites More sharing options...
contactovisual Posted October 8, 2014 Author Share Posted October 8, 2014 And the results are: - on CMS (Preferences >> CMS), any page, is OK. No errors. Updates and shows on site. - on Category description, is OK. No errors. Updates and shows on site. - on Module "Home Text Editor", is OK. No errors. Updates and shows on site. It appears to be only on the module "Custom CMS information block" v1.5.2 - by PrestaShop Link to comment Share on other sites More sharing options...
Recommended Posts