Hướng dẫn fix lỗi upload avatar forum vbb

A

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Warning: tempnam() [function.tempnam]: Unable to access 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
Warning: tempnam() [function.tempnam]: open_basedir restriction in effect. File() is not within the allowed path(s): (/home/***:/usr/lib/php:/usr/local/lib/php:/tmp) in /includes/class_upload.php on line 346
Upload of file failed
Những lỗi này có thể là do safe mode, hoặc open_basedir restrictions gây nên.
Cách khắc phục:
1/ Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Safe Mode Upload Enabled -> chọn yes
2/ Tạo 1 thư mục tên tmp trong thư mục forum và chmod nó thành 777
3/ Trong Admin CP -> vBulletin Options -> Server Settings and Optimization Options -> Safe Mode Temporary Directory điền tmp
 

Facebook Comments

Similar threads

A
Replies
0
Views
2K
AdminAdmin is verified member.
A
yoona
Replies
5
Views
5K
AdminAdmin is verified member.
A
A
Replies
4
Views
947
anhtho9x
A
A
Replies
0
Views
4K
AdminAdmin is verified member.
A
Hero
Replies
11
Views
2K
Tamhoangdk
Tamhoangdk
A
Replies
0
Views
810
AdminAdmin is verified member.
A
Back
Top