Error with JQUERY in Multimedia Library of Wordpress

enter image description here With the latest version of Wordpress I can't upload media. It shows this message from debugger:

Uncaught Error: Syntax error, unrecognized expression: a[rel=] load-scripts.php?c=1&load[]=jquery-core,jquery-migrate,utils,plupload,jquery-ui-core&ver=4.2.2:2 Uncaught Error: Syntax error, unrecognized expression: a[rel=]

It doesn't show any item and when I try to upload a photo, it keeps the same screen

It seems to be a jQuery problem, I tried to re-upload again files from wp-includes and upload.php, but it didn't work.

It is important not to downgrade for our project, how can I solve that?

UPDATE: Key error to solve (not the a[rel=] one) enter image description here

UPDATE 2: It still fails at uploading, but it only has now the a[rel=] error enter image description here

Upvotes: 1

Views: 1178

Answers (1)

Tuan Anh Hoang-Vu
Tuan Anh Hoang-Vu

Reputation: 1995

Try adding the following line into your wp-config.php, preferably after

define ('WPLANG', '');

so it becomes

define ('WPLANG', '');
define ('CONCATENATE_SCRIPTS', false ); 

Upvotes: 2

Related Questions