WordPress.org

Ready to get started?Download WordPress

Forums

post_max_size being defined as smaller than upload_max_filesize (3 posts)

  1. Mr. A
    Member
    Posted 3 years ago #

    Hello Friends!
    I have a problem when Import WordPress posts and other data using 'wordpress-importer' it says:

    "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."

    I added this code in wp-config file, but it not doesn't work, the code is:
    [define('post_max_size', '32M');
    define('upload_max_filesize', '32M');]
    what can I do?
    Thanks in advance

  2. Mr. A
    Member
    Posted 3 years ago #

    I also ussed this code(in wp-config):
    define('WP_MEMORY_LIMIT', '64M');
    ini_set('post_max_size', '50M');
    ini_set('upload_max_filesize', '50M');

    please please reply fast

    its very urgent

  3. Mr. A
    Member
    Posted 3 years ago #

    I made a php.ini file and use the following coding :
    "[PHP]
    post_max_size=64M
    upload_max_filesize=32M"
    but all in west.

Topic Closed

This topic has been closed to new replies.

About this Topic