• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

Wordpress Upload error

Trying to upload a file.
Gets error. “An error occurred in the upload. Please try again later.”

But looking at the backend look like upload works, but error is when its reading it back.

So basically it is having trouble reading the folder.
Manoj Chacko
Manoj Chacko
  • 4
1 Solution
Ray PaseurCommented:
Are you using a plug-in for the upload?  There are only a few recognizable upload errors.  In PHP you can detect these as shown here:
$errors = array
( UPLOAD_ERR_OK         => "Success!"
, UPLOAD_ERR_INI_SIZE   => "The uploaded file exceeds the upload_max_filesize directive in php.ini"
, UPLOAD_ERR_FORM_SIZE  => "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form"
, UPLOAD_ERR_PARTIAL    => "The uploaded file was only partially uploaded"
, UPLOAD_ERR_NO_FILE    => "No file was uploaded"
, 5                     => "UNDEFINED ERROR #5"
, UPLOAD_ERR_NO_TMP_DIR => "Missing a temporary folder"
, UPLOAD_ERR_CANT_WRITE => "Cannot write file to disk"
, UPLOAD_ERR_EXTENSION  => "A PHP extension stopped the file upload"

Open in new window

Manoj ChackoAuthor Commented:
I am using the wordpress upload, not any plugins, not see any specific errors,
When I look from the backend the file does get uploaded, so I believe its trying to read part its crashing.

So when I go to dashboard Media I see that its thinking but does not show any existing file, and after uploading the file get uploaded but then gives this error

 “An error occurred in the upload. Please try again later.”
Manoj ChackoAuthor Commented:
Looks like When Adding media through list works

Grid - does not work
Add media to page/post does not work
Add Avatar does not work
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Manoj ChackoAuthor Commented:
It looks like something to do with javascript on the site,

Any idea how this can be fixed, It is a very critical issue
Terry WoodsIT GuruCommented:
Are you still having the issue?

There's a set of instructions for resolving the problem here, and they look thorough:

Let us know how you go.
Manoj ChackoAuthor Commented:
It was finally fixed there was a bad command in a plugin in the muplugins folder.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now