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

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.