WordPress.org

Forums

Increasing post_max_size' in php.ini file? (4 posts)

  1. AmmatuNur
    Member
    Posted 3 years ago #

    I am trying to import all my website data to sub-domain. When I import/upload (that downloaded file) to sub-domain. I get this error. How to fix it?
    ERROR:
    Sorry, there has been an 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.

    There is no 'post_max_size' in php.ini file.
    Only this is written here:
    memory_limit = 72M;
    Thanks!

  2. Peter Wooster
    Member
    Posted 3 years ago #

    My php.ini includes both upload_max_filesize and post_max_size. Have you run phpinfo to see what php.ini is being used.

    /peter

  3. AmmatuNur
    Member
    Posted 3 years ago #

    Hi,
    Thanks for replying.
    Only this is written in phpinfo:

    <?php
    phpinfo();
    ?>
  4. Peter Wooster
    Member
    Posted 3 years ago #

    Yes, run it from your browser and it will tell you more than you need to know about your configuration. Don't leave that file on your system as it gives away a lot of hints to hackers.

Topic Closed

This topic has been closed to new replies.

About this Topic