Wordpress tinyMCE error "SyntaxError: expected expression, got '<' tinymce.min.js:1"

Wordpress tinyMCE error "SyntaxError: expected expression, got '<' tinymce.min.js:1"

我正在尝试为我们的一位客户设置 Wordpress 页面,但由于某些原因,我不断收到此错误(请参阅标题)

我尝试在其他服务器上安装原始 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 版本中看到过这种情况。

我现在知道如何自己解决这个问题,所以这个答案仅适用于遇到同样问题的人:

很明显,问题的出现是因为设置 wordpress 页面的文件夹本身是 .. 在更多显然导致问题的文件夹中。我将文件夹移到了父文件夹中,现在一切正常。