• When uploading an MP4 file, after the file is finished uploading, the page will halfrefresh and say HTTP Error.
    The file was fully uploaded. But would not let me add any info.
    The file IS NOT in the library but it is on the server.

    Yes, I updated php.ini myself to have a 7GB upload limit
    I adjusted wp-config.php with the code:

    define('WP_MEMORY_LIMIT', '64M')

    I have added all of the following to my .htaccess file

    AddType x-mapp-php5 .php
    
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
    
    # Exclude the file upload and WP CRON scripts from authentication
    <FilesMatch "(async-upload\.php|wp-cron\.php|xmlrpc\.php)$">
    Satisfy Any
    Order allow,deny
    Allow from all
    Deny from none
    </FilesMatch>

    I need to be able to upload large video files through the WP interface.

Viewing 15 replies - 1 through 15 (of 22 total)
  • If you are using a cheap hosting provider (godaddy, etc…) you might not be able to do this, regardless of the changes you do in your htaccess or php.ini. From experience, unless you are using premium hosting or a dedicated server, you probably won’t be able to upload files larger than 20-30mb

    What hosting provider are you using?

    Thread Starter nathank1989

    (@nathank1989)

    I’m managing a VPS

    Then you probably know more on the topic than I do :), sorry I couldn’t help!

    Thread Starter nathank1989

    (@nathank1989)

    Any tips anyone? I’ve read countless other threads with individuals trying to upload images. I have no problem with images. But anything over 20-50 MB gets fully uploaded, but wordpress doesn’t want to link it to the rest of the uploader so I can add the Meta information.

    There are a few values that you need to update to support larger file uploads.

    You would need to check that you have the following correctly set:

    max_execution_time
    max_input_time
    memory_limit
    upload_max_filesize
    post_max_size

    It maybe that you can upload the image fine however WordPress is not allowed to run it’s processing scripts for long enough to add it to the media library.

    https://www.php.net/manual/en/features.file-upload.common-pitfalls.php

    Thread Starter nathank1989

    (@nathank1989)

    There are a few values that you need to update to support larger file uploads.

    You would need to check that you have the following correctly set:

    max_execution_time
    max_input_time
    memory_limit
    upload_max_filesize
    post_max_size
    It maybe that you can upload the image fine however WordPress is not allowed to run it’s processing scripts for long enough to add it to the media library.

    https://www.php.net/manual/en/features.file-upload.common-pitfalls.php

    I checked that.
    Max_execution_time = 1600s
    max_input_time = 1600s
    memory_limit = 7000M
    upload_max_filesize = 7000M
    post_max_size = 7000M

    still HTTP error…

    I would try getting in touch wth your hosting provider and asking them to help you set up Apache and php. I certainly wouldn’t suggest keeping those settings.

    Thread Starter nathank1989

    (@nathank1989)

    Well I adjusted those settings to see if it made a difference, which it did not, so I reverted back to my back up .ini file
    Can WordPress just not handle large file uploads? I don’t get why it can actually perform the upload, but not load the page for entering the Meta information.

    It’s probably not a WordPress problem and more to do with the way your VPS is configured. You will need to carefully configure your server to allow larger file uploads. Paying for a VPS and just installing WordPress is not the way to do it.

    I strongly suggest you contact your hosting provider and have them perform an initial setup on your VPS to ensure it is correctly configured and secure.

    Also what kind of HTTP error do you get? What does it say?

    Thread Starter nathank1989

    (@nathank1989)

    Nope just say’s “HTTP Error” in red text. It’s not like a 404 error or anything. it pops up in wordpress.

    And my VPS is set up correctly. I had them do it twice already. I use Inmotion Hosting and they’re really good.

    It might be worth activating debug mode so you can get a more meaningful error message.

    https://codex.www.ads-software.com/Debugging_in_WordPress

    Also try this to see if mod_security is causing your issues blocking the upload.

    https://wordpress.stackexchange.com/questions/59763/how-to-fix-http-error-when-uploading-images

    Thread Starter nathank1989

    (@nathank1989)

    I have tried both of those solutions, and mod_security is not the issue.

    I’m trying to get debug mode to work correctly and get you the results.

    Mojo, your answers do not really ring true. I am on dedicated server that I fully own, and still have the exact same issue. Further more, my server was set up specifically to EXCEED the minimum system requirements of WordPress.
    Frankly, I wander if the problem is with how cPanel sets things up because when I installed Vestacp on a server with the exact same specs, this issue does not occur.
    I am of course referring to default setups of both control panels.

    i have the same problem wordpress 4.3, http error or image partially uploaded i made some changes in my php.ini and it works fine
    max_execution_time=6000
    max_input_time=6000
    memory_limit=1024M
    upload_max_filesize=32M
    post_max_size=32M

    On another server memory_limit=512M

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘HTTP Error after uploading files’ is closed to new replies.