WordPress.org

Support

Support » Requests and Feedback » "An error occurred in the upload. Please try again later."

"An error occurred in the upload. Please try again later."

  • drjoeblack

    @drjoeblack

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi

    @esmi

    Forum Moderator

    Anything in your site’s error logs?

    drjoeblack

    @drjoeblack

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"An error occurred in the upload. Please try again later."’ is closed to new replies.