gpt4 book ai didi

javascript - 删除和设置目录后,Wordpress 站点出现 JQuery 错误

转载 作者:行者123 更新时间:2023-11-28 04:21:39 25 4
gpt4 key购买 nike

我想将我的 WordPress 网站的位置从子目录更改为根目录。我备份了我的文件和数据库。但我犯了一个错误,将我的网站移至根目录。首先,我将网站移至 Filezilla 中,然后更改了 WordPress 中的 URL。我正在处理 500 错误,因此我的托管公司建议我将所有内容恢复到之前的状态。

现在我的网站出现 22 个 Jquery 错误,我无法再在 wp-admin 中调整任何内容。

这些是我正在处理的错误:

Uncaught SyntaxError: Invalid or unexpected token
jquery-migrate.min.js:2 Uncaught ReferenceError: jQuery is not defined at query-migrate.min.js:2
jquery.flexslider-min.js:5 Uncaught SyntaxError: Invalid or unexpected token
jquery.mCustomScrollbar.js:43 Uncaught ReferenceError: jQuery is not defined at jquery.mCustomScrollbar.js:43 at jquery.mCustomScrollbar.js:45
jquery.fancybox.js:2020 Uncaught ReferenceError: jQuery is not defined at jquery.fancybox.js:2020
enter code here jquery.elevatezoom.js:1790 Uncaught ReferenceError: jQuery is not defined
at jquery.elevatezoom.js:1790
jquery.dotdotdot.min.js:13 Uncaught ReferenceError: jQuery is not defined
at jquery.dotdotdot.min.js:13
jquery.gridrotator.js:756 Uncaught ReferenceError: jQuery is not defined
at jquery.gridrotator.js:756
bootstrap.min.js:6 Uncaught SyntaxError: Invalid or unexpected token
jquery.colorbox.js:4 Uncaught SyntaxError: Invalid or unexpected token
shortcodes.js:31 Uncaught ReferenceError: jQuery is not defined
at shortcodes.js:31
parallax.js:154 Uncaught ReferenceError: jQuery is not defined
at parallax.js:154
uikit.min.js:3 Uncaught Error: UIkit requires jQuery
at uikit.min.js:3
at uikit.min.js:3
main.js:782 Uncaught ReferenceError: jQuery is not defined
at main.js:782
(index):184 Uncaught ReferenceError: jQuery is not defined
at (index):184
scripts.js:481 Uncaught ReferenceError: jQuery is not defined
at scripts.js:481
jquery.sliderPro.js:1450 Uncaught ReferenceError: jQuery is not defined
at jquery.sliderPro.js:1450
post-favorite.js:29 Uncaught ReferenceError: jQuery is not defined
at post-favorite.js:29
datepicker.min.js:5 Uncaught SyntaxError: Invalid or unexpected token
js_composer_front.min.js?ver=5.1.1:1 Uncaught ReferenceError: jQuery is not defined
at getSizeName (js_composer_front.min.js?ver=5.1.1:1)
at js_composer_front.min.js?ver=5.1.1:1
owl.carousel.min.js:47 Uncaught ReferenceError: jQuery is not defined
at owl.carousel.min.js:47
tb.carousel.js:209 Uncaught ReferenceError: jQuery is not defined
at tb.carousel.js:209

非常感谢您的帮助!

最佳答案

好的,我想我找到了问题。当您移动文件夹时,jquery 似乎已损坏。左下图是原始的 jquery.1.12.4,右图是您拥有的。

enter image description here

enter image description here

关于javascript - 删除和设置目录后,Wordpress 站点出现 JQuery 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45376379/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com