Previous Thread
Next Thread
Print Thread
Hop To
#40806 06/03/2004 9:20 PM
Joined: Jan 2004
Posts: 11
S
stranger
stranger
S Offline
Joined: Jan 2004
Posts: 11
My problem is the same as this thread.

Users cannot change their uploaded avatars. What happens is, the user selects the avatar they wish to upload, hits submit, but the old avatar remains. Uploading fresh copies of the scripts does not change the behavior.

What I've noticed in the shell is the following attributes of my uploaded avatar:

-rw-r--r-- 1 nobody nobody 7152 Jun 3 20:59 2.jpg

I can manually delete it from the shell, and am first prompted whether I want to "remove write-protected regular file `2.jpg'?" When checking the avatars file folder permissions from the admin control panel, it exists and is writable according to the script.

I think there is a fundamental permission problem when UBBT first uploads the avatar, and then it is later unable to overwrite it. In this instance, it looks like the script is running as 'nobody' instead of my user account.

The avatar feature worked fine in 6.0.2, but no longer in 6.4.2. Have the file handling calls been changed perhaps?

Any ideas?

Joined: Jan 2004
Posts: 11
S
stranger
stranger
S Offline
Joined: Jan 2004
Posts: 11
Additionally info that may help:

I am unable to chmod or chown the file. I can only delete it.

#40808 06/03/2004 10:14 PM
Joined: Jun 2006
Posts: 742
enthusiast
enthusiast
Joined: Jun 2006
Posts: 742
Actually in 6.0 series you couldn't upload pictures - only link to them. That's a fairly new feature (6.2 or 6.3 I think).

I believe that has to do with the security settings on the server - I believe in "safe mode" all the PHP scripts run as "nobody" which creates a problem when it needs to change/remove files... it can't change files owned by nobody.


Joshua Pettit
Web Developer
www.ThreadsDev.net | www.JoshuaPettit.com
#40809 06/03/2004 11:29 PM
Joined: Jan 2004
Posts: 11
S
stranger
stranger
S Offline
Joined: Jan 2004
Posts: 11
Under my 6.0.2 users were able to upload avatars, and I have a whole directory full of them as a result.

As for safe mode, it's disabled in the php implementation on my server.

Joined: Jan 2004
Posts: 11
S
stranger
stranger
S Offline
Joined: Jan 2004
Posts: 11
Upon closer scrutiny, and comparison with a reinstall of 6.0.2 it turns out the script is indeed overwriting the old avatar with the new avatar. It seems to be a browser caching issue instead. When editbasic/changebasic sends you back to the MyHome screen, the old picture still posts. But upon a forced refresh of the browser, the new picture takes its place.

Thanks for your time.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
1 members (Nightcrawler), 544 guests, and 180 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)