2015-03-02 59 views
0

我想爲我們的客戶之一設置一個Wordpress頁面,但由於某些原因,我一直收到此錯誤(請參閱標題)Wordpress tinyMCE錯誤「SyntaxError:expected expression,got'<'tinymce.min.js:1」

我嘗試在其他服務器上安裝原始Wordpress。總是相同的結果

完全控制檯日誌:

Resource interpreted as Script but transferred with MIME type text/html: "/wp-includes/js/tinymce/tinymce.min.js?ver=4107-20150118". post.php?post=2&action=edit:1875 Resource interpreted as Script but transferred with MIME type text/html: "/wp-includes/js/tinymce/plugins/compat3x/plugin.min.js?ver=4107-20150118". 7post.php?post=2&action=edit:1 Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) post.php?post=2&action=edit:243 Consider using 'dppx' units, as in CSS 'dpi' means dots-per-CSS-inch, not dots-per-physical-inch, so does not correspond to the actual 'dpi' of a screen. In media query expression: print, not all, (-webkit-min-device-pixel-ratio: 1.25), (min-resolution: 120dpi) tinymce.min.js?ver=4107-20150118:1 Uncaught SyntaxError: Unexpected token < plugin.min.js?ver=4107-20150118:1 Uncaught ReferenceError: tinymce is not defined post.php?post=2&action=edit:1877 Uncaught ReferenceError: tinymce is not defined 3load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,wp-ajax-response,jquery…:896 Uncaught ReferenceError: tinymce is not defined

我以前從來沒見過這種情況發生在任何版本的WordPress。

回答

1

我找到了如何解決它在我自己現在這樣這個答案僅僅是人們遇到了同樣的問題:

因此很明顯,問題出現了,因爲在WordPress的頁面成立於文件夾本身,是..在一些更多的文件夾,顯然造成問題。我將文件夾移到了父文件夾中,現在一切正常。