Wordpress Unable to upload images

984 Views Asked by At

For some days now, in the admin area you have had these errors:

Uncaught SyntaxError: expected expression, got '<'.

on files moxie.min.js, plupload.min.js, wp-plupload.min.js

This does not allow us to upload images to media galleries, pages, articles...

When entering in Media Gallery we have this error: Uncaught TypeError: wp.Uploader is undefined on media-grid.min.js; and no images!

If I try to upload an image from a page or post, we have the same above error but on the file media-views.min.js.

The front-end has no errors.

Some "online solutions" have already been tried, as well as updating everything, restoring a backup, installing worpdress again via ftp...

The problem remains!

I don't know how it happened, the owner of the site didn't make any operation.

Any idea?

Thanks!

2

There are 2 best solutions below

0
Luca Landi On BEST ANSWER

Resolved! It was an older redirection. This redirection took all the urls with the term 'upload', so also the js plupload.min.js and consequently all the others (moxie.min.js...).

0
Silent observer On

Are you using a cache plugin ? Sometimes using those kind of plugin can break the js for some elements.