Topic: avatar upload problem

Hello
i have punbb 1.2 i chmod my directory
do a search in this forum
but i can't still upload avatar:
"You did not select a file for upload."

sad

Re: avatar upload problem

What browser? Does it work in these forums?

"Programming is like sex: one mistake and you have to support it for the rest of your life."

3 (edited by metal-x 2005-01-13 17:46)

Re: avatar upload problem

yes working here...firefox 1.0
any ideas ?
thanks

Re: avatar upload problem

a php problem ? php.ini ?

Re: avatar upload problem

does it work for other people on your forum?

Re: avatar upload problem

No sad
not with IE too

Re: avatar upload problem

try commenting out lines

if ($uploaded_file['size'] == 0)
message($lang_profile['No file']);

by making them

//if ($uploaded_file['size'] == 0)
//message($lang_profile['No file']);

at about line 330 in profile.php and see if you still get the error or if it works

Re: avatar upload problem

In these cases, a link to the forum helps as well smile

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: avatar upload problem

No i have, "unknown error, try again " wink

Re: avatar upload problem

ok you can put those lines back as they were
and just above find

$uploaded_file = $_FILES['req_file'];

and after add

phpinfo();
exit();

and scroll down near the bottom and you can see what has/hasnot been uploaded wink

11 (edited by metal-x 2005-01-14 17:44)

Re: avatar upload problem

now after upload i have the phpinfo page in my browser :-/

with that "action=upload_avatar2&id=2"

i send u my profile.php.html

Re: avatar upload problem

yeh can you put it back and let me have a look?

Re: avatar upload problem

ok GO wink
that's good

Re: avatar upload problem

hmm i get

Warning: main(./lang//prof_reg.php) [function.main]: failed to open stream: No such file or directory in /htdocs/clan/forums/upload/profile.php on line 41

Fatal error: main() [function.require]: Failed opening required './lang//prof_reg.php' (include_path='.:/usr/local/lib/php') in /htdocs/clan/forums/upload/profile.php on line 41

when i open profile.php
did it upload properly?

Re: avatar upload problem

do it again that's good now

Re: avatar upload problem

ok the problem is there is no temp file directory set in php

Re: avatar upload problem

i was thinkin at that, doing one, but it wasn't working
i will try again
thanks for this personal help

Re: avatar upload problem

same with a tmp in the chroot or in /tmp sad

Re: avatar upload problem

i think you'll have to take this up with some php support forum or chatroom as they are more likely to help you

20 (edited by metal-x 2005-07-18 11:54)

Re: avatar upload problem

ok i find (sorry for this similar chat)
but perhaps someone need the answer:

mkdir /var/www/tmp (because of the chroot
chmod 1777 /var/www/tmp
in php.ini
upload_tmp_dir = /tmp

edit: upload_tmp_dir = /var/www/tmp


SORRY again and thanks for helping

Re: avatar upload problem

np it is the Troubleshooting forum for a reason wink