Jump to content

iFrame error on the CMS module {SOLVED}


Recommended Posts

Hi fellow geeks, so I have several PS 1.6 running on the same server through different domains. So I created a simple php script to display random comments from customers and no issue there.

I tried to duplicate the same procedure on a brand new installation and get the following errors:

 

[PrestaShopException]

Property InfoBlock->text 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 425 - classes/ObjectModel.php] - [1 Arguments]
    ObjectModelCore->save - [line 166 - modules/blockcmsinfo/blockcmsinfo.php]
    Blockcmsinfo->processSaveCmsInfo - [line 105 - modules/blockcmsinfo/blockcmsinfo.php]
    Blockcmsinfo->getContent - [line 805 - controllers/admin/AdminModulesController.php]
    AdminModulesControllerCore->postProcessCallback - [line 1045 - 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]

It obviously doesn't like the iframe, but what can be different from the other installation?

 

I had the following on the working installation:

<h4><strong>Testimonios de nuestros clientes</strong></h4>
<p><iframe src="/xxxxxx/random/test.php" width="300" height="250" scrolling="no"></script></iframe></p>

So it call the program through and iFrame, nothing fancy, yet it produces that error.

 

Thanks in advance!

 

The solution is simple. Preferences - General - Allow iframes on html

Edited by tivicrdotcom (see edit history)
Link to comment
Share on other sites

×
×
  • Create New...