Users are Unable to upload avatars.

Started by tmaximus95, December 11, 2008, 05:35:17 PM

Previous topic - Next topic

tmaximus95

For some reason, our users are unable to upload avatars to the attachments directory. It continues to tell me that the "attachments directory is unwritable," even though the permissions are set at 777.

Has anyone enecountered this problem with 2.0b4, and if so, were you able to resolve it?

I would appreciate a fix for this problem.

Walt.
"Injustice anywhere is a threat to jutice everywhere."

sherpa サイバー侍

CHMOD the directory to 755 and try again
If it didnt work then crating temp directory inside the attachment and CHMOD it 777
Try your luck

tmaximus95

"Injustice anywhere is a threat to jutice everywhere."

Nathaniel

tmaximus95,
Did you manage to get your attachments working? Is this issue solved? If so then please feel free to mark this issue as solved, otherwise reply with a description of the issues you are having.
SMF Friend (Former Support Specialist) | SimplePortal Developer
My SMF Mods | SimplePortal

"Quis custodiet ipsos custodes?" - Who will Guard the Guards?

Please don't send me ANY support related PMs. I will just delete them.

tmaximus95

No, the issue is NOT solved. I continue to receive the same error as described below.
This continues with 2.0RC1
TMax.
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

Are you sure your paths are correct?  What are the error log entries when people try to upload, what is the error message that get?

Try this repair_settings.php tool.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tmaximus95

#6
it continues to go to an error page. it says that i don't have access to the directory... as well as a 404 error. I've tried everything...  the directories have access set to 755. i've done the repair_settings.php thing several times. no luck.
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

But have you used the 2.0 version of the repair_settings.php tool or the 1.1 from the download section.  I've attached a 2.0 specific one.

Can you post both the error log message and the server error log you get when you try to upload an avatar.  Does this occur for normal attachments?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tmaximus95

This is what I'm getting when trying the newer "repair_settings.php" file:

" Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [function.require-once]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222  Fatal error:  require_once() [function.require]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222"[/]
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

Hmmm it's not getting the correct SQL database information to ass to the Subs-Db-{db}.php file and call.

Can you link to this forum?  You didn't answer my other question on attachments.  Can you upgrade to RC1 and see if that solves any issues.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tmaximus95

The link to the forum is: www.forum.sosen.us

I upgraded to RC1 last week. It's running RC1 now.

The upload attachments still does not work. It continues to report that I do not have access. It does the same for all users.

TMax.
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

Are you sure you ran that repair_settings.php tool, as the last time I got that error it was due to them using the 1.1 on the 2.0 install.

I see the link is:
http://www.forum.sosen.us/
But your paths are:
http://sosen.us/forum3/
I'm sure it's a path issue.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tmaximus95

Well, I modified the "repair_seetings.php" file you sent me and got it to work.

On line 222, it references Subs-Db-.php. I modified that line to Subs-Db-mysql.php and it worked. However, the attachments directory is still not uploadable.

SMF says: 
The attachments upload directory is not writable.  Your attachment or avatar cannot be saved.          
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

What is the path defined for your attachment directory?  What is the path defined (server settings) for SMF Directory?

Are you sure it's at CHMOD 777?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tmaximus95

I eliminated the sub-domain: forum.sosen.us
all paths are set to: sosen.us/forum3/{whatever}

and yes, the chmod=777
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

You didn't answer my question.  I was after absolute server paths for each of those entries.

What is the exact error log entry in the adminCP error log when an avatar is tried to be uploaded?  What is the exact server log entry for the same attempt?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

tmaximus95

#16
This error log is from the server itself:

[01-Mar-2009 18:09:21] PHP Notice:  Undefined index:  server in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 629
[01-Mar-2009 18:09:21] PHP Notice:  Undefined index:  utf8 in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1253
[01-Mar-2009 18:09:21] PHP Notice:  Undefined index:  utf8 in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1255
[01-Mar-2009 18:09:21] PHP Notice:  Undefined index:  server in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1271
[01-Mar-2009 18:09:21] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1271
[01-Mar-2009 18:09:21] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/sosenceo/public_html/forum3/Sources/Subs-Post.php:629) in /home/sosenceo/public_html/forum3/Sources/ScheduledTasks.php on line 183
[01-Mar-2009 18:09:21] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/sosenceo/public_html/forum3/Sources/Subs-Post.php:629) in /home/sosenceo/public_html/forum3/Sources/ScheduledTasks.php on line 184
[02-Mar-2009 15:30:53] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:30:53] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:32:49] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:32:49] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:34:45] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:34:45] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:36:25] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:36:25] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:36:58] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:36:58] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:43:17] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 15:43:17] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:05:56] PHP Notice:  Undefined index:  server in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 629
[02-Mar-2009 18:05:56] PHP Notice:  Undefined index:  utf8 in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1253
[02-Mar-2009 18:05:56] PHP Notice:  Undefined index:  utf8 in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1255
[02-Mar-2009 18:05:56] PHP Notice:  Undefined index:  server in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1271
[02-Mar-2009 18:05:56] PHP Warning:  preg_replace() [<a href='function.preg-replace'>function.preg-replace</a>]: Compilation failed: invalid UTF-8 string at offset 8 in /home/sosenceo/public_html/forum3/Sources/Subs-Post.php on line 1271
[02-Mar-2009 18:05:56] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/sosenceo/public_html/forum3/Sources/Subs-Post.php:629) in /home/sosenceo/public_html/forum3/Sources/ScheduledTasks.php on line 183
[02-Mar-2009 18:05:56] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/sosenceo/public_html/forum3/Sources/Subs-Post.php:629) in /home/sosenceo/public_html/forum3/Sources/ScheduledTasks.php on line 184
[02-Mar-2009 18:13:14] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:13:14] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:15:47] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:15:47] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:15:54] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:15:54] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:16:59] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:16:59] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:19:40] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:19:40] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:20:06] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:20:06] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:27:17] PHP Warning:  require_once(/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /home/sosenceo/public_html/forum3/repair_settings.php on line 222
[02-Mar-2009 18:27:17] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/home/sosenceo/public_html/forum3/Sources/Subs-Db-.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sosenceo/public_html/forum3/repair_settings.php on line 222

This is from SMF:

http://sosen.us/forum3/index.php?action=profile;area=forumprofile;save                                               
The attachments upload directory is not writable.  Your attachment or avatar cannot be saved.

Reverse chronological order of list                            Today at 06:02:32 PM
Type of error: Critical                                           
http://sosen.us/forum3/index.php?action=profile;area=forumprofile;save                                         
The attachments upload directory is not writable.  Your attachment or avatar cannot be saved.

Reverse chronological order of list                            Today at 05:59:20 PM
Type of error: Critical                                           
http://sosen.us/forum3/index.php?action=profile;area=forumprofile;save                                     
The attachments upload directory is not writable.  Your attachment or avatar cannot be saved.
   
Reverse chronological order of list                            Today at 05:54:47 PM                 
Type of error: Critical                               
http://sosen.us/forum3/index.php?action=profile;area=forumprofile;save                                                       
The attachments upload directory is not writable.  Your attachment or avatar cannot be saved.
"Injustice anywhere is a threat to jutice everywhere."

Rumbaar

Those server log entries all appear to relate to when you were trying to run the repair_settings.php file.  There are no other ones after that or relate to the exact same time the avatars were trying to be uploaded.

Have you spoken to your host about this issue and any possible CHMOD restrictions or ownership issues?
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: