News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Broken topic

Started by lather, May 10, 2023, 09:04:44 AM

Previous topic - Next topic

lather

2.0.19
A user attempted to attach a 4 mb image to his reply to a topic and got the following error:

Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

He then tried to post just the image and got this error:

An Error Has Occurred!
The upload folder is full. Please try a smaller file and/or contact an administrator.

He reported the error to me and I reproduced his error with both large and small images. I then doubled the attachments folder limit and succesfully attached a test image. However, when I tried to modify the user's original message by attaching his large image to it it failed and now any attempt to view the topic gives this error:


This page isn't workingridemsta.com is currently unable to handle this request.
HTTP ERROR 500

Any ideas on what went wrong and any way to fix this?

Thanks

Doug Heffernan

Quote from: lather on May 10, 2023, 09:04:44 AMThis page isn't workingridemsta.com is currently unable to handle this request.
HTTP ERROR 500

This type of error is almost always server related. Can you check your server error log and post here the most recently logged messages?

Sir Osis of Liver

Quote from: lather on May 10, 2023, 09:04:44 AMYour attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.
This is a server error, you may have to increase post_max_size, upload_max_filesize, and max_execution_time in php settings.

QuoteAn Error Has Occurred!
The upload folder is full. Please try a smaller file and/or contact an administrator.
This is a forum error, you can increase Max attachment folder space in attachment settings.

QuoteThis page isn't workingridemsta.com is currently unable to handle this request.
HTTP ERROR 500
Another server error, you have to look in server error_log in forum root.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

lather

#3
Thanks for the replies. There are no recent errors in Error_Log in forum root or elsewhere. I will look at PHP settings. I have done some more attachment testing and so far the largest image I have been able to attach is about 700kb. Anything over 1 mb gives the page not working error.

There is a fairly long time after pressing post before the error appears. I suspect the max_execution_time setting may be the problem.
EDIT:
I have increased all of the php settings Sir Osis mentioned. upload_max_filesize was only 4mb, I increased that to 8.

Advertisement: