Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 18, 20213 yr Hi everyone. I run my community on CentOS 7. This is my php.ini settings In adminCP are set maximum image dimension/size per membergroup. If the image/file is larger than 100 kb I get the following error Sorry, an unknown server error occurred when uploading this file. (Error code: -200) My question is what could be the problem?
March 18, 20213 yr It sounds counterintuitive, but reduce the limits and make sure that everything with a limit matches. Your CDN, your web server, and PHP, as well as anything else (suhosin) that may be running on your server and interfering with uploaded files. IPS will chunk uploads into segments for files larger than your post max size. You do not need or want to set things to the maximum file size possible.
March 19, 20213 yr Author ^ I tried this but nothing changed I talked to a support guy but we couldn't solve the problem and we don't know what the problem is.
March 19, 20213 yr Does the phpinfo in the ACP reflect the changes you made? What are your web server's settings? Have you tried switching between gd and imagemagick?
March 19, 20213 yr Author There is definitely a problem with the server. I made a simple php upload script and if I try to upload a file larger than 100 kb I get 500 internal server error. I'm in contact with hosting support and I will report here when I solve the problem.
March 19, 20213 yr Author Solution The problem was in the Apache Module mod_fcgid where the MaxRequestLen Directive had a small value. Topic Solved.