Jump to content

[SOVLED] 1.5.6.1 CMS Issue


Recommended Posts

Please help!  I've posted CMS successfully with 5.6.1.0.  Now I get the following error with the update:

 

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

Please help!  I've posted CMS successfully with 5.6.1.0.  Now I get the following error with the update:

 

[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.
Link to comment
Share on other sites

The current version of that page was uploaded with the PREVIOUS version of Prestashop, 1.5.6.0. If I attempt to upload or edit the page in version 1.5.6.1, I get the error message as mentioned previously. At this point, I can't edit the above page. The only way to make an edit is to go back to the previous version of Prestashop. Whatever was changed with the CMS function in Prestashop 1.5.6.1, caused issues with the ability to use HTML code in CMS pages.

Link to comment
Share on other sites

i don't know the code that you use. no one knows.

attach code here then someone will be able to verify it (for example me :D)

 

it looks like validate function cant validate positively your code, what does it mean? it mean that you probably use some not accepted anymore html tags etc.

Link to comment
Share on other sites

Thanks for your reply. It worked perfectly in 1.5.6.0 and know doesn't in 1.5.6.1. It's easy to view the code on any page of a site using "view source" in your browser or Firefox's developer tools. If that doesn't work, I can paste the code later today.

Link to comment
Share on other sites

<table>

<tr>
  <td width="500" valign="top" nowrap="nowrap"><p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://americanbridalonline.com/bridaltown/video.html,popup,width=730,height=495,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://americanbridalonline.com/bridaltown/images/videoicon.gif" alt="" border="0" align="middle" style="text-decoration:none;border:0" /> STEP 1 - How to save money</a></p>
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/storewidesale.html,popup,width=1000,height=1000,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 2 - Store Wide Sale Coupon</a></p>
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/bridesmaidtuxmother.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 3 - Bridesmaids, Tuxedos, and Mothers Coupon</a></p>
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/promtuxrental.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" width="75" height="75" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 4 - Coupons for Prom and Tuxedo Rental</a></p>
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://www.yourinvitationplace.com/bridaltown,popup,width=1000,height=1000,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/coupon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 5 - Invitations</a></p>
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/godblessamerica.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/flag.jpg" alt="" width="75" height="75" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 6 - God Bless America</a></p>  
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/starthere/vacation.html,popup,width=1000,height=1000,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://americanbridalonline.com/bridaltown/images/luggageicon.gif" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 7 - A Free 3-Day 2-Night Mini-Vacation for You</a></p>
    <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/testimonials,popup,width=1000,height=1000,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/testimonialicon.jpg" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 8 - Choose your bridal consultant, the one with the best reviews</a></p>
  <p><a href="http://americanbridalonline.com/content/1-start-here" onclick="window.open('http://bridaltown.com/appointment,popup,width=750,height=750,scrollbars=yes,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0')"><img src="http://americanbridalonline.com/bridaltown/images/phoneicon.gif" alt="" border="0" align="middle" style="text-decoration: none; border: 0;" /> STEP 9 - Make an appointment by phone if before 5 pm 800-330-4696</a></p>
  </td>
</tr>
</table>
Link to comment
Share on other sites

well, answer is easy

you use onclick="" code and this (and many other) isn't working anymore.

 

what else codes aren't supported?

$events = 'onmousedown|onmousemove|onmmouseup|onmouseover|onmouseout|onload|onunload|onfocus|onblur|onchange';
		$events .= '|onsubmit|ondblclick|onclick|onkeydown|onkeyup|onkeypress|onmouseenter|onmouseleave|onerror|onselect|onreset|onabort|ondragdrop|onresize|onactivate|onafterprint|onmoveend';
		$events .= '|onafterupdate|onbeforeactivate|onbeforecopy|onbeforecut|onbeforedeactivate|onbeforeeditfocus|onbeforepaste|onbeforeprint|onbeforeunload|onbeforeupdate|onmove';
		$events .= '|onbounce|oncellchange|oncontextmenu|oncontrolselect|oncopy|oncut|ondataavailable|ondatasetchanged|ondatasetcomplete|ondeactivate|ondrag|ondragend|ondragenter|onmousewheel';
		$events .= '|ondragleave|ondragover|ondragstart|ondrop|onerrorupdate|onfilterchange|onfinish|onfocusin|onfocusout|onhashchange|onhelp|oninput|onlosecapture|onmessage|onmouseup|onmovestart';
		$events .= '|onoffline|ononline|onpaste|onpropertychange|onreadystatechange|onresizeend|onresizestart|onrowenter|onrowexit|onrowsdelete|onrowsinserted|onscroll|onsearch|onselectionchange';
		$events .= '|onselectstart|onstart|onstop';

also:

script, 

iframes,

form,

input,

embed,

object,

 

what to do?

it's necessary to modify validate class.

unfortunately, there is no other way.

 

check "validate class change" part here: 

validate.php prestashop modification

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...
  • 1 month later...
  • 5 months later...

PrestaShop™ 1.5.6.2

I am also get the same error, unable to solve.

[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. 
Link to comment
Share on other sites

×
×
  • Create New...