Topic on Project:Support desk

Warning: wfMkdirParents: failed to mkdir mode 511 in wiki/includes/GlobalFunctions.php on line 2536

7
110.168.125.219 (talkcontribs)

I am getting this error on some images that are uploaded: Warning: wfMkdirParents: failed to mkdir "/home/patjk/public_html/speedsolving/wiki/images/thumb/d/d2/Scrble3x3.PNG" mode 511 in /home/patjk/public_html/speedsolving/wiki/includes/GlobalFunctions.php on line 2536

wfMkdirParents() in GlobalFunction.php seems to be trying to make a directory with the name of the file itself. See error posted on here: http://www.speedsolving.com/wiki/index.php/File:Scrble3x3.PNG

What is the best way to resolve this? Thanks.

MarkAHershberger (talkcontribs)
MarkAHershberger (talkcontribs)
115.87.86.30 (talkcontribs)

/thumb/ is 777. /d2 is 755.

MarkAHershberger (talkcontribs)

Thanks, but who owns /thumb/ and /d2 ? What user does the webserver run as? If /d2 is not owned by that user, then the errors make sense. Maybe try chmoding /d2 to 777?

202.47.230.22 (talkcontribs)

They are both owned by the user. I CHMOD to 777 and it fixed the error. Why did the error happen only on the /d2 directory but not others? I don't want to have this error come up again and have to CHMOD each time. Thanks.

MarkAHershberger (talkcontribs)

I don't know why this error happened there. Is it possible you ran some script as a shell user? That may have caused the permission problems.

If this problem pops up again, then there is another problem.

You say the it works now. Is the /d2 directory owned by a different user than the /d2/Scrble3x3.PNG directory and file?

Reply to "Warning: wfMkdirParents: failed to mkdir mode 511 in wiki/includes/GlobalFunctions.php on line 2536"