JavaScript error in Wordpress admin after upgrading to version 3.8

5

Recently I upgraded a WordPress 3.0 installation to 3.8 and the drag and drop functionality stopped working.

I noticed two JavaScript errors on the page in the load-scripts.php file indicating an ILLEGAL token . The error I got from the chrome console is this:

  Uncaught SyntaxError: Unexpected identifier load-scripts.php? c = 1 & load% 5B% 5D = hoverIntent, common, admin-bar, jquery-ui-core ... pabl e, admin-widgets, svg-painter, heartbeat, wp-auth-check, thickbox & ver = 3.8: 2

I have already disabled all the plugins and other steps indicated in a post in the forum WordPress , but it still did not solve the problem.

    
asked by anonymous 03.01.2014 / 20:51

4 answers

2

Looking for some more I found in StackOverflow in English a alternative that worked . In the end it was necessary to change the php.ini and disable the following configuration variables:

magic_quotes_gpc
magic_quotes_runtime
magic_quotes_sybase

With that, it worked.

    
13.01.2014 / 20:16
3

Do not ever mess with WordPress core files, even jQuery.

If you suspect something has broken, download it again and replace the files.

Make a backup of the file wp-config.php and the wp-content folder.

    
21.01.2014 / 16:40
0

Try to download the original JQUERY, at least version 1.6.1, copy the content and replace it with the file wp-includes/js/jquery/jquery.js .

    
03.01.2014 / 21:04
-1

To solve this problem, get the latest version of Wordpress in the latest theme, and copy the file 'functions.php' and the 'inc' folder to your current theme.

    
26.11.2016 / 23:49