Oct 30, 2020, 10:01 AM

News:

Have you backed up YOUR database today


HTTP ERROR 500 when posting attachments

Started by lesmond, Jul 21, 2019, 02:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

lesmond

Jul 21, 2019, 02:25 PM Last Edit: Jul 21, 2019, 09:37 PM by Bigguy
This happens on a few sites I help run. including my test site smf 2.0.15

size of file is 4.28 MB (4,494,562 bytes) 3648x2736 pix



No errors in the log

The only person who got all his work done by Friday was Robinson Crusoe

lesmond

Ok so I increase the upload file size on MultiPHP INI Editor in cpanel too 100mb and tried again, same error.

I also tried another image with a smaller file size of 1.5mb but the same dimensions 3648x2736 px that didn't throw any errors

The only person who got all his work done by Friday was Robinson Crusoe

Bigguy


lesmond

Quote from: Bigguy on Jul 21, 2019, 02:59 PMAny errors in the server error logs.

Nothing relating to this that I can see!

The only person who got all his work done by Friday was Robinson Crusoe

Bigguy

Try using repair_settings and see if one of the url's is off.

lesmond

Its not that, because its the same on other sites

Strangely I can post bigger images on my 2.1 test site OK

The only person who got all his work done by Friday was Robinson Crusoe

Bigguy

Jul 21, 2019, 05:46 PM #6 Last Edit: Jul 21, 2019, 06:53 PM by Bigguy Reason: added to clarify
It's something server side as that is what the 500 error code means. What version of php are you on. Is the db in strict mode. ??

Oldiesmann

Look for an "error_log" file in your forum's root directory. There should be more info in there.
Cincy Space - now open! https://www.cincyspace.net

Skhilled

I've come late to the party but the issue seems to be fixed now. No more 500 errors. I wasn't around when whoever fixed it.

Bigguy

Glad it's fixed. :) How was it fixed. ??

lesmond


The only person who got all his work done by Friday was Robinson Crusoe

Skhilled

What's going on is they are trying to upload very large (large in file size...MB) attachments. From everything I know, SMF 2.0.x and earlier versions were never meant to take large attachments. The size should be in kilobytes, not megabytes or higher. Larger files should be uploaded to the server and then linked using the editor with BBC or other codes to make it show. I don't know of any other way. If someone does know then please let us know.

Files that are also too large in width/height will break the forum width.

Bigguy

Quote from: Skhilled on Jul 21, 2019, 08:32 PMI've come late to the party but the issue seems to be fixed now. No more 500 errors. I wasn't around when whoever fixed it.
I thought it was based on this.

lesmond


The only person who got all his work done by Friday was Robinson Crusoe

Bigguy

Sometimes it does, sometimes it doesn't......hmm. Is this a shared server it's on or.... :ques

lesmond

Shared server, its the one me and steve run.

The only person who got all his work done by Friday was Robinson Crusoe

Bigguy

I wonder if it has something to do with server resources being tied up at some points and this is why you get the error.

Skhilled

It's not happening on any of the other sites on the server. No one has any complaints so far. I'm logged into most of the sites on the server at least weekly and there's no problems.

My thoughts are that there's a mod conflict somewhere that's causing these problems. I doubt the hooks were removed the last time the forum was updated or worked on and the mods reinstalled. The newly installed mods were also probably not manually checked to make sure all of the code for the mods is in place which can also cause conflicts.

They must remember that just because you've installed or uninstalled mod and got no errors doesn't mean that it worked correctly. Sometimes, you'll only find out there's a problem when you try to use something.

lesmond

So I installed ElkArte (which you know is an SMF fork) on a vps with webuzo, no errors at all.

I installed a fresh smf 2.0.15 on the same vps and I got the same error with that, which tells me its a SMF problem and not the server.

So its not any mods or hooks!

The only person who got all his work done by Friday was Robinson Crusoe

Skhilled

What file type is the attachment and what size is it?

lesmond


The only person who got all his work done by Friday was Robinson Crusoe

Skhilled

...of course they are image files... What extension?

Skhilled

Hmmm, maybe try a .txt file for the same size or larger and see if there's a difference. May not be just a file size difference. Also you've never mention the dimenisions...width and height.

lesmond

Tried a 4mb text file no errors, image dimensions dont seem to affect anything, its just the file size thats the problem.

The only person who got all his work done by Friday was Robinson Crusoe