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."
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 troubleshooting → 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."
What browser? Does it work in these forums?
yes working here...firefox 1.0
any ideas ?
thanks
a php problem ? php.ini ?
does it work for other people on your forum?
No
not with IE too
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
In these cases, a link to the forum helps as well
No i have, "unknown error, try again "
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
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
yeh can you put it back and let me have a look?
ok GO
that's good
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?
do it again that's good now
ok the problem is there is no temp file directory set in php
i was thinkin at that, doing one, but it wasn't working
i will try again
thanks for this personal help
same with a tmp in the chroot or in /tmp
i think you'll have to take this up with some php support forum or chatroom as they are more likely to help you
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
np it is the Troubleshooting forum for a reason
PunBB Forums → PunBB 1.2 troubleshooting → avatar upload problem
Powered by PunBB, supported by Informer Technologies, Inc.