vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Missing Attachments after upgrade (https://vborg.vbsupport.ru/showthread.php?t=320559)

mstokes 10-19-2015 05:49 AM

Missing Attachments after upgrade
 
This is just a note for others who have had problems with missing attachments after upgrading from version 3.8 to 4.2.3.
It seems during the move of the attachments from vb_attachments table to vb_filedata in the upgrade steps in 4.0.0, a new column gets added called refcount but it is never populated.
Then, in 4.2.3 VB fixed a bug in a cleanup task that uses this column to determine whether an attachment is orphaned. Because none of the version 3 upgraded attachments had this column populated, the cleanup task removed ALL attachments.

Solution : Upgrade to any version less then 4.2.3 and update this column to make refcount = 1 using a SQL tool, then upgrade to 4.2.3.

RichieBoy67 10-19-2015 06:07 AM

Well people are having this issue after upgrading to 4.2.3 from any other version. Once the problem is already there it is not fixable as you mentioned so it is not a "solution". Ofcourse your instructions will stop the issue from happening in the first place possibly.


All times are GMT. The time now is 02:27 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.00997 seconds
  • Memory Usage 1,704KB
  • 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
  • (2)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