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 09-22-2012, 02:57 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default avatars gone again!

Hi...wondering is anyone can help

My avatars seem to have disappeared again since moving to a VPS from shared hosting...

I checked Avatars > User Picture Storage Type and made sure the paths were correct they are all ./customavatars ./customprofilepics and ./signaturepic

How can i resolve this? All the avatars seem to be in the correct directory and the avatar link (right click on avatar place and image link) shows the server is pointing to the correct folder...

Uploading new avatars works and the new avatars upload to the correct folder.
Reply With Quote
  #2  
Old 09-22-2012, 05:41 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

1. View the source for one of the missing images.

2. Get the broken images name.

3. SSH into the VPS

4. Run this cmd "updatedb"

5. Run this cmd "find / -name imagenamefrompreviouscmd.gif -print

What is the result of the find cmd?

If it returns no results, then the image never got moved over & is lost unless you had a backup of it, if its a missing thumb, rebuild the thumbs via admincp maintenance options.

The folder path in the admincp dont mean sh*t unless the image actually exists on the server.
Reply With Quote
  #3  
Old 09-22-2012, 05:49 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've found what the issue is...

The avatars for some reason are pointing at the incorrect URL
eg:
http://www.unrealkillers.com/customa...vatar46_21.gif

but it should be
http://www.unrealkillers.com/customa...vatar46_23.gif


Note: the difference is avatar46_21.gif = incorrect 46_23.gif=correct

I've found it to be consistent each avatar is -2 less what it should be. How can I change it to be +2 than it currently is?

I have rebuilt the custom avatars and thumbs

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

Bump....anyone?
Reply With Quote
  #4  
Old 09-24-2012, 07:21 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any ideas anybody?
Reply With Quote
  #5  
Old 09-24-2012, 09:19 PM
ForceHSS ForceHSS is offline
 
Join Date: Apr 2008
Posts: 6,357
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

delete them all reupload them or rename them
Reply With Quote
  #6  
Old 09-25-2012, 07:28 AM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Was hoping I could avoid that...lol there's hundreds of them. Is there no way of automating it ?
Reply With Quote
  #7  
Old 09-25-2012, 02:45 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Something like:

UPDATE tablename SET field=field+2

(I can't get to my phpMyAdmin at the time to check out the tablename or field name)

And, of course, TRY THIS ON YOUR TEST SITE FIRST and be sure to MAKE A BACKUP OF YOUR LIVE SITE before doing that query.
Reply With Quote
  #8  
Old 09-26-2012, 09:18 PM
betterthanyours betterthanyours is offline
 
Join Date: May 2012
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried the command prescribed, no worky.

I also tried UPDATE CUSTOMAVATAR SET WHERE FILENAME=FILENAME+2

Still no worky.
Reply With Quote
  #9  
Old 09-26-2012, 09:31 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That is not going to work as it is not the customavatar table you need to change. I believe it is the user table and the field is avatarrevision. Please take a look at your actual database and that field and compare it to what you are seeing on the site and verify that equation will work for what you are seeing.
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 02:00 AM.


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.07901 seconds
  • Memory Usage 2,232KB
  • Queries Executed 11 (?)
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)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)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_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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete