Simple Machines Community Forum

SMF Support => SMF 2.1.x Support => Topic started by: Goha on September 16, 2021, 12:56:43 PM

Title: Attachments bring 500 Server Error.
Post by: Goha on September 16, 2021, 12:56:43 PM
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.
Title: Re: Attachments bring 500 Server Error.
Post by: Aleksi "Lex" Kilpinen on September 16, 2021, 01:01:12 PM
A 500 error really should always be logged on the server side. I would suggest you ask your host about the logs.

Title: Re: Attachments bring 500 Server Error.
Post by: Shades. on September 16, 2021, 01:07:52 PM
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.
Title: Re: Attachments bring 500 Server Error.
Post by: Goha on September 16, 2021, 01:32:17 PM
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.
Title: Re: Attachments bring 500 Server Error.
Post by: Aleksi "Lex" Kilpinen on September 16, 2021, 01:47:14 PM
Cool, at least it got cleared up fast then :)