WordPress.org

Support

Support » Alpha/Beta » [Resolved] Php.ini problem with uploader

[Resolved] Php.ini problem with uploader

  • 2tonewarrior

    @2tonewarrior

    Hello, when i try to upload a file througt the flash uploader it runs an error “El archivo es demasiado grande. El tamaño máximo permitido por tu php.ini es de 200000M. ( the file is too big. The max. size permited by your php.ini is 200000M) and i am trying to upload a pdf!!(about 9 Mb) How is this possible?

    Can anyone help me please?

    thanks

    p.d.: normal uploader, obviously goes right

Viewing 11 replies - 1 through 11 (of 11 total)
  • 2tonewarrior

    @2tonewarrior

    nobody help me? :S

    2tonewarrior

    @2tonewarrior

    pleeeaaaaase

    2tonewarrior

    @2tonewarrior

    no idea?

    ideahaus

    @ideahaus

    I read in another stream it has to do with modify a code line in php.ini and having Apache restarted from your host (just paraphrasing). I searched based on the error I received.

    Hope this helps.

    kp

    I have the same problem with the flash uploader. It says my max file size in php.ini is 2M. That is NOT true, according to phpinfo my max file upload size is 55M and that is confirmed in my php.ini file.

    PLS HELP.
    Flash 9, WP 2.6.2
    swfuploader_f9.swf version from svn trunk (version from 2.6.2 was missing in my installation)

    “PHP has two settings called upload_max_filesize and post_max_size, which can control how big a file you can upload. The smaller wins.”

    http://wordpress.org/support/topic/201245?replies=18#post-875560

    My php.ini

    [PHP]
    safe_mode = off;
    max_execution_time = 100000;
    max_input_time = 1000000;
    open_basedir =
    upload_max_filesize = 200000M;
    post_max_size = 1000000M;
    register_argc_argv = On;

    any other idea to fix the problem?

    This response is for those who manage their own Linux server. If you do not, then your services’ admin would have to make the changes since you most likely would not have the authority. On a Linux box determine what php.ini file your php is using. Do this with a file called junk.php for example. It should look like:

    <?
    phpinfo() ;
    ?>

    In your browser of choice enter: “http://www.yoursite.com/junk.php”

    This will output a lot if data if your php environment is functioning properly. Look for the following:

    Configuration file path – your php.ini file
    upload_max_filesize 2M

    vi your php.ini file (noted in the above output) looking for “upload_max_filesize” and change it to what you think you need, i.e., 33M. Restart apache
    (service httpd restart) to pick up the new value. Look at “http://www.yoursite.com/junk.php” (may need to force a refresh) to see your new “upload_max_filesize” value. This should correct your 2M limitation.

    I have seen a lot of posts where many have changed this value in their php.ini file and “nothing happens”. I am assuming that this is because the apache server (or whatever they are using) is not being restarted to acquire these new values.

    Hope this helps.

    Hi,

    You need to add this code in any php file and upload it in the plugins directory. After that need to activate this plugin.

    <?php
    ini_set(‘upload_max_size’,’100M’);
    ini_set(‘post_max_size’,’105M’);
    ini_set(‘max_execution_time,’300’);
    ?>

    This should resolve the issue.

    Thanks,

    Shane G.

    Nah, this breaks into this error behind the uploader popup, back on edit post:

    Warning: Cannot modify header information – headers already sent by (output started at /home/www/domain/wp-content/plugins/fix_flash_upload_filesizes.php:12) in /home/www/domain/wp-includes/classes.php on line 1586

    WP 2.8.5

    Fixed the comma and the quotes into:

    <?php
    	ini_set('upload_max_size','128M');
    	ini_set('post_max_size','128M');
    	ini_set('max_execution_time','300');
    ?>

    Ps. if you don’t include a proper header, WP disables the plugin anyway. This is nuked.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Resolved] Php.ini problem with uploader’ is closed to new replies.
Skip to toolbar