Author Topic: HTTP 500 error  (Read 2839 times)

Bruno Schroder

  • NG Supporter
  • **
  • Posts: 964
  • Near Waterloo, Belgium
HTTP 500 error
« on: June 12, 2016, 21:57:48 »
After posting 25 images in 5 posts in the "NG Get Together Maastricht 5 June 2016"http://nikongear.net/revival/index.php/topic,3723.msg56688.html#new , I'm now getting HTTP 500 errors when posting with images. I can still post in the thread but without images.
A refresh is now showing 2 of the 3 pictures I wanted to post.
Bruno Schröder

Bruno Schroder

  • NG Supporter
  • **
  • Posts: 964
  • Near Waterloo, Belgium
Re: HTTP 500 error
« Reply #1 on: June 12, 2016, 22:18:41 »
working fine now.
Bruno Schröder

Bjørn Rørslett

  • Fierce Bear of the North
  • Administrator
  • ***
  • Posts: 8245
  • Oslo, Norway
Re: HTTP 500 error
« Reply #2 on: June 12, 2016, 22:19:34 »
Check for illegal characters in file names. SMF does not like apostrophes, for example.

Bruno Schroder

  • NG Supporter
  • **
  • Posts: 964
  • Near Waterloo, Belgium
Re: HTTP 500 error
« Reply #3 on: June 12, 2016, 22:35:09 »
I thought about that after the previous post from Rosko but all filenames had the same structure:  _6050XXX.jpg and all files ended up uploaded. The strange thing is when I got a 500 error but the post finally appeared but with only 2 or the 3 files.
Bruno Schröder

Andrea B.

  • Technical Adviser
  • *
  • Posts: 1589
Re: HTTP 500 error
« Reply #4 on: June 16, 2016, 20:11:38 »
If you send me via Dropbox a copy of the photo which would not upload, I will investigate further.
Desaparecida

Bruno Schroder

  • NG Supporter
  • **
  • Posts: 964
  • Near Waterloo, Belgium
Re: HTTP 500 error
« Reply #5 on: June 16, 2016, 23:48:10 »
PM sent.
Bruno Schröder

Andrea B.

  • Technical Adviser
  • *
  • Posts: 1589
Re: HTTP 500 error
« Reply #6 on: June 19, 2016, 18:29:06 »
Hi Bruno -

My test of your files was OK. However I noticed that the files were very large (in dimension) and not downsized prior to your posting. So I am thinking that you perhaps stressed the forum software when uploading multiple large files at one time? The forum software will itself downsize your photos for display on web pages. Thus it is usually better for a member to perform their own downsizing prior to posting here so that their photos may be touched up after the downsize with appropriate re-sharpening or other edits. You can perform much better downsizes than can the forum software!

Hope this helps. Do let us know if you should again encounter the 500 error. I try to track them down as best I can.

Cheers -
Andrea B.
Desaparecida

Bjørn Rørslett

  • Fierce Bear of the North
  • Administrator
  • ***
  • Posts: 8245
  • Oslo, Norway
Re: HTTP 500 error
« Reply #7 on: June 19, 2016, 18:50:35 »
Keeping the fine line of distinguishing the concepts of a "large" file in terms of its pixel dimensions (MPix count) and file size (MB required for its storage) is essential.

The forum software will downscale uploaded images to an initial display size of 1200x800 pix (approx). When the user clicks on the file, its original pixel dimensions re-occur (it might take a click on a + symbol to make this happen). Rescaling causes more server strain and if a user has to compromise image quality by selecting a high degree of jpgs compression in order to make the physical size fit inside the allowed limits, one usually has forgotten the pixel dimensions. A jpg file say 2000x1300 pix or smaller can be uploaded with very low jpg compression (jpg levels 10-12) and thus retain its high level of quality, and still be well within the current storage size limit of 2.5 MB.

Andrea B.

  • Technical Adviser
  • *
  • Posts: 1589
Re: HTTP 500 error
« Reply #8 on: June 19, 2016, 20:15:12 »
I just induced some stress on the forum software by uploading a large dimension 4948 x 3280 px file. I did not get the 500 error, but I got a kind of "hiccup" thing. The page disappeared, and I had to reload twice to see the uploaded image -- which was, of course, downsized by the forum software.

So something somewhere does not like pixel dimensions to be too large even though it can struggle through.

Desaparecida

Bjørn Rørslett

  • Fierce Bear of the North
  • Administrator
  • ***
  • Posts: 8245
  • Oslo, Norway
Re: HTTP 500 error
« Reply #9 on: June 19, 2016, 20:25:05 »
Which more or less was my point. Apparently the forum software cannot *directly* reject a file because its pixel dimensions are excessive. However, it can fail or time out on the downscaling, which shouldn't be necessary if the user did a first downscaling on their own. This way they can relieve server stress and concomitantly get their images displayed with a better quality. A win-win scenario.

Andrea B.

  • Technical Adviser
  • *
  • Posts: 1589
Re: HTTP 500 error
« Reply #10 on: June 19, 2016, 20:34:14 »
I added one sentence to the guidelines to emphasize that resizing pixel dimensions is a good thing. So maybe that will help.

I do wish we had a place to enforce pixel dimensions. That would be useful to prevent this kind of thing. There might be something in the CSS files somewhere. I've been through those a couple of times, but I don't really recall where to find it.
Desaparecida

Bruno Schroder

  • NG Supporter
  • **
  • Posts: 964
  • Near Waterloo, Belgium
Re: HTTP 500 error
« Reply #11 on: June 19, 2016, 23:35:15 »
That's what I assumed too. It happened after I had uploaded 25 files in a row and disappeared when I uploaded at a slower pace.

I'll warn Martine as the files were from her, she asked me to post them while her computer was fixed, and she got another issue today when posting 5 of her files in the same post. See #362 here http://nikongear.net/revival/index.php/topic,3723.360.html. Personally, I'm usually resizing everything to 1000 pixel on the largest dimension.

Thanks for the support.
Bruno Schröder