vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Can't Save Avatars (https://vborg.vbsupport.ru/showthread.php?t=254669)

Dj Smuggla 12-04-2010 05:47 PM

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?

Lynne 12-04-2010 07:59 PM

What happens if you go to Maintenance > Diagnostics > Upload ?

Dj Smuggla 12-04-2010 09:11 PM

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

Lynne 12-04-2010 09:21 PM

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.

Dj Smuggla 12-05-2010 12:01 PM

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 (Post 2129371)
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.

Lynne 12-05-2010 02:55 PM

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.

Dj Smuggla 12-06-2010 01:22 PM

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)

Lynne 12-06-2010 01:56 PM

Your path to your temp dir shouldn't be /tmp, it should be /home/yoursite/tmp (or something similar - but a FULL path).

Dj Smuggla 12-06-2010 04:57 PM

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'

https://vborg.vbsupport.ru/external/2010/12/53.png

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.

Lynne 12-06-2010 05:36 PM

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.


All times are GMT. The time now is 12:16 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.03349 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete