WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Another "An error occurred in the upload..." Issue (18 posts)

  1. hcvg
    Member
    Posted 8 months ago #

    Hi Guys,
    I've been reading through the forums trying to resolve what appears to be a common problem with photo uploads.

    I'm running the latest version, 3.8, and using Arras theme.

    When I (Administrator) or others (Editor or Author) try to upload photos we're seeing, "An error occurred in the upload. Please try again later."

    If one closes the window, saves a draft, then returns to the media insertion, the photo appears seems to be successfully uploaded and is usable.

    I've tried disabling all plugins, switching to a simple theme, like twentytwelve, but it still gave same errors on upload.

    This issue has been around for a long time, and sometimes disappears. At one point I thought it was a folder permissions issue, and it seemed to get resolved by making sure they were set to the correct user. cPanel seems to sometimes adjust these things. However, now the permissions seem correct and I'm totally stuck.

    Any suggestions?

  2. esmi
    Forum Moderator
    Posted 8 months ago #

    Try checking your site's error logs for a more specific error message. Your hosts should be able to help you accessing your site's error logs.

  3. hcvg
    Member
    Posted 8 months ago #

    Hi Esmi, Thank you, but there are no errors in the error log relating to wordpress.
    Any other ideas?

  4. esmi
    Forum Moderator
    Posted 8 months ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the default theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

    - re-uploading all files & folders - except the wp-content folder and wp-config.php & root .htaccess files - from a fresh download of WordPress. Make sure that you delete the old copies of files & folder before uploading the new ones.

  5. kaotik
    Member
    Posted 8 months ago #

    Sounds like WordPress rushed this latest update out and there's too many problems with it.

  6. WPyogi
    Volunteer Moderator
    Posted 8 months ago #

    @kaotik - this is not your thread - if you need help, please start your own.

  7. hcvg
    Member
    Posted 8 months ago #

    Hi esmi, I just spent a couple hours doing all of what you suggested. It's still not working.
    Again, maybe these clues can help you suggest a fix... when I go to upload, it seems to get to 98%, then drops to about 50%, then again 98%, repeated this 1-3 times total. After, if I return to compose and save a draft, when I open the media, the photos are there, often multiple times.
    Any ideas?

  8. esmi
    Forum Moderator
    Posted 8 months ago #

    Site url?

  9. hcvg
    Member
    Posted 8 months ago #

  10. esmi
    Forum Moderator
    Posted 8 months ago #

    You are not using the default theme and you have multiple active plugins.

  11. hcvg
    Member
    Posted 8 months ago #

    Hi Esmi, I just put everything back after resetting from no plugins and twentytwelve theme. What do you suggest?
    I can revert again if you can debug by looking at it in that state.
    Let me know. Thanks.

  12. hcvg
    Member
    Posted 8 months ago #

    Hi Esmi, I'd really appreciate your help on this. Do you need me to go back to no plugins and twentytwelve theme in order to proceed?

  13. hcvg
    Member
    Posted 8 months ago #

    This is resolved now. I believe the issue is tied to directory ownership caused by cpanel updates.

  14. jrotella
    Member
    Posted 7 months ago #

    Hi hcvg!
    Can you elaborate on the directory ownership problem? I would love to fix this on my site - it's making me CRAZY!
    Thanks!
    Joe

  15. hcvg
    Member
    Posted 7 months ago #

    Hi Joe,
    It's running on a dedicated server using apache. Instead of running as "User/Group" it was set to "nobody / nobody". Once we fixed that, wordpress then had the correct permissions.
    Hope that helps. Best.

  16. rock.lee
    Member
    Posted 4 months ago #

    I spent half day fighting with this problem and soloved it, Hope this may help you

    in "FUNCTIONS.PHP" file
    Make sure you don’t have any lines with comments in HTML mark up (Example <!– I am a HTML code comment –> )
    Make sure you open and close the PHP tags ONLY ONCE!!! in the file.

  17. etestonline
    Member
    Posted 4 months ago #

    i made some changes in functions.php file, so what i exactly to change in this file regarding "Make sure you open and close the PHP tags ONLY ONCE!!! in the file"

  18. KlaasvnA
    Member
    Posted 4 months ago #

    @rock.lee. I'm trying to fix my upload issue for the whole weekend now. I'm happy to read your comment!

    In my function.php I call a php file where I register my custom posts. In that php file I indeed had some HTML mark up (<!-- Some text -->). After I deleted the HTML mark up from the php files Everything worked again.

    So for everyone else: I could be that your theme uses custom posts and that there is HTML mark up in those files.

Reply

You must log in to post.

About this Topic