A partial archive of https://discourse-mediawiki.wmflabs.org as of Saturday May 21, 2022.

After the blank page problem, I encounterd the uploading problem

sepwolves

My MW site used to be able to be uploaded files before encountering the blank page problem. After I rebooted the system, the blank page problem was resolved. But a new problem appeared. I couldn’t upload any file in my site any more. It said that it couldn’t create a directory. (it used to be able to )I don’t know what I did that makes it not work.

RazeSoldier

This may be because your web server can’t read-write to the upload directory.

sepwolves

星光晨曦?
Is this you?
I resolved this problem after I removed some line…

srishakatux

@sepwolves Glad to hear that you were able to resolve the problem. Could you maybe explain a bit more here which line you removed that fixed the problem? Others running into a similar issue might find your reply helpful.

RazeSoldier

星耀晨曦 is my wikipedia accout name.

sepwolves


these lines
sorry to reply so late…

RazeSoldier

Deploy upload does not need that complicated…

In general, to meet the two conditions can be upload:

  • $wgEnableUploads = true;
  • Make sure your webserver-user can be read-write the upload directory.

More information about file upload, see also this manual.