RosuC Posted August 31, 2016 Share Posted August 31, 2016 Hello all, Today suddenly I got the following message: http://screencast.com/t/e0deM0Jyma The messages are arriving to the mail but inside the Back Office I can't see them anymore, I didn't update anything and I have the PrestaShop 1.6.1.0 Please try to give me a solution because is really not comfortable. Regards Link to comment Share on other sites More sharing options...
rocky Posted September 1, 2016 Share Posted September 1, 2016 It would seem an invalid customer message was somehow added to your database. You'll need to check the ps_customer_message table in your database using phpMyAdmin and look for any unusual messages that contain HTML or anything other than plain text. After editing or deleting invalid customer messages, your Back Office tab should work again. Link to comment Share on other sites More sharing options...
RosuC Posted September 1, 2016 Author Share Posted September 1, 2016 It would seem an invalid customer message was somehow added to your database. You'll need to check the ps_customer_message table in your database using phpMyAdmin and look for any unusual messages that contain HTML or anything other than plain text. After editing or deleting invalid customer messages, your Back Office tab should work again. Hello there, thank you for the suggestion, I've check it double time, nothing unusual there, the problem is here: http://screencast.com/t/vd5Ux7indL8k Once I press this link is appearing that error, and is honestly not normal because there were no strange messages and no modifications in the last month in the PrestaShop. Thank you. Link to comment Share on other sites More sharing options...
rocky Posted September 2, 2016 Share Posted September 2, 2016 Sorry, I have no idea why you're getting that error message. I can only say that the error message is caused by having HTML code or other insecure data inside a customer message. See line 51 of classes/CustomerMessage.php: 'message' => array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 16777216), You can remove the validation there to remove the error message, but then customers can enter malicious code in your contact form. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now