删除和设置目录后,Wordpress站点的JQuery错误

时间:2017-07-28 14:45:16

标签: javascript jquery wordpress

我想将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

非常感谢你的帮助!

1 个答案:

答案 0 :(得分:0)

好的,我想我发现了这个问题。当您移动文件夹时,jquery似乎已损坏。在左下方,图像是原始的jquery.1.12.4,而右边的图像是你拥有的。

enter image description here

enter image description here