Ekenti , Avatar ve Profil Resmi ekleme işlemlerinin ortak yönleri olduğu için bu sorunu ortak bir konuda anlattım.ve bu konu sadece yükleme (upload sorunları içindir)[Avatar ve Profil Resmi birer eklenti sayılabilir]
Bu işlemler
vBulletin Forum Scriptinin hiçbir
Hack/Plug-in olmadan yüklemeye izin verdiği nesneler için anlatılmıştır.
Hataların bir kısmı aşağıdaki şekilde olabilir ...
Kod:
Unable to move/copy ( $vbphrase[upload_unable_move]) file
PHP- Kodu:
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect.
Warning: move_uploaded_file() [function.move-uploaded-file]: open_basedir restriction in effect.
Warning: move_uploaded_file() [function.move-uploaded-file]:
Unable to move '/tmp/...' to '/home/.../tmp/...' in /includes/class_upload.php on line xWarning:
fopen(/home/.../public_html/...): failed to open stream:
No such file or directory in /includes/class_dm_attachment.php on line x )
A- vbulletin Obtions Eklenti / Avatar/ Profil Resmi İzinler :
- Aşağıdaki konumdan izinleri kontrol edin
1- AdminCP > vBulletin Options > User Picture Options Kod:
Avatars Enabled = Yes
Avatar Display Width = 3
Avatars Per-Page = 6
Profile Pictures Enabled = Yes
2- AdminCP > vBulletin Options > User Listing & Profile Viewing > Member List Field Options Kod:
Profile Picture = Yes
Avatar = Yes
3- AdminCP > vBulletin Options > User Registration Options > Default Registration Options Kod:
Display Avatars = Yes
AdminCP > vBulletin Options > Message Attachment Options Kod:
Limit Space Taken Up By Attachments (Total) = 0
Attachments Per Post = 5
Attachment Upload Inputs = 5
Attachment URL Inputs = 5
B-Kullanıcı Grup İzinleri : 1- AdminCP > Usergroups > Usergroup Manager > [Registered User] > Picture Uploading Permissions Kod:
Can Upload Profile Pictures = Yes
Can Upload Animated Profile Picture = Yes
Profile Picture Maximum Width (pixels) = 150
Profile Picture Maximum Height (pixels) = 150
Profile Picture Maximum File Size (bytes) = 153600
Can Upload Custom Avatars = Yes
Can Upload Animated Avatar = Yes
Custom Avatar Maximum Width (pixels) = 150
Custom Avatar Maximum Height (pixels) = 150
Custom Avatar Maximum File Size (bytes) = 153600
Can Upload Images for Signature = Yes
Can Upload Animated GIF for Signature = Yes
Signature Image Maximum Width (pixels) = 150
Signature Image Maximum Height (pixels) = 150
Signature Image Maximum Filesize (bytes) =153600
2- AdminCP > Usergroups > Usergroup Manager > [Registered User] > Attachment Permissions Kod:
Can Upload Attachments = Yes
Space (in bytes) that a user's total attachment usage may consume = 0
C- Forum izinleri (Eklenti): AdminCP > Attachments > Attachment Permissions (Bu kısımda istenilen uzantı için kullanıcı grubu izinlei düzenlenir (jpg resmi için aşağıdaki gibidir)
Kod:
Can use this extension = 153600
Maximum Width = 1024
Maximum Height = 1024
D- Avatar Depolama Konumu :
Eğer avatarlar dosya sisteminde depolanacak ise dizinlerin varlığı aşağıdaki gibi olmalıdır ve
CHMOD 755 (bazı sunucularda 777) olmalıdır
AdminCP > Avatars > User Picture Storage Type Kod:
Avatar File Path = ./customavatars
URL to avatars = customavatars
Profile Picture Path = ./customprofilepics
URL to Profile Pictures = customprofilepics
Signature Picture Path = ./signaturepics
URL to Signature Pictures = signaturepics
E- Script Sorunları :
1-Yüklemeyi engelleyici 3.parti Hack/Plug-in veya script izinleri
2-vBulletin Orjinal kodların dışında yapılan düzenlemeler (modifiye)
3- Thema/ Stil kaynaklı sorunlar
F- Sunucu Sorunları 1- Aşağıdaki konumdan php.ini değişkenlerini doğrulayın Kod:
allow_url_fopen = On
upload_tmp_dir
upload_max_filesize = 8MB
safe_mode = off
extension_dir = ./
file_uploads = On
2- AdminCP > vBulletin Options > Server Settings and Optimization Options Kod:
Safe Mode Upload Enabled = No
Safe Mode Temporary Directory = /tmp