반응형
vtigercrm 6.0에서 6.1로 마이그레이션을 했더니 아래의 에러가 나왔습니다.
"Illegal escape sequence 'u'"
아래 첨부한 파일을 include/Zend/Json 경로에 넣으면 됩니다.
출처 : https://discussions.vtiger.com/index.php?p=/discussion/173160/cant-do-a-contact-search/p1
Can't do a contact search
- I've just upgraded from vtiger 6.0 to 6.1 without noticing any errors.
But when i tryied to do a simple global search, an error appeared when opening the contact details.
An error window appear with the message "Illegal escape sequence 'u'" and a "back" link.
Please help. - 8 Commentssorted by
- It also happens when i try to open an account info.
- It also happens when i try to open an account info.
But does not happen when opening leads or projects. - Hi,
I have de same error.
This is because the zend json is old.
The solution is change line 105 in file include\Zend\Json\Decoder.php:
original:
$this->_source = $source;
$this->_sourceLength = strlen($source);
new:
$this->_source = self::decodeUnicodeString($source);
$this->_sourceLength = strlen($this->_source);
And add the new funtion "decodeUnicodeString" in the end of file.
You can copy from this file:http://framework.zend.com/svn/framework/standard/incubator/library/Zend/Json/