Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 12-04-2010, 05:47 PM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Can't Save Avatars

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?
Reply With Quote
  #2  
Old 12-04-2010, 07:59 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What happens if you go to Maintenance > Diagnostics > Upload ?
Reply With Quote
  #3  
Old 12-04-2010, 09:11 PM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #4  
Old 12-04-2010, 09:21 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #5  
Old 12-05-2010, 12:01 PM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've done what you said about the tmp directory, but it's giving this error: Upload of file failed.

Quote:
Originally Posted by Lynne View Post
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.
Where would i find the php.ini file, i cant seam to see it outside & inside the forum directory?

--------------- 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.
Reply With Quote
  #6  
Old 12-05-2010, 02:55 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #7  
Old 12-06-2010, 01:22 PM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Server Settings
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)
Reply With Quote
  #8  
Old 12-06-2010, 01:56 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Your path to your temp dir shouldn't be /tmp, it should be /home/yoursite/tmp (or something similar - but a FULL path).
Reply With Quote
  #9  
Old 12-06-2010, 04:57 PM
Dj Smuggla Dj Smuggla is offline
 
Join Date: Sep 2009
Posts: 148
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 12-06-2010, 05:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:05 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04834 seconds
  • Memory Usage 2,257KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete