2.0.17 forum, attach 14.4 mb png, seems to upload file then reverts to blank reply editor "Start new topic". "Max attachment size per post" and "Max size per attachment" are 25500 kb. Convert file to 4.2 mb jpg attaches normally. Allowed file types includes png. Running resize attachments mod, same problem with mod installed/uninstalled. >:(
n/m, fixed it. post_max_size in php.ini was 8 mb, increased to 25 mb now it works.
php.ini,max upload size ?
post_max_size was causing the problem, max_upload_size was set at 25 mb. Both at 25 mb now.
I always thought it was strange in PHP that they have two settings that need to be adjusted.
They must make a distinction between uploads and posts, no idea how or why.
Quote from: Sir Osis of Liver on January 25, 2021, 12:08:03 PM
They must make a distinction between uploads and posts, no idea how or why.
One goes in the DB, the other... probably not.
I am now having this same problem.
Max upload size is set to 0 (no limit)
The jpg I'm attaching is 660kb (tiny)
The problem only began in the last 2-3 days; I've made no changes to my forum software in, say, 4-6 months.
Quote from: lemur21 on July 29, 2021, 10:52:50 PM
I am now having this same problem.
Max upload size is set to 0 (no limit)
The jpg I'm attaching is 660kb (tiny)
The problem only began in the last 2-3 days; I've made no changes to my forum software in, say, 4-6 months.
do you have a php.ini in your root folder?
or in your hosting account do you see php settings anywhere?
Max upload size is an admin setting, post_max_size and max_upload_size are php settings. You should be able to get to them via cpanel. This problem can also be caused by outdated memory limits in core files. If it just started happening with no changes to forum, your host may have changed php settings.
To make things easier - I'm going to continue the discussion over here:
https://www.simplemachines.org/community/index.php?topic=578307.0