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

  1. drjoeblack
    Posted 2 years 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 ) )

    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 2 years ago #

    Anything in your site's error logs?

  3. drjoeblack
    Posted 2 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic