我想爲我們的客戶之一設置一個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。