• Resolved ChrisLowrance

    (@chrislowrance)


    Hi,

    I’ve got the classic “An error occurred in the upload” error happening when attempting to upload images. This is on a brand-new install on a brand-new VPS server.

    Thus far, I’ve tried:

    • Deactivating all plugins AND resetting the plugin folder.
    • Switching the theme to 2014.
    • Deleting and reinstalling all WordPress files except wp-content.
    • CHMODing uploads to “777” (temporarily, just to rule out a permissions problem)
    • Making sure suexec and suphp were on.
    • Trying different file sizes from 200k to 1000k.
    • Checking error logs (nothing was recorded).
    • Blood sacrifice.

      Nothing helped. The actual behavior is sporadic – every so often an image does work. Usually I get the “upload failed” message, but the file DID upload but either didn’t create thumbnails and sized versions, or only created one or two.

      It seems to me like this isn’t a permissions problem – otherwise CHMODing to 777 would have an effect, and images wouldn’t upload at all. Instead, it’s as if the process is being cut off part-way through.

      Anyone have any ideas? I’m stumped.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Blood sacrifice jaja…

    You can try to increment PHP Memory Cache from your WP-Settings.php
    Verify your upload folder.

    Try to go to permalinks and resave your preferred permalink style.

    Hope this helps.

    Thread Starter ChrisLowrance

    (@chrislowrance)

    PHP memory_limit did the trick. It was set at 32M. Just raising it 64M fixed the issue for me.

    Oddly, define( 'WP_MEMORY_LIMIT', '64M' ); did NOT help. I had to do it from within PHP.ini.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘"An error occurred in the upload" – Have tried everything’ is closed to new replies.