The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Images Disappearing
Hello,
I am having this issue where images are posted/uploaded using the bbcode icon and then later they disappear. Last night I posted a few test images and they were there showing for hours. I thought things were fine and then today I check and they are all links, no images.. I am serving from the file system. This was happening on another server and this week I moved to a new server hoping that the server may have been the issue..no such luck. I have tried disabling plug ins and a few other things, nothing works. Not seeing anything of note in the logs either.. Thanks --------------- Added [DATE]1490297979[/DATE] at [TIME]1490297979[/TIME] --------------- Very strange.. The attachments are actually pulled from the database! What could do this? I thought it was a plug in but I cannot find anything that would cause it... I doubt it is the server because I have 2 other vbulletin sites I am hosting on the same server.. Is anyone skilled enough to figure this out? |
#2
|
||||
|
||||
What version of vBulletin are you running? (And what version of PHP?)
|
#3
|
||||
|
||||
Hi Lynne,
Version 4.2.5 Beta 1 php 7.0.17 Issue was going on before using older versions as well but it is sort of random and I thought it was fixed for awhile. Nothing showing in the logs either. --------------- Added [DATE]1490309940[/DATE] at [TIME]1490309940[/TIME] --------------- Dave is helping me and we both are mystified.. I am doing a back up now and then I am going to change inline full size to thumbnails and see if that helps... Not sure I know what else to try. I removed a boat load of plug ins, turned off cron tasks.. I thought maybe a cron task was doing it but I just do not know why. Thoughts? What could remove those attachments right from the database like that? Recent images only.. --------------- Added [DATE]1490311408[/DATE] at [TIME]1490311408[/TIME] --------------- seems to be a cron task..one of the clean up tasks.. --------------- Added [DATE]1490311861[/DATE] at [TIME]1490311861[/TIME] --------------- I believe we found the culprit in cleanup2.php in the cron directory: // Orphaned Attachments are removed after one hour $attachdata = datamanager_init('Attachment', $vbulletin, ERRTYPE_SILENT, 'attachment'); $attachdata->set_condition("a.contentid = 0 AND a.dateline < " . (TIMENOW - 3600)); $attachdata->delete(true, false); |
#4
|
||||
|
||||
That should definitely be logged as a bug.
I was asking about the version and PHP version because there was a bug very much like this back in 4.2.3 (I believe). Sometimes bugs like to come back in every other version (not sure exactly why, but it does seem to happen). |
#5
|
||||
|
||||
Yes, I recall that bug but I do not recall it using a cron task. I could be wrong though.. I do remember attachments being deleted though after upgrading and updating counters.
I will report this as a bug this week. Thanks ##Big Thanks to Dave for helping me figure this out! |
#6
|
||||
|
||||
It was one of the cleanup cron jobs that was causing the other bug (iirc).
|
Благодарность от: | ||
RichieBoy67 |
#7
|
||||
|
||||
Good to know. Thanks :up:
|
#8
|
||||
|
||||
I have still got an issue with image attachments. They post ok but apparently unregistered users cannot see some of the recently posted attachments.
I have gone through attachment permissions and all are set fine. Unregistered members should be able to download and view images.. Disabling plug ins does not fix this issue either. ##Upon visiting a post that just images uploaded I see nothing but file size and name. As soon as I log in I see the images and then if I log out the images still show.. |
#9
|
||||
|
||||
The image still shows once you logout because it is cached in your browser.
But, do you allow users to view the site via www.site.com and also just site.com? If so, make sure your cookie domain is set correctly or that will cause users to not be able to see the images unless they are using the URL you specified in the admincp. |
#10
|
||||
|
||||
Quote:
I have all urls redirected to https:// and cookies set to default. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|