Brother that can be caused by two problems
is your directory writable?
Have you Written define function correctly in config file like that
define('QA_BLOG_DIRECTORY','LINK TO THE DIRECTORY');
Link should not be like that
http://example.com/avatar/etc/
it should be like that
www/username/public_html/avatar/etc (EXAMPLE)