Php sugarcrm 6.5.13 js错误
我已经在centos 5 php v5.2.4上安装了sugarcrm的新副本,并且出现javascript错误Php sugarcrm 6.5.13 js错误,php,centos,sugarcrm,Php,Centos,Sugarcrm,我已经在centos 5 php v5.2.4上安装了sugarcrm的新副本,并且出现javascript错误 SyntaxError: missing ; before statement [Break On This Error] {ajaxStatus.s owStatus(SUGAR.language.get('app_strings','LBL_LOADING_PAGE' style-...qXfmstw (line 6, col 14) 上面是从firebug控制台复制
SyntaxError: missing ; before statement
[Break On This Error]
{ajaxStatus.s owStatus(SUGAR.language.get('app_strings','LBL_LOADING_PAGE'
style-...qXfmstw (line 6, col 14)
上面是从firebug控制台复制的。当我点击账户标签时,我会发现更多的错误。有人修复了这些错误吗
uncaught exception: AjaxUI error parsing response
[Break On This Error]
{SUGAR.themes.setModuleTabs(r.moduleList);}
uncaught exception: AjaxUI error parsing response
还会弹出一个窗口,其标题为:
发生错误:
,内容显示为{“content”:“
是否所有文件都正确加载?请查看网络控制台,并在加载文件时查找错误。可能是文件权限错误,ajax尝试加载,但在jssource/Minifier.php中收到404或500个替换的/\h/for/[\t]/(制表符或空格字符),如下所示:
diff -c Minifier.php.orig Minifier.php
*** Minifier.php.orig
--- Minifier.php
***************
*** 155,161 ****
$js = str_replace("\r\n", "\n", $js);
$this->input = str_replace("\r", "\n", $js);
! $this->input = preg_replace('/\h/u', ' ', $this->input);
$this->a = $this->getReal();
--- 155,161 ----
$js = str_replace("\r\n", "\n", $js);
$this->input = str_replace("\r", "\n", $js);
! $this->input = preg_replace('/[ \t]/u', ' ', $this->input);
$this->a = $this->getReal();
从干净的源代码复制所有JavaScript文件的原始版本
以下行覆盖了发行版中的所有原始JavaScript文件。任何自定义设置都会被以下内容覆盖:
cd ../SugarCE-Full-6.5.4
find . -name "*.js" -exec cp {} ../SugarCRM/{} \;
其中SugarCRM是安装目录,SugarCE-Full-6.5.4是SugarCRM的未打包新版本
从缓存中清除所有“精简”JavaScript。从SugarCRM实例的顶级目录:
cd cache/ ; find . -name "*.js" -exec /bin/rm -f {} \;
这是为了确保SugarCRM使用正确的Minify.php在缓存中重新创建缩小版本