Simple Machines Community Forum

General Community => Site Comments, Issues and Concerns => Topic started by: Kratty256 on April 13, 2011, 11:02:03 AM

Title: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 11:02:03 AM
Keep getting this error everywhere, what exactly does it mean?
Title: Re: 413 Request Entity Too Large
Post by: Arantor on April 13, 2011, 11:07:20 AM
Well... what is happening at the time you get the message?
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 11:12:50 AM
I was trying to upload a zip file for my Battle mod. But I also keep getting the error when trying to make a regular post.
Title: Re: 413 Request Entity Too Large
Post by: LiroyvH on April 13, 2011, 11:18:58 AM
Just to be sure, that is here on SimpleMachines or on your own website?
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 11:19:34 AM
This is here.
Title: Re: 413 Request Entity Too Large
Post by: Arantor on April 13, 2011, 11:50:12 AM
And how big is the file?
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 12:06:46 PM
1.82 MB. The last uploaded file on there was the same.
Title: Re: 413 Request Entity Too Large
Post by: Arantor on April 13, 2011, 12:08:13 PM
There's been some changes behind the scenes since then...
Title: Re: 413 Request Entity Too Large
Post by: SleePy on April 13, 2011, 12:36:03 PM
Andrew,

Would you mind sending the mod package and a link to where it is on the customize site to my email address (simply my name at simplemachines.org).  I can take a look at it and see if I can get it to upload or not.
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 12:52:34 PM
Email sent.
Title: Re: 413 Request Entity Too Large
Post by: vbgamer45 on April 13, 2011, 12:58:18 PM
I had that occur to me on a mod upload on the mod site I got it under 1mb and then it was ok.
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 01:04:45 PM
Sounds like a size problem then... how exactly can a .zip file size be "reduced" though?
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 13, 2011, 02:13:20 PM
Quote from: Andrew94© on April 13, 2011, 01:04:45 PM
Sounds like a size problem then... how exactly can a .zip file size be "reduced" though?
1. By using a better compression program (WinRAR (http://rarlabs.com) comes to mind).
2. By removing unused code.
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 13, 2011, 02:16:36 PM
I already use WinRAR. ;)

Almost everything in this mod is used - nothing is considered "unused".

Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 13, 2011, 02:19:25 PM
Quote from: Andrew94© on April 13, 2011, 02:16:36 PM
I already use WinRAR. ;)

Almost everything in this mod is used - nothing is considered "unused".
At least try to minimize the code :P

Like
<?php
if (blablabla)
{
echo
'Ohi';
}
?>


Can be
<?php
if (blablabla)
echo
'Ohi';
?>
Title: Re: 413 Request Entity Too Large
Post by: SleePy on April 13, 2011, 02:32:38 PM
Thank you for reporting this.  I have adjusted some server settings and it appears to be working now :)
Title: Re: 413 Request Entity Too Large
Post by: kat on April 13, 2011, 04:52:46 PM
Quote
Entity Too Large

My wife complains about that, too, sometimes. ;)
Title: Re: 413 Request Entity Too Large
Post by: SlammedDime on April 13, 2011, 05:11:40 PM
Quote from: Yoshi2889 on April 13, 2011, 02:19:25 PM
Quote from: Andrew94© on April 13, 2011, 02:16:36 PM
I already use WinRAR. ;)

Almost everything in this mod is used - nothing is considered "unused".
At least try to minimize the code :P

Like
<?php
if (blablabla)
{
echo
'Ohi';
}
?>


Can be
<?php
if (blablabla)
echo
'Ohi';
?>

Snipping out 4 bytes here and there isn't going to help much on compression.
Title: Re: 413 Request Entity Too Large
Post by: DoctorMalboro on April 13, 2011, 08:47:09 PM
Quote from: K@ on April 13, 2011, 04:52:46 PM
QuoteEntity Too Large
My wife complains about that, too, sometimes. ;)
God... that was some piece of not wanted information...
Title: Re: 413 Request Entity Too Large
Post by: LiroyvH on April 13, 2011, 09:17:51 PM
She's referring to himself of course. He is overweight these days :P
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 06:30:43 AM
Ha! At fifty-five, I'm still eleven stone (154lb/338kg is that?). The same as when I was twenty!
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 11:24:41 AM
Quote from: K@ on April 14, 2011, 06:30:43 AM
Ha! At fifty-five, I'm still eleven stone (154lb/338kg is that?). The same as when I was twenty!
338 KG...... :o :o :o

That's way too much.
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 11:29:46 AM
Yeah, it should be 73.0283Kg.

Silly metric system. :P
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 11:33:59 AM
Quote from: K@ on April 14, 2011, 11:29:46 AM
Yeah, it should be 73.0283Kg.

Silly metric system. :P
AKA 73 KG :P

I'm 40/42 KG :P

That is.... 88.184904874/92.5941501177 LB.
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 12:48:53 PM
Here's today's interesting fact.

Both the British Imperial system and the Metric system of measuring distance was based on the circumference of the Earth.

Modern measurements have proven that the Imperial foot is a more accurate measurement, of that, than the metre is. :)
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 01:20:12 PM
Quote from: K@ on April 14, 2011, 12:48:53 PM
Here's today's interesting fact.

Both the British Imperial system and the Metric system of measuring distance was based on the circumference of the Earth.

Modern measurements have proven that the Imperial foot is a more accurate measurement, of that, than the metre is. :)
LOL, I don't really know since I don't understand a thing of how foot's, LBs, etc. work :P
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 01:22:09 PM
Being an old git, I still convert everything back to the old system.

Money, too.
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 01:26:06 PM
Quote from: K@ on April 14, 2011, 01:22:09 PM
Being an old git, I still convert everything back to the old system.

Money, too.
You're not old!
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 01:33:02 PM
Compared to most, here, I'm bloody ancient!
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 01:37:09 PM
Quote from: K@ on April 14, 2011, 01:33:02 PM
Compared to most, here, I'm bloody ancient!
That is just because most teenagers who cannot wait to start a website are looking for community software ::)
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 01:42:16 PM
Yeah.

Script-kiddies. ;)

I s'pose I'm unusual (Some might say a bit more than that) in that, coz I've been doing computery stuff for yonks, now.

First started in 1972, with an old mainframe, using punch-cards and all that old stuff.

My first home machine was one of these.

http://www.classiccmp.org/dunfield/sinclair/index.htm (First one)
Title: Re: 413 Request Entity Too Large
Post by: LiroyvH on April 14, 2011, 01:44:03 PM
How about this is continued in the chit chat? :P
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 01:47:29 PM
Quote from: CoreISP on April 14, 2011, 01:44:03 PM
How about this is continued in the chit chat? :P
Sorry CoreISP :P
Title: Re: 413 Request Entity Too Large
Post by: Robert. on April 14, 2011, 01:54:13 PM
Quote from: CoreISP on April 14, 2011, 01:44:03 PM
How about this is continued in the chit chat? :P
Split the entire topic ;D
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 02:05:54 PM
Topic's solved, so why worry?
Title: Re: 413 Request Entity Too Large
Post by: Kratty256 on April 14, 2011, 02:43:36 PM
Quote from: K@ on April 14, 2011, 02:05:54 PM
Topic's solved, so why worry?

It is? It seems like we all are having a 413 error of something else being too large! LOL
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 14, 2011, 02:56:03 PM
Quote from: SleePy on April 13, 2011, 02:32:38 PM
Thank you for reporting this.  I have adjusted some server settings and it appears to be working now :)

;)

Quote from: SlammedDime on April 13, 2011, 05:11:40 PM
Quote from: Yoshi2889 on April 13, 2011, 02:19:25 PM
Quote from: Andrew94© on April 13, 2011, 02:16:36 PM
I already use WinRAR. ;)

Almost everything in this mod is used - nothing is considered "unused".
At least try to minimize the code :P

Like
<?php
if (blablabla)
{
echo
'Ohi';
}
?>


Can be
<?php
if (blablabla)
echo
'Ohi';
?>

Snipping out 4 bytes here and there isn't going to help much on compression.
Actually, if you have lots of that kinds of code, it can minimize the size alot.
Title: Re: 413 Request Entity Too Large
Post by: DoctorMalboro on April 14, 2011, 03:29:10 PM
Metric system is accurate... ;)

Actually, if you weight 338 KG, you are almost a bear.
Title: Re: 413 Request Entity Too Large
Post by: kat on April 14, 2011, 04:11:50 PM
Quote from: DoctorMalboro on April 14, 2011, 03:29:10 PM
Metric system is accurate... ;)

(http://www.katzy.dsl.pipex.com/Smileys/wrong.gif)
Title: Re: 413 Request Entity Too Large
Post by: Kindred on April 14, 2011, 06:21:17 PM
http://en.wikipedia.org/wiki/Foot_%28unit%29
Title: Re: 413 Request Entity Too Large
Post by: Robert. on April 15, 2011, 01:48:53 AM
Quote from: Yoshi2889 on April 14, 2011, 02:56:03 PM
Quote from: SlammedDime on April 13, 2011, 05:11:40 PM
Quote from: Yoshi2889 on April 13, 2011, 02:19:25 PM
Quote from: Andrew94© on April 13, 2011, 02:16:36 PM
I already use WinRAR. ;)

Almost everything in this mod is used - nothing is considered "unused".
At least try to minimize the code :P

Like
<?php
if (blablabla)
{
echo
'Ohi';
}
?>


Can be
<?php
if (blablabla)
echo
'Ohi';
?>

Snipping out 4 bytes here and there isn't going to help much on compression.
Actually, if you have lots of that kinds of code, it can minimize the size alot.
Actually, that doesn't matter so much. ;)
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 15, 2011, 06:14:41 AM
@ Kindred: Not bothering to read that as it doesn't really interest me.

@ Tah Zonemaster: Really, doesn't it?
Stripped a file of 59 KB down to 26 KB just by doing that...
Title: Re: 413 Request Entity Too Large
Post by: Robert. on April 15, 2011, 06:22:16 AM
Quote@ Tah Zonemaster: Really, doesn't it?
Stripped a file of 59 KB down to 26 KB just by doing that...
Nope SD said it by himself, it doesn't matter. And please remember to be nice to other people ;)
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 15, 2011, 06:25:58 AM
If it is not possible, how come my statement is true?
I am only gonna be nice to you if you are so to me (refers to MSN)...
Title: Re: 413 Request Entity Too Large
Post by: Robert. on April 15, 2011, 06:27:32 AM
Please read your PM Yoshi...
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 15, 2011, 06:30:17 AM
I know  damn well what I am talking about and post counts do not interest me a bit.
Title: Re: 413 Request Entity Too Large
Post by: Aleksi "Lex" Kilpinen on April 15, 2011, 06:30:50 AM
You can make a file smaller like that, but you can't help compression much by doing so. There's a difference in trying to make a file smaller, and trying to make the compressed package smaller.
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 15, 2011, 06:34:22 AM
@ LexArma (finally someone who understands me a bit): If yo make the files alot smaller, it can help a bit with compression.
Title: Re: 413 Request Entity Too Large
Post by: Aleksi "Lex" Kilpinen on April 15, 2011, 06:36:52 AM
Quote from: Yoshi2889 on April 15, 2011, 06:34:22 AM
@ LexArma (finally someone who understands me a bit): If yo make the files alot smaller, it can help a bit with compression.
True. But there is a limit to how much it can really help.
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 15, 2011, 06:40:49 AM
Also true. Butit can help you to get closer to that (now gome) limit.
Title: Re: 413 Request Entity Too Large
Post by: DoctorMalboro on April 15, 2011, 07:05:32 AM
And then if your code has more than 100 lines it would be impossible to understand where does the conditions end or start... maybe making your code more readable is more important than the weight of the package itself...

PS: no one even ask if he has images and other stuff.
Title: Re: 413 Request Entity Too Large
Post by: Joker™ on April 15, 2011, 08:48:07 AM
Coding Guidlines (http://wiki.simplemachines.org/smf/Coding_Guidelines).

Specifically pointing to this
Quote
Whitespace
Use the BSD/Allman indentation style (http://en.wikipedia.org/wiki/Indent_style#Allman_style_.28bsd_in_Emacs.29).
Title: Re: 413 Request Entity Too Large
Post by: NanoSector on April 15, 2011, 09:56:07 AM
Quote from: DoctorMalboro on April 15, 2011, 07:05:32 AM
And then if your code has more than 100 lines it would be impossible to understand where does the conditions end or start... maybe making your code more readable is more important than the weight of the package itself...

PS: no one even ask if he has images and other stuff.
^^ That, too. Remove images you don't use :P

Making code readable is important too, but maybe making it smaller in size can be handy too.
Maybe do it both.
Title: Re: 413 Request Entity Too Large
Post by: Arantor on April 15, 2011, 10:17:28 AM
By the way, stripping spaces like that often actually makes it harder, not easier, to compress a file to get any measurable benefit - and the odds are that the compressed file will not be any smaller, can even be bigger.
Title: Re: 413 Request Entity Too Large
Post by: Kindred on April 15, 2011, 10:23:20 AM
exactly...   what compression utilities do is --- remove the spaces.
That's why text documents normally get such good compression and JPG images do not...