Thread:Project:Support desk/$wgMaxUploadSize has no effect/reply (3)

That is what you have in CLI mode. Did activating these settings also work properly for Apache in non CLI mode?

If that worked, I would search the MediaWiki source code for the exact error message, which you get. That way you should find the place in the source code, where this error happens. Then check, which conditions must have been true, before getting the error message. This should help you find the reason for the problem.