• Hi,

    I cannot upload any file in the library after upgrade to 4.9.4. I get the following error (here in french)

    ?  ? n’a pas pu être téléversé.
    Le fichier est vide. Veuillez téléverser quelque chose de plus substantiel.

    which is in english:

    " " can't be uploaded
    The file is empty. Please feed with a more substential file.

    Any idea ?

    Thanks a lot

    • This topic was modified 6 years, 9 months ago by termel.
    • This topic was modified 6 years, 9 months ago by termel.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Have you asked your hosts to check the max_file_size settings in your server’s php.ini file?

    Thread Starter termel

    (@munger41)

    Here is my php.ini

    ; Whether to allow HTTP file uploads.
    ; https://php.net/file-uploads
    file_uploads = On
    
    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ; https://php.net/upload-tmp-dir
    ;upload_tmp_dir =
    
    ; Maximum allowed size for uploaded files.
    ; https://php.net/upload-max-filesize
    upload_max_filesize = 128M
    upload_max_size = 64M
    #post_max_size = 64M
    #upload_max_filesize = 64M
    ; Maximum number of files that can be uploaded via a single request
    max_file_uploads = 50 
    Thread Starter termel

    (@munger41)

    I tried uncomment line:

    post_max_size = 64M

    but no more success.

    Why are these configured to different file sizes?

    upload_max_filesize = 128M
    upload_max_size = 64M

    Try increasing upload_max_size to 128M

    How large are the files you are trying to upload?

    Have you asked your hosts for assistance? They could still be blocking the uploads at their end.

    Thread Starter termel

    (@munger41)

    I thy to upload different file sizes from a few kB to a few MB.
    No more success with :

    upload_max_filesize = 128M
    upload_max_size = 128M

    I actually host myself on a dedicated server.
    Maybe a recent apache update changed something?

    • This reply was modified 6 years, 9 months ago by termel.

    It does sound like there’s a problem on the server rather than in WordPress but I’d have thought that a released apache update would be pretty sound. That said, it could be that the upgrade wasn’t 100% successful. Can you rollback to the previous apache version?

    • This reply was modified 6 years, 9 months ago by esmi.
    Thread Starter termel

    (@munger41)

    Thanks @esmi, but i would like to understand what is happening.
    I have actually 2 php.ini files inside my /etc/php/7.0/apache2/ folder

    -rw-r--r-- 1 root root 69373 févr. 28 16:22 php.ini
    -rw-r--r-- 1 root root 71021 févr. 28 16:25 php.ini.ucf-dist

    It seems the second overrides the first, as when i change values in it i can see the maximum upload size change in WP media upload admin panel….

    Thread Starter termel

    (@munger41)

    Although WP indicates a max upload file size of 15 MB, which is not what is set in both files (64M), can a third config file be overriding this ?

    can a third config file be overriding this

    Short answer: yes

    Longer answer: WordPress itself doesn’t impose any file size limits. It uses the limits set by the server’s configuration.

    Thread Starter termel

    (@munger41)

    Can you imagine which file could override this ?

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Cannot upload *any* file after 4.9.4 upgrade’ is closed to new replies.