WordPress.org

Ready to get started?Download WordPress

Forums

"An error occurred in the upload. Please try again later." (3 posts)

  1. drjoeblack
    Member
    Posted 10 months ago #

    This is a difficult error message to diagnose, mainly because it doesn't give you any useful information about the real error.

    Can you PLEASE add more debugging info into wp_ajax_upload_attachment() in ajax-actions.php to improve actions such as:

    if ( ! current_user_can( 'edit_post', $post_id ) )
    wp_die();

    outputting some json message before dying would greatly help anyone who encounters the upload message - because most of the advice given to resolve this error is of little help

    In this case, when logged in as the administrator, I don't have permission to edit posts (strange?!). and so cannot upload images

  2. esmi
    Forum Moderator
    Posted 10 months ago #

    Anything in your site's error logs?

  3. drjoeblack
    Member
    Posted 10 months ago #

    Nothing in the apache2 error logs, or the php error log.

    In this case, I had to bypass both the "can upload_files" and "can edit_posts" checks... and I was able to upload images successfully.

    Being logged in as an Administrator, this should not happen normally. This leads me to believe it is a cookie problem.

Reply

You must log in to post.

About this Topic