vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   avatars gone again! (https://vborg.vbsupport.ru/showthread.php?t=288174)

betterthanyours 09-22-2012 02:57 PM

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.

snakes1100 09-22-2012 05:41 PM

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.

betterthanyours 09-22-2012 05:49 PM

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?

betterthanyours 09-24-2012 07:21 PM

Any ideas anybody?

ForceHSS 09-24-2012 09:19 PM

delete them all reupload them or rename them

betterthanyours 09-25-2012 07:28 AM

Was hoping I could avoid that...lol there's hundreds of them. Is there no way of automating it ?

Lynne 09-25-2012 02:45 PM

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.

betterthanyours 09-26-2012 09:18 PM

I tried the command prescribed, no worky.

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

Still no worky.

Lynne 09-26-2012 09:31 PM

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.


All times are GMT. The time now is 08:44 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.01076 seconds
  • Memory Usage 1,724KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete