Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Problem with avatar uploading

Aloittaja muulio, elokuu 11, 2008, 09:38:28 IP

« edellinen - seuraava »

muulio

It seems that users are not able to upload their avatar pictures from the local machine on my SMF 1.1.5 board. However they can upload the picture from an url (I set the setting so that it fetches the pic from given url instead of using that url).

I've tried "enable/disable attachments" option from forum/attachments and avatars section. Everyone should have the permission to upload avatar (set from avatar settings configuration menu) and the pic sizes are set to 100*100 pixels.

Even so I still get this error:

An Error Has Occurred!

Your attachment couldn't be saved. This might happen because it took too long to upload or the file is bigger than the server will allow.

Please consult your server administrator for more information.


And in the error log I get this:

2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: open_basedir restriction in effect. File(/tmp/phpHc2NIH) is not within the allowed path(s):

2: move_uploaded_file(/tmp/phpHc2NIH) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: Operation not permitted

2: move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpHc2NIH' to '/home/www/www.my-home-page.net/forum/attachments/avatar_tmp_1'

ccbtimewiz


muulio

#2
Yes.

Like I said, attachments are uploaded there from a given url but only uploading from users' local machines fail.

section under the profile:

I have my own pic: Specify your own avatar by URL (works)

Download avatar at given URL (enabled)

And I can see already uploaded avatars when managing files/attachments.

Rumbaar

Try a search for the error : open_basedir restriction in effect

But try: open_basedir restriction in effect
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

muulio

Yeah, ok, I figured as much (=system wide setting related problem). I'll just have to make sticky thread about the problem on my board, since I can't change PHP settings and the guy in charge of the shell will definitely not lift the restriction.

Thanks anyway.

Rumbaar

Might be a good sign to move hosts :)  But I'll mark this as solved, well as far as we can take it in your regards.
"An important reward for a job well done is a personal sense of worthwhile achievement."

[ Themes ]

Advertisement: