Solved

Wordpress Upload error

Posted on 2016-09-06
7
27 Views
Last Modified: 2016-10-31
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.
0
Comment
Question by:Manoj Chacko
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
7 Comments
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 41786796
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:
// ARRAY OF ERRORS THAT MAY BE REPORTED IN $_FILES[]["error"] (THERE IS NO #5)
$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

0
 

Author Comment

by:Manoj Chacko
ID: 41787086
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.”
0
 

Author Comment

by:Manoj Chacko
ID: 41788417
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
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

Author Comment

by:Manoj Chacko
ID: 41788570
It looks like something to do with javascript on the site,

Any idea how this can be fixed, It is a very critical issue
0
 
LVL 35

Expert Comment

by:Terry Woods
ID: 41800797
Are you still having the issue?

There's a set of instructions for resolving the problem here, and they look thorough:
https://sebastian.expert/fix-wordpress-an-error-occurred-in-the-upload-please-try-again-later/

Let us know how you go.
0
 

Accepted Solution

by:
Manoj Chacko earned 0 total points
ID: 41830610
It was finally fixed there was a bad command in a plugin in the muplugins folder.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question