• Is this a 2.7 bug? I had no problems uploading video in previous versions.

    My php.ini for upload_max_filesize is 32M. When I try to upload a video, I get the message “This file is too big. Your php.ini upload_max_filesize is 2M”.

    The error WordPress reported is not true. My max size in php.ini is 32M and the video I’m trying to upload is 5M. Like I said, I had no problem with 2.6, but with 2.7 I can’t upload videos without getting this erroneous error. Is anyone else having this problem or know what the solution may be?

    Thanks

Viewing 15 replies - 1 through 15 (of 16 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    If it says “2M”, then your upload_max_filesize really is 2M. WordPress gets that directly from PHP using the ini_get() function. It can’t make it up.

    Somewhere, your php.ini may be being overridden. Make a phpinfo page and look in there to see what it says.

    Also check on the post_max_size, while you’re at it.

    Thread Starter steveeyes

    (@steveeyes)

    I’m using the same php.ini file and domain that I used with version 2.6 before I upgraded to 2.7.

    The only thing I have on the site is wordpress files, nothing else so not sure what would be overriding the php.ini. Same directory, same domain, same php.ini file that was used with 2.6. Only after upgrading to 2.7 did I start getting the upload error.

    I even tried uploading videos I uploaded successfully with 2.6 and still get the error in 2.7. Doesn’t make sense.

    You are welcome to look at my php.ini

    https://www.online-money.org/phpinfo.php

    There seems to be two upload mechanisms. One is Flash based and one is Browser based. Use the browser method. If I use the flash one, I get the 2M limit error which does not match my PHP.INI setting either locally or on the server.

    Might be a bug somewhere with the Flash uploader.

    Thread Starter steveeyes

    (@steveeyes)

    I tried the browser one as well and had same problem. This is a bug in 2.7, no doubt. I have 2.6 on the same server with the same php.ini and tested it with no problems uploading. Only 2.7 gives me headaches….darn it. I knew I shouldn’t of upgraded. What do they say, if it isn’t broken, don’t fix it -:)

    Thanks anyways, Mark, for the info.

    In my case, the Browser method did not complain and uploaded the file (I saw the upload traffic via DUMeter); although, it didn’t show up in the media list… it was a .FLV media file and the file was not present in the wp-content/uploads folder either. A regular .jpg file it seemed to handle fine.

    Probably doesn’t know what to do with .FLV files or something I suspect. Anyway, I don’t store much media within my blog anyway.. main website and gallery have all that.

    Thread Starter steveeyes

    (@steveeyes)

    Well Mark, I’m disappointed since I wanted to upload videos. I have been testing other scripts I own just to make sure it wasn’t a server issue and all scripts I tested can upload video with no problems (except 2.7).

    I always set my php.ini upload max size higher than 2M since most videos are larger than 2M and never had a problem, that is until 2.7.

    I tested uploads on 5 other scripts, including 2.6 and all uploaded ok. Only 2.7 it doesn’t work….2.7 does handle jpg uploads ok. I think 2.7 ini_get() function is getting the wrong information -:) — back to 2.6…even though I think 2.5 was the best version of them all.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    steveeyes: Your phpinfo.php file says that your max upload size is 22M, not 32M.

    I think 2.7 ini_get() function is getting the wrong information

    The ini_get function is built into PHP, it is not a part of WordPress.

    Thread Starter steveeyes

    (@steveeyes)

    22M is still plenty big for the video I’m uploading (it is 5M). Like I said in my first post, when I try to upload I get the message

    “This file is too big. Your php.ini upload_max_filesize is 2M”.

    Which is not true. As you stated it is 22M, so why does wordpress report it being 2M. It has to be a bug.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.remarpro.com Admin

    It doesn’t “has to be” anything. The code is perfectly clear:

    'file_exceeds_size_limit' => sprintf(__('This file is too big. Your php.ini upload_max_filesize is %s.'), @ini_get('upload_max_filesize')),

    See that ini_get(‘upload_max_filesize’)? That’s native PHP code. It gets that “2M” directly from PHP itself. There *cannot* be a bug here with WordPress, because the 2M is what PHP itself is reporting.

    The ini_get function is a native PHP function. If there’s a problem, the problem is in PHP or your PHP configuration, not in WordPress. And there’s nothing we can do about your configuration.

    You have phpinfo reporting 22M, but WordPress getting 2M. Well, you do know that PHP can be configured to have different settings in different directories? Why not try putting your phpinfo into the wp-admin directory and reporting what it says there, hmm?

    Thread Starter steveeyes

    (@steveeyes)

    that worked…thanks…i put php.ini in wp-admin directory and now no error. Thanks for your help and patience.

    When I upgraded to 2.7, my php.ini file was stripped out of wp-admin. Same thing probably happened to you steveeyes. Once I copied/pasted one of the other php.ini files from the other directories, everything was fine.

    Bluehost (my hosting company) seemed to think it may be a bug in SimpleScripts, the automated script installer they use to generate WordPress installations automatically. They went ahead and filed a bug. Hope that helps others scratching their heads with this!

    Hey Daniel – I’m a newbie and feeling my way through all of this.
    When you stated that you…”copied/pasted one of the other php.ini files from the other directories”
    What exactly did you do? I don’t know what “directories” refers to.
    Thanks for any insight!

    Perfect answer, thank you!

    I had already tweaked my php.ini (the php.ini that comes with hostmonster/bluehost hosting) to up the limits, but it wasn’t working.

    Then I copied my php.ini from my root directory and put it in the wp-admin folder. I logged out of the wp admin panel, cleared my browser cache, and logged back in. Now everything works with higher limit uploads.

    Brilliant. Thank you!

    I’m having an even stranger problem – I’m trying to upload a video that is 36 MB and getting this error:

    This file is too big. Your php.ini upload_max_filesize is 50M.

    How the heck does that happen?

    seems like you would have enough space…..but there is overhead, and I have no clue how much.

    But I do know that on a file upload site I have, if the max filesize is less than 300M, a 200M file won’t upload. I always seem to need to leave a max filesize 50-100% the size of the file…… but I can’t find a set rule….

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘2.7 Video Bug?’ is closed to new replies.