Cách khắc phục lỗi upload avatar

  • Thread starter Thread starter congtust24
  • Start date Start date
congtust24

congtust24

Well-Known Member
Vip
Cái này hôm bữa có member hỏi sao không hiện avatar nên hôm nay rảnh viết bài này anh em nào có bị như vậy còn biết cách khắc phục.
Upload of file failed
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
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
nguồn nsc
 

Facebook Comments

Similar threads

V
Replies
3
Views
3K
AdminAdmin is verified member.
A
A
Replies
1
Views
4K
thethems
T
A
Replies
0
Views
879
AdminAdmin is verified member.
A
A
Replies
0
Views
2K
AdminAdmin is verified member.
A
A
Replies
5
Views
2K
HeroHero is verified member.
Hero
A
Replies
4
Views
1K
AdminAdmin is verified member.
A
Back
Top