knekke Posted July 3, 2015 Share Posted July 3, 2015 Hi, I just updated to 1.6.1.0 using the 1-click updater. Everything went fine. Then I tested a payment module (payson). After payment I got notifications for order, new customer, and a new message (that didn't happen before). Clicking at "Show all messages" results in an error now: [PrestaShopException] Property CustomerMessage->message is not valid at line 881 in file classes/ObjectModel.php 876. 877. $message = $this->validateField($field, $this->$field); 878. if ($message !== true) 879. { 880. if ($die) 881. throw new PrestaShopException($message); 882. return $error_return ? $message : false; 883. } 884. } 885. 886. return true; ObjectModelCore->validateFields - [line 245 - classes/ObjectModel.php] ObjectModelCore->getFields - [line 469 - classes/ObjectModel.php] ObjectModelCore->add - [line 1037 - controllers/admin/AdminCustomerThreadsController.php] AdminCustomerThreadsControllerCore->syncImap - [line 887 - controllers/admin/AdminCustomerThreadsController.php] AdminCustomerThreadsControllerCore->renderProcessSyncImap - [line 221 - controllers/admin/AdminCustomerThreadsController.php] AdminCustomerThreadsControllerCore->renderList - [line 2015 - classes/controller/AdminController.php] AdminControllerCore->initContent - [line 455 - controllers/admin/AdminCustomerThreadsController.php] AdminCustomerThreadsControllerCore->initContent - [line 180 - classes/controller/Controller.php] ControllerCore->run - [line 373 - classes/Dispatcher.php] DispatcherCore->dispatch - [line 54 - admin/index.php] Going back to the BO I get a notification that there's 67 new messages. Trying to look at theses I get the above error again. So I go to phpmyadmin and delete all that crap (duplicates of the original messages...how and why did that happen?). But still, having only the original messages from before the update I still get that error... Help please! Thanks Link to comment Share on other sites More sharing options...
tuk66 Posted July 3, 2015 Share Posted July 3, 2015 What was your previous version? This field (CustomerMessage.message) is validated by the Validate::isCleanHtml method and it changed in PS 1.5. Link to comment Share on other sites More sharing options...
knekke Posted July 3, 2015 Author Share Posted July 3, 2015 I updated from 1.6.0.14 Link to comment Share on other sites More sharing options...
knekke Posted July 3, 2015 Author Share Posted July 3, 2015 It seems that problem doesn't happen on localhost, but only on the live shop. Also the module test has nothing to do with it. I backed up the database right after the update. I restored that database right now. The moment I click on "show all messages" I get the error. Coming back to BO I have 67 new messages (duplicates from existing ones), but I can't access the messagelist because of the error. No more duplicates get created after that though. On localhost I don't have that behaviour. PHP on the server is 5.4.41 on localhost it's 5.6.3 Is that the problem? Link to comment Share on other sites More sharing options...
knekke Posted July 3, 2015 Author Share Posted July 3, 2015 PHP isn't the problem (I tried 5.6.x on the server as well now)... so what is then? Link to comment Share on other sites More sharing options...
knekke Posted July 3, 2015 Author Share Posted July 3, 2015 IMAP is the problem! On localhost the IMAP-url is invalid, so I that's why I don't get the error and the duplicate (resynced) messages. Is it a bug or is it me? Link to comment Share on other sites More sharing options...
knekke Posted July 13, 2015 Author Share Posted July 13, 2015 Is there a fix for it somewhere? Link to comment Share on other sites More sharing options...
Bocos Posted August 2, 2015 Share Posted August 2, 2015 I have the same problem. I updated from 1.6.0.5 to 1.6.1.0 using the 1-click updater and when at the back office I click on Customers -> Customer service there it show up a window with the legend : [PrestaShopException]Property CustomerMessage->message is not validat line 881 in file classes/ObjectModel.php Is there a fix for it somewhere? Link to comment Share on other sites More sharing options...
alloffus Posted August 11, 2015 Share Posted August 11, 2015 Any fix? Link to comment Share on other sites More sharing options...
ioan1iuga Posted September 16, 2015 Share Posted September 16, 2015 Hello, Did anyone find a solution to this problem? I have the exact same issue and I can't read my messages at all. Any help is highly appreciated. Link to comment Share on other sites More sharing options...
knoble Posted April 6, 2016 Share Posted April 6, 2016 Can someone help me please as I am having the same issue when I go to Customers -> Customer Service and got this error. http://awesomescreenshot.com/02d5rrh525 any idea please. 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