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

Reply
 
Thread Tools Display Modes
  #1  
Old 07-09-2015, 10:48 AM
SP411 SP411 is offline
 
Join Date: Jan 2014
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Avatar Profile Pic Issue

I've included pics so you see what's going on...




These are my web tech's comments.
The avatars are still present on the server, but its not matching the file name on their record, and I am still trying to solve it.

I advise my web tech about default avatar if he is not able to get everything fixed. That way the members will see all the default avatars and then start changing their avatars themselves..

Web tech replied:
default avatar and profile pic will only work if a member doesnt have any avatar or profile pic, in this case, they have avatar but the source of avatar image isnt correct.. And that is what I am trying to fix..

I have full confidence in my web tech I believe we just need a little bit of help so here I am on Vbulletin.org

All advice would be appreciated except for Socialteenz on here, that's when all my problems started!

--------------- Added [DATE]1436448418[/DATE] at [TIME]1436448418[/TIME] ---------------

Web tech comments:
Please also put this to the vb.org thread..

Here is sample of one of the avatars' file name.

The record on their profile is avatar41635_4.gif, but when I checked the directory, the correct name is avatar41635_3.gif
Reply With Quote
  #2  
Old 07-09-2015, 11:40 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SP411 View Post
Web tech comments:
Please also put this to the vb.org thread..

Here is sample of one of the avatars' file name.

The record on their profile is avatar41635_4.gif, but when I checked the directory, the correct name is avatar41635_3.gif
The number after the _ is the avatarrevision column from the 'user' table, and it should get incremented whenever a user uploads a new custom avatar. So you could fix the problem for a user by changing avatarrevision or the actual file name, but I don't know why they would get out of sync. There may be some other problem with uploading custom avatars. Maybe check the permissions on the avatar directories.
Reply With Quote
Благодарность от:
RichieBoy67
  #3  
Old 07-09-2015, 12:47 PM
SP411 SP411 is offline
 
Join Date: Jan 2014
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Web Tech:

Avatar folder permission is fine.
Is there way to fix this without manually changing the file name one by one?
There are lots of affected members, but not all..
Reply With Quote
  #4  
Old 07-09-2015, 01:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think you'd have to write a php script (or I guess another language if you want) to compare the custom avatar file name with the avatarrevision in the database for each user, and do a correction if necessary. I don't think any of the updates in the admincp do that for you.

eta: Maybe if someone was good at linux commands they could write something to get the userid and revision number off each custom avatar in the file system and create a comma-separated file with the data, then you could import that into the database to a temporary table and use SQL to fix the user table avatarrevision column. Then you wouldn't really need to write a script. Yeah, maybe 'find' into a file and awk to change it to csv format., I think that would work.

Could it be anything like being out of space on the disk where the avatars are stored? Or did you do anything like restore files or the database? I guess you could just fix it somehow and wait to see if it happens again. Maybe it was a temporary problem.
Reply With Quote
  #5  
Old 07-09-2015, 01:50 PM
Skyrider Skyrider is offline
 
Join Date: Feb 2006
Location: Netherlands
Posts: 1,392
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I took the liberty to check out your forum in person to see potential issues.

The avatar/images that isn't working in the thread view (when checking all the threads) isn't working because the link is all screwy.. for example:

Code:
https://www.yoursite.com///www.yoursite.com/customavatars/avatar27383_3.gif
(replaced your site with a template site).

unknown.gif avatars are working fine, as I assume you have some kind / type of default avatar for people of whom has no avatar set.

Now, within threads I noticed that the avatar links are somewhat correct, for example:

Code:
https://www.yoursite.com/customavatars/avatar41635_4.gif
However, it links to your main website when I attempt to directly view the image. Seeing that happens to everything that the site doesn't know, (404) I assume you set it like that to move them to the main site instead.

So, my thoughts:

1), File / web path of the images and or avatars might be incorrect. (double check this in the admincp)
2), Forum path might not be fully 100%, try to set a direct home path through the config.php or double check the admincp.
3), your https (of which works on the main page, but not fully working on the forums) might be screwing things up.
4), Some kind of addon might causing problems.
5), Avatars are not being properly uploaded, see kh99 post above.

^ These 5 are my guesses that I would be looking into.

Are the avatars saved as file or within database?
Reply With Quote
Благодарность от:
RichieBoy67
  #6  
Old 07-09-2015, 04:24 PM
SP411 SP411 is offline
 
Join Date: Jan 2014
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if anybody is looking to help I will get my web tech to make you a temporary log in...

https://vborg.vbsupport.ru/showthrea...67#post2549767
Reply With Quote
  #7  
Old 07-09-2015, 06:14 PM
TheLastSuperman's Avatar
TheLastSuperman TheLastSuperman is offline
Senior Member
 
Join Date: Sep 2008
Location: North Carolina
Posts: 5,844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the plugin or setting for the plugin that is adding in the custom avatar, per a post above the url looks to be doubled so whats going on is (imo) - the plugin is injecting the site url as well before its avatarfilename.jpg filename snippet; like a path prefix of sorts, the issue is the site url was already being called (assumably by default) so check the plugin and/or have you made any recent url type changes to any settings/.htaccess (trying rewrites of any sort etc) and think back what was recently done that made the avatars change after that?

Something is making the actual siteurl called twice in a row... what are your settings in:
AdminCP > Settings > Options > Site Name / URL / Contact Details

For base path and the component urls?

Edit: Aye and although its like a bathing suit bottom, next time please grey out or crop the screenshot not to show ads of that nature... luckily this time like I said it resembles a bathing suit bottom and its summer but not all ads are that "friendly" in regards to moral compass and viewer discretion being advised and what not (lol).
Reply With Quote
2 благодарности(ей) от:
MarkFL, RichieBoy67
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 08:03 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09527 seconds
  • Memory Usage 2,236KB
  • 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
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (7)post_thanks_box
  • (4)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (7)postbit
  • (7)postbit_onlinestatus
  • (7)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete