vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=252)
-   -   Images Disappearing (https://vborg.vbsupport.ru/showthread.php?t=324797)

RichieBoy67 03-23-2017 12:08 PM

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?

Lynne 03-23-2017 06:57 PM

What version of vBulletin are you running? (And what version of PHP?)

RichieBoy67 03-23-2017 07:00 PM

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);

Lynne 03-24-2017 02:15 AM

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).

RichieBoy67 03-24-2017 02:18 AM

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!

Lynne 03-24-2017 05:05 PM

It was one of the cleanup cron jobs that was causing the other bug (iirc).

RichieBoy67 03-24-2017 05:06 PM

Quote:

Originally Posted by Lynne (Post 2584290)
It was one of the cleanup cron jobs that was causing the other bug (iirc).

Good to know. Thanks :up:

RichieBoy67 04-04-2017 08:45 PM

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..

Lynne 04-04-2017 10:08 PM

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.

RichieBoy67 04-05-2017 01:37 AM

Quote:

Originally Posted by Lynne (Post 2584747)
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.

Hi Lynne, Thank you

I have all urls redirected to https:// and cookies set to default.


All times are GMT. The time now is 09:55 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.01514 seconds
  • Memory Usage 1,738KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete