• Resolved strummer77

    (@strummer77)


    I’ve added the following to .htaccess:

    php_value upload_max_filesize 64M
    php_value post_max_size 64M
    php_value max_execution_time 300
    php_value max_input_time 300

    wp-config:

    @ini_set( 'upload_max_size' , '64M' );
    @ini_set( 'upload_max_filesize' , '64M' );
    @ini_set( 'post_max_size', '64M');

    functions.php:

    @ini_set( 'upload_max_size' , '64M' );
    @ini_set( 'post_max_size', '64M' );
    @ini_set( 'max_execution_time', '300' );

    I also tried creating a php.ini in the root (and tried moving it to the admin folder, and tried renaming it ‘php5.ini’) and added this:

    upload_max_filesize = 64M
    post_max_size = 64M
    max_execution_time = 300

    None of the above worked, the only thing that made any difference was adding this to the media.php file:

    $u_bytes = wp_convert_hr_to_bytes( '128MB' );
    $p_bytes = wp_convert_hr_to_bytes( '128MB' );

    But all this seemed to change was the text ‘Maximum upload file size: 128 MB.’ is allowed the import to start, but it didn’t allow the upload, ‘http error’.

    I have the following installed, and I’m using Paradise Cove by ThemeFuse
    WordPress 4.3.1
    All In One WP Security
    Sucuri Security

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    In this case, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    Thread Starter strummer77

    (@strummer77)

    You lead me to the correct place to change it, in my hosting control panel.

    Thanks.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Maximum upload file size – tried everything!’ is closed to new replies.