2016-08-12 75 views
0

似乎CKFinder 3.3(對於PHP)與jQuery 3.0或3.1不兼容。每當我試着和這兩個版本的加載CKFinder,我得到這兩個錯誤,CKFinder不會加載:使用jQuery 3.x運行時發現CKFinder錯誤

[Error] TypeError: undefined is not an object (evaluating 'a.event.props.concat') 
    (anonymous function) (jquery.mobile.js:4:5781) 
    (anonymous function) (jquery.mobile.js:4:6334) 
    (anonymous function) (jquery.mobile.js:3:115) 
    global code (jquery.mobile.js:3:130) 
[Error] TypeError: undefined is not an object (evaluating 't.event.special.swipe.start') 
init — ckfinder.js:3373 
(anonymous function) — ckfinder.js:14863:116 
execCb — ckfinder.js:715 
check — ckfinder.js:510 
enable — ckfinder.js:589 
init — ckfinder.js:482:172 
(anonymous function) — ckfinder.js:648:99 

    check (ckfinder.js:5:21940) 
    enable (ckfinder.js:5:24481) 
    init (ckfinder.js:5:20742) 
    (anonymous function) (ckfinder.js:5:26286) 

如果我恢復到jQuery的1.12.3(沒有其他變化),它工作正常。

其中一個錯誤發生在jQuery手機中,所以它可能是一個問題,但是,這是最新版本(1.4.5),我還沒有發現任何關於jQuery mobile和jQuery 3之間不兼容的報告。我也嘗試過使用jQuery遷移插件,但這並沒有幫助。

我可以通過告訴CKFinder使用jQuery 1.12來處理這個問題,而它所嵌入的頁面使用3.1,但是,顯然不適合加載兩個jQuery副本。

+0

試試jquery爲它遷移。 'https:// code.jquery.com/jquery-migrate-3.0.0.js' –

+0

正如我所說的那樣,我試過了,它沒有幫助。 – Synchro

回答

3

這裏只是說明,作爲回答了門票https://github.com/ckfinder/ckfinder/issues/299#issuecomment-239440766

最新jQuery Mobile的框架1.4.5發佈了10月31日2014年這是jQuery的2.2,這是沒有https://github.com/jquery/jquery-mobile/issues/8381支持之前。在任何jQuery 3.x發佈之前:3.0 - 2016年6月9日發佈; 3.1 - 7月7日公佈,2016年

由於文檔站:

jQuery Mobile的1.4.x的工作與jQuery核心的版本從1.8.3到1.11.1/2.1.1。

因此,直到jQuery Mobile與jQuery 3.x本身不兼容,CKFinder也不能使用它。