-1

I have problem with missing files of jquery in wp-admin. On live site everything is correct, 0 bugs but on wp-admin like you see it's messing jquery file. Any ideas?

enter image description here

pwo
  • 85
  • 1
  • 1
  • 6

1 Answers1

0

Maybe there is a plugin which causes the problem. Try to deactivate them one by one, if it solves the issue. Try changing the theme, there might be the problem. If this does not help:

You can try to add jQuery to your backend by hand using admin_enqueue_scripts and putting this in the function.php file of your theme:

function my_jquery_script() {

    wp_enqueue_script( 'jQuery', 'https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js');

}    
add_action( 'admin_enqueue_scripts', 'my_jquery_script' );

https://developer.wordpress.org/reference/hooks/admin_enqueue_scripts/

rank
  • 2,361
  • 2
  • 10
  • 20
  • I deactivated all plugins , I changed theme to default I also add to the start of my function.php file admin_enqueue_scripts and I still has errors with jQuery.... – pwo Jan 30 '21 at 21:24