The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Since i moved host i cant save avatars.
When I try to edit or add a new avatar it says "Unable to save image." Im guessing its got something to do with the host, but what? |
#2
|
||||
|
||||
![]()
What happens if you go to Maintenance > Diagnostics > Upload ?
|
#3
|
|||
|
|||
![]()
Results
No errors occurred while opening the uploaded file for reading. But the open_basedir: has a weird file path: /home/httpd/mydomain.com/httpdocs:/home/httpd/mydomain.com/mydomain.com:/home/admin/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script |
#4
|
||||
|
||||
![]()
It looks lik you have open_basedir restrictions on your server. To get uploads to work you need to create a 'tmp' subdirectory under your main hosting directory and chmod it to 777. Then in the Admin CP set "Upload In Safe Mode?" to 'Yes' and point the "Safe Mode Temp Directory" to that directory. If you placed the tmp directory in the right place, the path to the Safe Mode Temp Directory will be:
/home/yoursite/tmp Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Safe Mode Temporary Directory Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Safe Mode Upload Enabled -> Yes Also the php.ini setting for 'upload_tmp_dir' may be empty. It's possible you (as root) or your host will need to edit php.ini and set 'upload_tmp_dir' to point to the full path to a directory on the server that is chmod'd to 1777. You will also need to restart Apache after making this change. You can point it to any of those directories listed in that line as long as you verify that the directory is chmod to 777. |
#5
|
|||
|
|||
![]()
I've done what you said about the tmp directory, but it's giving this error: Upload of file failed.
Quote:
--------------- Added [DATE]1291561497[/DATE] at [TIME]1291561497[/TIME] --------------- I've told my host about it, they edited the php.ini, but it still comes up with this error: Upload of file failed. Although the avatar is saving, but it still gives that error. --------------- Added [DATE]1291567032[/DATE] at [TIME]1291567032[/TIME] --------------- My host has tried a few things but it still gives that error. They replyed with: That directory /customavatars is chmoded to 777. Everyone can upload to that directory. There is no open_basedir or safe_mode enabled on your VPS. |
#6
|
||||
|
||||
![]()
Are you storing avatars in the /customavatars directory? Can you tell us exact what you are told when you go to maintenance > disagnostics > upload? And what do you have exactly in vboptions > server settings > safe mode upload enabled and safe mode temporary directory? And, what do you have for admincp > avatars > user picture storage type? And if in a directory, exactly what is the avatar file path and url to avatars path? I need all of those things.
|
#7
|
|||
|
|||
![]()
I done what you said:
create a 'tmp' subdirectory under your main hosting directory and chmod it to 777. Then in the Admin CP set "Upload In Safe Mode?" to 'Yes' and point the "Safe Mode Temp Directory" to that directory. If you placed the tmp directory in the right place, the path to the Safe Mode Temp Directory will be: /home/yoursite/tmp Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Safe Mode Temporary Directory Admin CP -> Settings -> Options -> Server Settings and Optimization Options -> Safe Mode Upload Enabled -> Yes ------------------------------------------------------------------------------------ This is what it said when i went to maintenance > disagnostics > upload Code:
Pertinent PHP Settings file_uploads: On open_basedir: /home/httpd/mydomain.com/httpdocs:/home/httpd/mydomain.com/mydomain.com:/home/admin/:/tmp:/usr/share/pear:/var/lib/php/session/:/home/kloxo/httpd/script safe_mode: Off upload_tmp_dir: /tmp/ upload_max_filesize: 2.00 MB Results No errors occurred while opening the uploaded file for reading. You should be able to turn off the "Upload In Safe Mode?" option without any adverse effects. Safe Mode Upload Enabled = Yes Safe Mode Temporary Directory = /tmp (chmoded to 777) Avatars: Avatars are currently being served from the filesystem at ./customavatars (chmoded to 777) Profile pictures are currently being served from the filesystem at ./customprofilepics (chmoded to 777) Signature pictures are currently being served from the filesystem at ./signaturepics (chmoded to 777) |
#8
|
||||
|
||||
![]()
Your path to your temp dir shouldn't be /tmp, it should be /home/yoursite/tmp (or something similar - but a FULL path).
|
#9
|
|||
|
|||
![]()
I noticed earlier that it's working for me but not for some members.
After we moved servers some members avatars are not showing, they just got a link that says 'username's Avatar' ![]() I dont know why they wont show because all the files from the old server are on the new server. I've logged in as them & tried to upload a avatar, but it says "Upload of file failed." It was doing that to me aswell, but i tried it earlier & it works fine for me. I've checked the permissions, there ok but the members that its happening to are from different groups. |
#10
|
||||
|
||||
![]()
If they just have a link, then that means the avatar is not present where it is supposed to be or the permissions are not correct. If your avatars in in the filesystem, make sure all the directories recursively are chmod to 777.
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|