News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Attachments bring 500 Server Error.

Started by Goha, September 16, 2021, 12:56:43 PM

Previous topic - Next topic

Goha

SMF 2.1RC4 + last GitHub updates (including #7057 with Source/ManageAttachments.php).

I get «Server responded with 500 code» (screenshot attached) when trying to attach the image to the post or comment. Can't realize what is wrong and what to check because there is no errors in forum and hoster error logs.

I have no limits to attachments upload (0 for «Maximum number of files per directory» and «Max attachment directory space»). Despite the error, the image was successfully uploaded to the attachment folder. And everything was fine yesterday.

Aleksi "Lex" Kilpinen

A 500 error really should always be logged on the server side. I would suggest you ask your host about the logs.

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Shades.

Quote from: Goha on September 16, 2021, 12:56:43 PMSMF 2.1RC4 + last GitHub updates (including #7057 with Source/ManageAttachments.php).

I get «Server responded with 500 code» (screenshot attached) when trying to attach the image to the post or comment. Can't realize what is wrong and what to check because there is no errors in forum and hoster error logs.

I have no limits to attachments upload (0 for «Maximum number of files per directory» and «Max attachment directory space»). Despite the error, the image was successfully uploaded to the attachment folder. And everything was fine yesterday.
Check your folder & file permissions too! Just had this happen to me the other day and for some reason my folders & files permissions had been changed. I set my "Folders" back to 755 and .php "Files" back to 644. Could be different on your server though, have to ask your web host.
ShadesWeb.com - Custom Logos - My Themes on SMF | My Themes on ShadesWeb
https://shadesweb.com

BikerHound.com - Sniffing out the road ahead
https://bikerhound.com

Dream as if you'll live forever; Live as if you'll die today. - James Dean

Goha

#3
Quote from: Aleksi "Lex" Kilpinen on September 16, 2021, 01:01:12 PMA 500 error really should always be logged on the server side. I would suggest you ask your host about the logs.
Thanks, Lex. The hoster just updated ImageMagick and forgot to restart the webserver to reload settings.

Aleksi "Lex" Kilpinen

Cool, at least it got cleared up fast then :)
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: