• Resolved tonycutty

    (@tonycutty)


    I’ve tried several times to upload an mp3 file (13Mb file size) to my media library. At first, the uploader gave the error message that the upload limit was 2Mb and recommended I contact my hosting provider. This was confirmed by several ‘file upload size changer’ plugins which did not work for the same reason, so I ununstalled them and contacted my sevice provider. After some to-ing and fro-ing, they set the limit to 64Mb. So far, so good.

    But then I tried to upload the file again, and while it didn’t complain about the file size this time, it did complain about something about headers already being uploaded. And of course, no file upload happened.

    Well, here are the error messages that it gave:

    Maximum upload file size: 64 MB.
    Crunching… (this is a blue button that doesn't work)
    
    Warning: POST Content-Length of 13918591 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
    
    Warning: Cannot modify header information - headers already sent in /home/www/www.flyinginthespirit.cuttys.net/wp-admin/includes/misc.php on line 1381
    
    Warning: Cannot modify header information - headers already sent in /home/www/www.flyinginthespirit.cuttys.net/wp-includes/functions.php on line 6878
    
    Warning: Cannot modify header information - headers already sent in /home/www/www.flyinginthespirit.cuttys.net/wp-admin/async-upload.php on line 25
    The link you followed has expired.
    
    Please try again.

    —-

    Of course, trying again doesn’t help either.

    Any ideas, please?

    Using WP version 6.0.2 with PHP 8.0.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The header already sent usually happens with a coding error. Most of the time something is being echoed out or an error message has occurred. It might be coming from a plugin or from your functions.php file. If you made any changes in functions.php try changing it back to see if it helps. If it doesn’t try disabling your plugins one at a time and retrying.

    Thread Starter tonycutty

    (@tonycutty)

    Well, I haven’t been messing with the functions.php file (I wouldn’t know how to!) so I’ll try disabling plugins as you suggest – thanks ??

    Could it also be that the plugins I tried to use to change something and broke it?

    Also if it’s ‘headers’ that are already sent, is that ‘header’ specific to the file, so if I change the filename it won’t recognise the header as already sent?

    Cheers

    it might be a bug in the plugin. It shouldn’t cause a problem unless you change some code in the plugin. The header is sent as the first thing. But, some text is being sent and WordPress thinks you are trying to send the header again. The header itself can contain different things. It could contain validation codes if you are using some kind of rest API or it might not contain anything.

    Thread Starter tonycutty

    (@tonycutty)

    It’s now sorted out… I had uninstalled the file size plugins and it had reset my limit to 2Mb <facepalm>. So I installed a new (different) plugin, reset the file limit to 64Mb and also changed the filemane of the mp3 file. And it worked. So a combination of your ideas (fiddle with the plugins) and mine (change filename, based on your advice) has done it.

    Thanks Tom, I couldn’t have done it without your help! Cheers mate. I owe you a pint ??

    • This reply was modified 2 years, 6 months ago by tonycutty.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uploaded file to Media but then lots of Error messages’ is closed to new replies.