2015-03-02 162 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的页面成立于文件夹本身,是..在一些更多的文件夹,显然造成问题。我将文件夹移到了父文件夹中,现在一切正常。