Simple Machines Community Forum

Archived Boards and Threads... => Archived Boards => Install and Upgrade Help => Topic started by: acjceo on February 13, 2009, 07:27:35 PM

Title: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: acjceo on February 13, 2009, 07:27:35 PM
The attachments upload directory is not writable. Your attachment or avatar cannot be saved.


how do I fix this I had to move my site to a new server and this is the only error I am getting How do i fix it.

thanks

Alexiss
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Tyrsson on February 13, 2009, 07:35:05 PM
Use ftp and CHMOD the folder to 755 or 777

For further info you can see this doc.

How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477)

And in case you need this one

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

Should point you in the right direction.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: acjceo on February 13, 2009, 08:22:33 PM
Set all commands to 777 that did not fix the problem any other idea what might be wrong



Quote from: Tyrsson on February 13, 2009, 07:35:05 PM
Use ftp and CHMOD the folder to 755 or 777

For further info you can see this doc.

How do I chmod? / what is chmod? (http://docs.simplemachines.org/index.php?topic=477)

And in case you need this one

How do I use FTP? / What is FTP? (http://docs.simplemachines.org/index.php?topic=480)

Should point you in the right direction.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Tyrsson on February 14, 2009, 12:10:20 AM
Try creating a folder within the packages folder called temp and then CHMOD that to 777 and try the install again. Please post back and let us know if it helps.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: N3RVE on February 14, 2009, 06:19:58 AM
Tyrsson, he's not trying to install a package, the temp directory is not needed At this stage ;)


Perhaps, the php installation on your server has suPHP compiled, thus, 777 is restricted in their server environment. Drop us a phpinfo().php sheet (What is phpinfo.php? (http://www.simplemachines.org/community/index.php?topic=18250.0))
You should also try 755 and 775 :)

-[n3rve]
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: RaisedFist on February 16, 2009, 05:44:02 PM
I have the same problem.


[esprit ~/pestehotare]$ ls -ald attachments/
drwxrwxrwx  2 user group 4096 2009-02-16 14:04 attachments/


I use 2.0 RC 1. Could this be a bug?
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Sarge on March 09, 2009, 11:59:34 AM
Where is the error message displayed?

If you are using separate directories for attachments and avatars, you need to make both of them writable.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: RaisedFist on March 09, 2009, 01:55:24 PM
It was my mistake. I migrated the forum from a host to another and the paths were different. It's solved for me.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Sarge on March 09, 2009, 02:08:55 PM
acjceo, are you still having the issue? Did you run repair_settings.php after moving your forum to the new server?
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Stuman on March 14, 2009, 07:49:28 AM
I am having the same problem too.

When I try to upload a simple avatar pic in Profile, it say's, "An Error Has Occurred! The attachments upload directory is not writable. Your attachment or avatar cannot be saved. "
Both my attachments and avatars folders are set to 777.

Any suggestions?  I think this happened after upgrading to the newest version of smf.

Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: N3RVE on March 14, 2009, 07:55:54 AM
You should check the forum / server error log and post your findings here.
Have you tried 775 and 755?

-[n3rve]
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Stuman on March 14, 2009, 08:08:34 AM
I'm looking at a list of errors in the Forum Error Log.  I don't see anything that looks logical to post. 
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Tyrsson on March 14, 2009, 08:10:53 AM
The errors may still lead us in the right direction as to what could be the problem.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Stuman on March 14, 2009, 08:30:09 AM
775 and 755 don't change the error.

SFM is not in my root directory, I have it in a folder which is set to 755.  Oddly, If I try to change the folder to 775 or 777, I get a wordpress 404 error (wordpress is in the root).

Might this have something to do with the error of the attachments file? 



Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: SlammedDime on March 14, 2009, 11:33:24 AM
Make sure the path in the SMF settings to the attachments directory is correct.  If you have moved hosts, it is most likely NOT.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Stuman on March 14, 2009, 05:42:28 PM
That worked.  I had moved it form another server a month or so ago and had not noticed the path was incorrect.

Thanks!
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Tyrsson on March 14, 2009, 05:57:35 PM
@ acjceo Is this issue solved or do you still require assistance?

@ Stuman Glad you got it sorted out.
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: Nateisonfire on December 29, 2009, 01:27:44 PM
Just wanted to make a note, I had the same error.

If you go to the admin panel and click on attachments and avatars then change directory to: /home/nameofhomedirector/public_html/community/attachments

Other things that could be effected are; smiles and themes
Title: Re: The attachments upload directory is not writable. Your attachment or avatar cann
Post by: JimM on January 02, 2010, 03:44:52 PM
Thanks for the info.  So many times we see, it's solved without the details that may help other users.