The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Attachments have been deleted vb 4.2.3
Hello,
wrong uploaded attachments have been deleted and will delete in future and I don't know why. Over 12.000 Files in Filesystem and Database deleted already! An attachment from friday is also deleted. you can see here in post #3: http://www.sps-forum.de/codesys-und-...rittkette.html It shows only the text: Attachment (ID) I know, that the attachments will be delete automatically (after upgrading to vb 4.2.3), when the refcount value of filedata entry is null - but I don't know why so many files had the refcount value 0, and why I get more "wrong uploaded attachments". maybe there are problems with the filemanager since the upgrade? today I will correct the values from an older Database, and copy the entrys to the actual database and upload the attachments from an backup, again. I don't want that they will be delete in the future and get the wrong refcount value. How is it possible to upload an attachment WRONG, that it get the value 0 and be deleted? I don't have any Image/Attachment-Upload Plugins installed ... What can be the issue? PHP 5.4.42-nmm1 Mysql Version 5.6.24-nmm1-log vb 4.2.3 |
#2
|
||||
|
||||
See my posts in https://vborg.vbsupport.ru/showthread.php?t=319394
Basically, it is or was possible to incorrectly attach attachments, but due to a bug in vb they weren't deleted. That bug was fixed in vb4.2.3 and following that all the incorrectly attached attachments started getting deleted. |
2 благодарности(ей) от: | ||
MarkFL, RichieBoy67 |
#3
|
|||
|
|||
I dont think that I had 12,000 incorrect attached attachments from 22,000 total attachments...
|
#4
|
||||
|
||||
I just noticed the same issue on my site though I am not sure if related to that. I know that when I ran an update counter I saw attachments being removed so I stopped it. I am not sure how many attachments I lost but mostly very, very old ones.
I can still see the attachments in the database though the id is missing. I replace the id from a back up and the attachment still does not show so I am assuming the files were deleted as well. Is this possible? Would the counter delete the attachment file or is there another reason the attachment would not show when all the data is there in the attachment table? |
#5
|
|||
|
|||
I think it is a big bug!
Can't resore the attachments, most of the attachments were online, 1 month ago. this update deletes all attachments when the refcount value is 0 from the file system and the entries in the database. (I don't know how 12,000 files can get this value) I stopped the cleanup2.php script now, but its to late. It is not possible to restore the files, you need all files and entries from database, too. you have informations about attachments in the tables - post - thread - attachment - filedata Ich have backups from all, database and filesystem, but for me it is not possible to restore all attachments. |
#6
|
||||
|
||||
Yes, in my case I think I may just be missing the filedata data.
|
#7
|
||||
|
||||
If refcount is 0, the attachment is not being used, and should be removed.
|
Благодарность от: | ||
RichieBoy67 |
#8
|
||||
|
||||
^ What Zachery is trying to convey is that, if the refcount is zero it means that the attachment is not being referenced i.e. used in any posts therefor it deletes them due to that fact alone. Why retain an old attachment (especially if storing attachments in filesystem which takes up more disk space) if its not being called by a page/post? It's basically like leaving tons of old recipes in your cook book despite having a new version on your tablet at a touch of a finger... in a sense if you followed my odd analogy lol! The script (update counter) is doing what it needs to do, if however something is in fact very odd about your attachments this might be something unrelated entirely or if related perhaps an issue with your single site alone, that we're unsure of so we cannot comment regarding that only what we know it should be doing.
|
Благодарность от: | ||
RichieBoy67 |
#9
|
|||
|
|||
I know what refcount 0 is, but I don't think I had 50 % of attachments that are not used in posts.
5 % is okay, but not 50 %, it is not impossible! I had restored all my attachments, I correct the value of refcount and set the value to 1 where attachments used in posts... It was definitly a WRONG that they had the refcount value 0. And I still don't know why they got this value. |
#10
|
||||
|
||||
Quote:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|