Log in

View Full Version : [HELP] Warning: tempnam() [function.tempnam]:


Froggy32701
07-17-2012, 03:46 AM
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/twisted1:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in [path]/includes/class_dm_userpic.php on line 204

Warning: fopen() [function.fopen]: Filename cannot be empty in [path]/includes/class_image.php on line 333

Any idea's ?

I get this when changing my avatar, on the "Thank you for updating your profile page".

The avatar changes fine and cant find any errors any place else on the board.

Thanks

kh99
07-17-2012, 12:17 PM
It looks like those errors would affect the thumbnail images - I think they should end up being blank. But it seems like similar errors should appear if someone tries to upload an attachment. Do your attachments work OK?

Froggy32701
07-18-2012, 01:11 AM
Cant seem to recreate it with any attachments.

Its odd because they only show up very briefly after clicking "Save Changes" button and you get the "Thank you for updating your profile page".

http://www.myforum.com/forum/profile.php?do=updateavatar

But when it redirects back to the edit avatar page the errors are gone and the avatar changes successfully.

So other then seeing them during that process I see no ill affects.

kh99
07-18-2012, 02:15 AM
That is strange, because like the error message says, if your php is set up with "open_basedir restriction in effect", it isn't allowed to create a temp file outside of specific directories. And if the configured upload_tmp_dir is outside of those directories, you'd get that error. But I think you would then also get the same error any time a file was uploaded, so I don't understand why it only happens in that one situation.

You might try temporarily disabling all plugins and see if that makes any difference.