Jump to content

Error- PrestaShopException - Property CMS->content is not valid


Recommended Posts

Dear Members

I was unable to add or edit any of CMS pages, I made few changes in ps_cms table as per vekia instruction, now I can modify and add cms pages but when trying to enter some code as html, got following error.

need help

 

 

 

[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.
Edited by Chughtai (see edit history)
Link to comment
Share on other sites

  • 1 month later...
  • 2 years later...

Hi, I try to add this code to a CMS page, but I only get "Content is invalid", anyone know why? 

 

<div id='loading' style='width: 200px; margin: auto;padding-top:50px;'>
<div style='float:left;width:25px;margin-top:10px;'><img src='https://www.bokamera.se/Images/LoadingSpinner.gif' /></div><div style='float:left;margin-left:10px;'><h3>Laddar bokningen..</h3></div>
</div>
<script src='https://code.jquery.com/jquery-2.2.3.min.js' integrity='sha256-a23g1Nt4dtEYOj7bR+vTu7+T8VP13humZFBJNIYoEJo=' crossorigin='anonymous'></script>
<script type='text/javascript'>
$(document).ready(function () {
var frame1 = document.getElementById('frameBooking');
var loadingDisplay = document.getElementById('loading').style;
loadingDisplay.display = 'block';
if (frame1.onload == null) {
frame1.onload = function () {
loadingDisplay.display = 'none'
};
if (window.attachEvent) {
frame1.attachEvent('onload', frame1.onload);
}
}
});
</script>
 
<iframe id='frameBooking' width='100%' height='950' src='https://www.bokamera.se/KalmarGolfbutik/EventListEmbedded/?embedded=1' frameborder='0' allowfullscreen></iframe>
Link to comment
Share on other sites

×
×
  • Create New...