Username
Forgot password?
Welcome to our site!
Or Join with FTTF

Bug: Cannot upload avatar

0

798 views
ERROR March 4, 2014 11:20:18 Lampcms\WebPage-> handleException()
/var/www/ask/lib/Lampcms/ WebPage.php line: 962
Exception caught in: /var/www/ask/lib/Lampcms/ Image/EditorGD.php on line: 272 Unable to save image to /var/www/ask/www/w/img/avatar/ sqr/4.png trace: #0 /var/www/ask/lib/Lampcms/ AvatarParser.php(105): Lampcms\Image\EditorGD->save(' /var/www/ask/ww...', NULL, 80)
#1 /var/www/ask/lib/Lampcms/ ProfileParser.php(204): Lampcms\AvatarParser-> addAvatar(Object(Lampcms\User) , '/tmp/uploaded5z...')
#2 /var/www/ask/lib/Lampcms/ ProfileParser.php(117): Lampcms\ProfileParser-> makeAvatar()
#3 /var/www/ask/lib/Lampcms/ Controllers/Editprofile.php( 216): Lampcms\ProfileParser->save( Object(Lampcms\User), Object(Lampcms\ SubmittedProfileWWW))
#4 /var/www/ask/lib/Lampcms/ Controllers/Editprofile.php( 115): Lampcms\Controllers\ Editprofile->saveProfile()
#5 /var/www/ask/lib/Lampcms/ WebPage.php(284): Lampcms\Controllers\ Editprofile->main()
#6 /var/www/ask/www/index.php( 123): Lampcms\WebPage->__construct( Object(Lampcms\Registry))
#7 {main}
------------------------------ --
 
asked March 4, 2014 at 10:37 AM

 us

1 Answer

0
 
The "w" direcory under the "www" must be writable. The name of directory is "w" supposed to mean "writable"
all sub directories under the "w" should also be writable.
flag
answered March 8, 2014 at 1:21 PM
That didn't seem to help. I did chmod -R 777 w/
flag
Mar 8, 2014 05:24 PM
@Jason Greenberg
Do you have directories img/avatar/sqr under the 'w' directory? If not, then you may need to manually create these directories and also set them to writable
flag
Mar 9, 2014 06:32 AM
creating the "sqr" directory worked, thank you.
flag
Mar 9, 2014 06:39 AM

Your answer

Join with account you already have

FTTF

Preview

Alert