2013-05-21 28 views
0

我已經安裝SugarCRM公司的新副本在CentOS 5 PHP v5.2.4和我得到的JavaScript錯誤。SugarCRM的6.5.13 JS錯誤

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 

一個窗口,也會彈出,有一個標題曰:An error has occured:和內容顯示{"content":"

回答

0

是否所有文件正確加載?查看網絡控制檯並在加載文件時查找錯誤。可能是文件權限錯誤,並且ajax嘗試加載但接收404s或500s

0

替換jssource/Minifier.php中的/ \ 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-全6.5.4是SugarCRM公司的解壓新版本。

清理掉所有的「精縮」的JavaScript從緩存中。從我們的SugarCRM實例中的頂級目錄:

cd cache/ ; find . -name "*.js" -exec /bin/rm -f {} \; 

這是確保SugarCRM的使用校正Minify.php重新緩存縮小的版本。

+0

我已經試過了,也不行 – shorif2000