![]() |
|
Thread Tools |
#1
|
|||
|
|||
Attachments in File Upload Manager
Does anyone know which one of the scheduled task is responsible for cleaning attachments that are not used in the file upload manager? It looks whatever cron it is supposed to be does not work, so none of the attachment gets cleaned up.
No members have liked this post.
|
#2
|
|||
|
|||
I believe /includes/cron/cleanup2.php around line 64 to 72.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#3
|
|||
|
|||
Find the lines. The cron ( Vb 4.2.3 ) is not working and images are still sitting in the file management even after 1 hour.
Does anyone know the reason why this is not working? Has anyone manually deleted the images that are no longer associated with any posts? How did you go about cleaning it up? No members have liked this post.
|
#4
|
|||
|
|||
Is the refcount column value in the Filedata table 0 of said attachment(s)?
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#5
|
|||
|
|||
None of the attachments have "0" in the refcount at all . Is that why the cron fail?
No members have liked this post.
|
#6
|
|||
|
|||
Yes. refcount is the reference count (or the number of references to that attachment). It has a strict check of 0 against it, which is why it doesn't delete the attachments.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#7
|
|||
|
|||
Originally Posted by ed762
Its not failing then, its doing its job.![]()
Attachments with a ref count > 0 should never be deleted. No members have liked this post.
|
#8
|
|||
|
|||
Originally Posted by Dave
Is this a bug within VB? because obviously there is a large number of images that are not in use by any threads. ![]()
Anyway to manually fix it? No members have liked this post.
|
#9
|
|||
|
|||
I'm not aware of any bugs regarding attachments in the latest version of vBulletin.
__________________
https://technidev.com - security, development, exploits, vBulletin
dave[at]technidev[dot]com Contact me for custom vBulletin 3/4 work & server/website management. No members have liked this post.
|
#10
|
||||
|
||||
Originally Posted by ed762
Yes but it is obviously fraught with danger. You need to triple check everything and backup first.![]()
I used the queries from this post: https://www.vbulletin.com/forum/foru...00#post3948600 There was a VBIV open for the failing cron cleanup, not sure if it was fixed in 4.2.3 No members have liked this post.
|
![]() |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Miscellaneous Hacks Asset Manager / Image Upload Fix to upload multiple files like the Flash uploader | BirdOPrey5 | vBulletin 4.x Add-ons | 39 | 05 Feb 2020 19:18 |
Admin CP File Manager (FTP) - Download, Upload, Edit, Rename, Delete PHP Files/Images | Erwin | vBulletin 3.0 Full Releases | 125 | 03 Feb 2007 17:49 |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 18:19.