406 error with attachments over 10MB

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
turbomkt
Registered User
Posts: 5
Joined: Sat Feb 11, 2012 12:36 am

406 error with attachments over 10MB

Post by turbomkt » Sat Feb 11, 2012 12:49 am

Support Request Template
What version of phpBB are you using? phpBB 3.0.11
What is your board's URL? available upon request
Who do you host your board with? MidPhase
How did you install your board? I used a tool provided by my host
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
What version of phpBB3 did you update from? phpBB 3.0.9
What styles do you currently have installed? Prosilver and Subsilver
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP and phpBB
What username can be used to view this issue? available upon request
What password can be used to view this issue? available upon request
When did your problem begin? This began in the last few weeks. I updated to the latest version (3.0.10) to see if it would help, but there was no change. Tried adding to .htaccess to see if it made a difference, and there was none. Host wants more information before they will make changes to mod_sec. With smaller attachments working, I'm not sure it's a mod_sec issue.
Please describe your problem. When uploading some attachments (over 10MB) received 406 error:
Not Acceptable

An appropriate representation of the requested resource /posting.php could not be found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Generated by SRT Generator

Edited to updated phpBB version to 3.0.11.
Last edited by turbomkt on Sun Sep 16, 2012 11:04 pm, edited 1 time in total.

User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: 406 error with attachments over 10MB

Post by Oyabun1 » Sat Feb 11, 2012 2:00 am

I'd suggest giving your host the information they requested. 406 errors are usually to do with server setup and nothing to do with phpBB.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests

turbomkt
Registered User
Posts: 5
Joined: Sat Feb 11, 2012 12:36 am

Re: 406 error with attachments over 10MB

Post by turbomkt » Sat Feb 11, 2012 2:30 am

Could it really still be a server side issue when smaller attachments work? In testing I was able to post .2, 2, 3, 6, 7 and 10MB files of various types. It's not until it gets bigger that it does not work.

ETA: Thanks for the look and any help I get.

femu
Registered User
Posts: 1070
Joined: Tue Sep 27, 2005 10:03 am

Re: 406 error with attachments over 10MB

Post by femu » Sat Feb 11, 2012 4:18 am

As Oyabun1 said. Talk with your provider. A lot of providers restrict file sizes, when uploading through http. Alternativly you can try to upload a bigger file via FTP
Regards, femu
_____________________________________________
[My development page] - [My normal homepage (German only)]

turbomkt
Registered User
Posts: 5
Joined: Sat Feb 11, 2012 12:36 am

Re: 406 error with attachments over 10MB

Post by turbomkt » Sun Sep 16, 2012 9:04 pm

Thanks to work and other things, I haven't been able to give this problem the attention it deserves. The last thing the host sysadmin has done is add a line to .htaccess to give my php.ini precedence over all others.

Which variables are most likely to cause problems?

Code: Select all

max_execution_time = 600
max_input_time = 600	
default_socket_timeout = 600

User avatar
DionDesigns
Registered User
Posts: 515
Joined: Sun Feb 26, 2012 11:22 pm
Location: Uncertain due to momentum.
Contact:

Re: 406 error with attachments over 10MB

Post by DionDesigns » Sun Sep 16, 2012 10:56 pm

Go to your ACP and click the "PHP Information" link on the left. Now find the block labeled "Core", and let us know the Local Value and Master Value for upload_max_filesize and post_max_size.

turbomkt
Registered User
Posts: 5
Joined: Sat Feb 11, 2012 12:36 am

Re: 406 error with attachments over 10MB

Post by turbomkt » Sun Sep 16, 2012 11:01 pm

These shouldn't be a problem, I think.

Code: Select all

post_max_size	1024M
upload_max_filesize	1024M

User avatar
Lumpy Burgertushie
Registered User
Posts: 66908
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: 406 error with attachments over 10MB

Post by Lumpy Burgertushie » Sun Sep 16, 2012 11:33 pm

that is 1 gb I have never seen a host setting that high.

also, quite often the setting you can see is not the only one there is.

so, contact your host and ask them about this. it is their server and they have control over the settings.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

turbomkt
Registered User
Posts: 5
Joined: Sat Feb 11, 2012 12:36 am

Re: 406 error with attachments over 10MB

Post by turbomkt » Sun Sep 16, 2012 11:37 pm

Thanks. They claim to have added code to .htaccess that has my php.ini override any others. I'm also continuing to push back on them to figure this out. It worked, then it didn't. I hadn't changed anything at that point.

pacificfils
Registered User
Posts: 16
Joined: Mon Sep 03, 2012 8:28 pm
Name: 10010001001101 00010111000101

Re: 406 error with attachments over 10MB

Post by pacificfils » Mon Sep 17, 2012 4:33 pm

Ok. Finally something I can explain.

A 406 means that the file is too large. What PHP and .htaccess report are COMPLETELY different. Many times, a host puts a restriction on the bandwith, usually 2 MB, 5 MB, or 10 MB. Many hosts do this so they are not flooded with data.

Either get a better plan with larger bandwidth, (GoDaddy doesn't as far as I know, give out 1GB uploads.)
or host your own server and set your own bandwidth size.

----

If you are the one trying to upload this file, try to put it using FTP in the store/ folder and link to it, so people can download.

If someone else is trying to upload this file, try to get the file from them, or give them an FTP account to upload. DELETE THE ACCOUNT WHEN THE USER IS DONE! Tell them to link to the file.

Good luck!
Disclaimer: I am NOT responsible for damages to any board but my own. If something goes wrong, I'm not responsible. It is YOUR decision to do what YOU want to do with YOUR board.

YOU HAVE BEEN WARNED!

Oleg
Former Team Member
Posts: 1221
Joined: Sat Jan 30, 2010 4:42 pm
Location: NYC
Contact:

Re: 406 error with attachments over 10MB

Post by Oleg » Mon Sep 17, 2012 5:36 pm

Check your web server error logs for why it sent a 406.

phpbb does not use that status code. It's something that the web server does on its own initiative. You should ask your host why this is happening.
Participate in phpBB development: Get involved | Issue tracker | Report a bug | Development board | [url=irc://chat.freenode.net/phpbb-dev]Development IRC chat[/url]
My stuff: mindlinkgame.com

Locked

Return to “[3.0.x] Support Forum”