• Resolved mmarising

    (@mmarising)


    I have already read through the other posts about this issue from the past, but none were resolved and none seemed to have any answers that help here.

    Out of the blue, when I went to upload an image using the Flash uploader today, I got this message:

    “File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.”

    I have tried other images and even tried creating a new post in case the first one had glitched, but that has not helped. I do not upload large file sizes and the image in question is a simple 200×200 thumbnail that’s roughly 50kb.

    The Browser uploader doesn’t work, either, and I have contacted server support (GoDaddy, who said this was a WordPress issue and they may or may not be right) and accessed the configuration file details through the CGI Admin. file_uploads is set to On and the post_max_size and upload_max_size are both set at the same value. I have changed nothing in any of this and everything was working fine last night (and has for months).

    After reading posts here, I’ve tried creating new php.ini and php5.ini files with higher limits for upload and post max size, as well as file_uploads set to On, but that has not helped. I’m not sure what else I can do, but this is very random and I do not know how to fix it.

    The faster a resolution can be found, the better, so any help is greatly appreciated. Thanks.

Viewing 8 replies - 1 through 8 (of 8 total)
  • 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 the wp-admin and wp-includes folders from a fresh download of WordPress?

    Thread Starter mmarising

    (@mmarising)

    Just tried all of those things. None worked.

    Does the problem occur with all image uploads now? Have you checked your hosting space allocation recently? Or tried repairing your database?

    Thread Starter mmarising

    (@mmarising)

    Yes, it affects all images. Hosting is unlimited, so that’s not an issue. Databasing is a little beyond what I work at, so I haven’t done anything involving database repairs, etc. This seems to have happened within a 12-hour span, but I don’t know if that would suggest that a database issue is likely or not.

    Thread Starter mmarising

    (@mmarising)

    I’ll add to this. I never upload videos, etc., so I hadn’t tried that, but I did now. They do not work, either. So, I cannot actually upload anything through either the Flash or Browser uploader.

    I can FTP upload images to the appropriate folder in wp-content and link to them that way (which works, but takes some extra time), but I have to resize the images first and they are no longer “crunched” by WordPress, so the file sizes are quite large even if saved at a lower quality. This is tolerable for today, but isn’t a solution. It’s actually rather annoying.

    Still not 100% sure whether this is a WordPress problem or hosting.

    Thread Starter mmarising

    (@mmarising)

    At some point in the last hour, this has magically mixed itself (I didn’t do anything) and seems to be working now. I’ll mark this resolved in a week if the problem hasn’t resurfaced, but I’ll wait and see.

    i fixed it by changing the upload_tmp_dir (in php.ini) to a place with enough space..
    the sytem tmp dir can be full.

    aeonnox

    (@aeonnox)

    Hiya

    I have the same problem: I was able to upload pictures to my blog and it suddenly stopped working. i did nothing, like the poster before me said.

    could you please try fixing my blog, too? it is https://www.nomadenfloh.de

    thank you!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Suddenly can’t upload images – php.ini error’ is closed to new replies.