• Hey guys,

    I’ve tried to import an xml-file bigger than 8 MB, but upload is limited to 8MB and it’s throwing this error:

    “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.”

    To resolve this issue I’ve tried to increase memory size to 250 MB by doing the following:
    Adding php.ini but it crashed my site.

    Also adding the following code in wp-config doesn’t make sense: define(‘WP_MEMORY_LIMIT’, ‘250M’);

    Using a plugin that increases max upload size also has no effect. It keeps throwing the same error.

    Have checked php memory in my WHM; it’s set at 2048MB (!).
    The max memory upload size appears to be fixed at 8 MB.

    Are there any other options to make it working?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello, Kookidooki, & welcome. Php memory & max_file_size are 2 very different things. You may wish to look in your hosting provider’s control panel under Php Options, Php Version, or similar. You may need to change versions in order to change options. Sometimes putting these directives in .htaccess files works, but there’s no guarantee, as this is highly dependent on the hosting provider. If there are no options to change this there, then I’d suggest you contact your hosting provider & see whether they can change this for you.

    Thread Starter Kookidooki

    (@kookidooki)

    Hello Jackie,
    Thank you for the info! I’m going to contact my hosting provider.

    Best,
    Kookidooki.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Cannot increase max upload size (8MB)’ is closed to new replies.