Jump to content

how to fix customer messages


Recommended Posts

hello everybody,

after I updated prestashop from 1.5.6.2 to 1.6.0.14 I have problem of viewing customer messages, I'm getting error. How to change messages size?

 

Property CustomerMessage->message length (104323) must be between 0 and 65000
at line 925 in file classes/ObjectModel.php

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

you can try this, from 1.6.0.14.

 

open file classes/CustomerMessage.php

 

change 65000 to value higher and retest.  Note: after updating delete/rename file cache/class_index.php to bring in change.

		'fields' => array(
			'id_employee' => 		array('type' => self::TYPE_INT, 'validate' => 'isUnsignedId'),
			'id_customer_thread' => array('type' => self::TYPE_INT),
			'ip_address' => 		array('type' => self::TYPE_STRING, 'validate' => 'isIp2Long', 'size' => 15),
			'message' => 			array('type' => self::TYPE_STRING, 'validate' => 'isCleanHtml', 'required' => true, 'size' => 65000),

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...