Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-23-2017, 12:08 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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?
Reply With Quote
  #2  
Old 03-23-2017, 06:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What version of vBulletin are you running? (And what version of PHP?)
Reply With Quote
  #3  
Old 03-23-2017, 07:00 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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);
Reply With Quote
  #4  
Old 03-24-2017, 02:15 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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).
Reply With Quote
  #5  
Old 03-24-2017, 02:18 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 03-24-2017, 05:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It was one of the cleanup cron jobs that was causing the other bug (iirc).
Reply With Quote
Благодарность от:
RichieBoy67
  #7  
Old 03-24-2017, 05:06 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
It was one of the cleanup cron jobs that was causing the other bug (iirc).
Good to know. Thanks :up:
Reply With Quote
  #8  
Old 04-04-2017, 08:45 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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..
Reply With Quote
  #9  
Old 04-04-2017, 10:08 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #10  
Old 04-05-2017, 01:37 AM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:04 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04385 seconds
  • Memory Usage 2,268KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete