我应该如何处理这些Javascript控制台错误(Wordpress)?
更多信息: 我的一些插件的Javascript不起作用,只是在主页上。我尝试过禁用所有无关的插件,但这并不能解决问题 jquery-migrate.js似乎位于我应该如何处理这些Javascript控制台错误(Wordpress)?,javascript,wordpress,console.log,jquery-migrate,Javascript,Wordpress,Console.log,Jquery Migrate,更多信息: 我的一些插件的Javascript不起作用,只是在主页上。我尝试过禁用所有无关的插件,但这并不能解决问题 jquery-migrate.js似乎位于wp includes/js/jquery/中。我假设这是正确的文件位置 在一开始,我包括了一个名为reset.css的文件,但很久以前删除了该文件以及对它的任何引用(例如,在functions.php中),因此我不确定问题出在哪里。文件不可用是正确的,但它也不应该寻找它 有人能一步一步地告诉我需要做什么/改变吗?如果需要任何其他信息,请
wp includes/js/jquery/
中。我假设这是正确的文件位置
在一开始,我包括了一个名为reset.css的文件,但很久以前删除了该文件以及对它的任何引用(例如,在functions.php中),因此我不确定问题出在哪里。文件不可用是正确的,但它也不应该寻找它
有人能一步一步地告诉我需要做什么/改变吗?如果需要任何其他信息,请询问!非常感谢
编辑:在wp config中停用调试后,控制台更改为:
reset.css Failed to load resource: the server responded with a status of 404 (Not Found)
jquery-migrate.js:23 JQMIGRATE: Migrate is installed with logging active, version 1.4.1
jquery-migrate.js:45 JQMIGRATE: jQuery.fn.load() is deprecated
migrateWarn @ jquery-migrate.js:45
jquery-migrate.js:47 console.trace
migrateWarn @ jquery-migrate.js:47
reset.css Failed to load resource: the server responded with a status of 404 (Not Found)
您的
中似乎存在问题。像
或在这里查看,和
。好的,很好,这是我的信息。。。里面有什么奇怪的东西吗Match International B.V.style.css
文件是否存在于您的template\u url
中?不确定您对template\u url
的意思。。。我的主题根文件夹中只有一个style.css
。我用以下代码禁用了jquery-migrate.js:/*无JQ migrate-http://subinsb.com/remove-jquery-migrate-in-wp-blog */添加过滤器('wp_default_scripts','removeJqueryMigrate');函数removeJqueryMigrate(&$scripts){if(!is_admin()){$scripts->remove('jquery');$scripts->add('jquery',false,array('jquery-core'),'1.10.2');}
在functions.php中。这已经删除了错误,我没有任何错误(reset.css除外),所以我猜这个文件与我的Javascript插件冲突没有任何关系。。。隐马尔可夫模型。
GET http://match.onesquad.nl/wp-content/themes/match-theme/reset.css
jquery-migrate.js?ver=1.4.1:23 JQMIGRATE: Migrate is installed with logging active, version 1.4.1
jquery-migrate.js?ver=1.4.1:45 JQMIGRATE: jQuery.fn.load() is deprecated
migrateWarn @ jquery-migrate.js?ver=1.4.1:45
jQuery.fn.(anonymous function) @ jquery-migrate.js?ver=1.4.1:560
(anonymous) @ (index):368
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2
jquery-migrate.js?ver=1.4.1:47 console.trace
migrateWarn @ jquery-migrate.js?ver=1.4.1:47
jQuery.fn.(anonymous function) @ jquery-migrate.js?ver=1.4.1:560
(anonymous) @ (index):368
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2