The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Upload of file failed. (Avatars, Attachments, etc...)
I don't know why, but ever since I moved from a windows server to a linux server (Centos 6) I have had this problem.
When I try to upload an avatar or attachment, an error pops up and says - "Upload of file failed." Does anyone know why? |
#2
|
|||
|
|||
My guess is that you forgot to chmod the directories to 777? (I assume you use filestorage?)
|
#3
|
||||
|
||||
I have already chmod the customavatars directory to 777, and nothing changed, I still get the game error.
|
#4
|
|||
|
|||
AdminCP > Maintenance > Diagnostics > Upload test > what does it say?
|
#5
|
||||
|
||||
Quote:
EDIT: Because I setup another small site a few months ago on the same server, its an Image Hosting site, I am using the CFImage Hosting script. And when I upload files/images on that site it works fine. Its hosted on the same server under one of my Sub Domains. Update: I have even tried creating a new directory to store all custom avatars and chmod it to 777, and updated vbulletin to use that directory, and moved all avatars to the new directory. vB shows all the avatars still, from the new directory, but I am still getting that Upload error. When I try to run an upload Diagnostic, it says "No errors occurred while opening the uploaded file for reading. ". |
#6
|
||||
|
||||
When you used chmod did you use the -R option to make it recursive and apply to all subdirectories?
|
#7
|
||||
|
||||
Yes I did.
|
#8
|
||||
|
||||
What your php setting for the following two settings?
upload_max_filesize post_max_size You can look in your php.ini or bring up the php.ini in admincp. Are they bigger or smaller than the files you are trying to upload. |
Благодарность от: | ||
RichieBoy67 |
#9
|
||||
|
||||
Yeah, my guess is your server/php.ini settings as well. It could also be a file ownership issue depending on how you installed and set up the server and the site.
I ran into this a couple time with clients who uploaded everything through the admin user and then could not upload through vbulletin as it was under the domain user and not the admin. Hope this makes sense. |
#10
|
||||
|
||||
The settings for upload_max_filesize and post_max_size are both set to 2GB.
I setup PHP myself. I can upload files fine in the AdminCP>Maintenance>Diagnostics> Upload, and it doesn't come up with any errors at all. Which is really weird if you ask me. Now I did move from a Windows 2008R2 Server, to a Linux CentOS Server. I backed up my entire user directory offsite, then I installed and configured CentOS on the server. Then installed the backup of my site. Everything seems to be working fine but these damn vB uploads (attachments, Avatars, etc...). |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|