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

Reply
 
Thread Tools Display Modes
  #21  
Old 07-17-2012, 07:43 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I could create one in the next day or two and give you private access if you want.
Reply With Quote
  #22  
Old 07-17-2012, 10:02 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would set up a test site and see if you can reproduce the issue there. Then see if disabling all your modifications will 'fix' the issue.
Reply With Quote
  #23  
Old 07-18-2012, 09:43 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Do you have a test site - a duplicate of your live site? It may be easier to do these sort of tests on a test site and be able to leave the live site alone.
As I said, I'm happy to create a test site for you to try out if you want.

Otherwise I don't get your suggestion. You seem to be suggesting that I create a test site to test this attachment problem, but I'm unable to see how testing on a test site is going to unearth something I haven't found by testing on the live site (which I've already done). Am I missing something?

I have tried turning off the modifications this morning and trying out some attachments. I get the same problem.

I'm beginning to suspect it's a vBulletin problem rather than one of my making.
Reply With Quote
  #24  
Old 07-18-2012, 04:15 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK, you may do tests on the live site.

I would suggest reuploading ALL totally default files for your site (important!), removing any files that are unused (very important!), setting your site to use a totally default style, and disabling all your modifications. Run your site like this for a few days. I thought that would be easier for you on a test site than on a live site.
Reply With Quote
  #25  
Old 07-19-2012, 09:57 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, such drastic action would hamper the smooth operation of the forum and would need to be done on a test site rather than the live one.

It is a fair amount of work and time commitment though. If I knew for sure this would solve the problem I would do it. However, considering that the problem is more deep rooted and possibly even a vB problem rather a Macsee one, I could end up sinking a lot of time and energy into chasing shadows.

I'm going to give up at this point. Thanks for all your assistance.
Reply With Quote
  #26  
Old 07-19-2012, 10:17 AM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you have a messed up .htaccess file or hotlink protection in cpanel is messed up.
Reply With Quote
  #27  
Old 07-19-2012, 04:05 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I really don't think it is a vB problem because you would be hearing a LOT of admins complaining about this happening on their site if it was a vB problem. As it is, I've only heard of this happening on a couple of sites and they all had modifications on them (and I think they were also on shared hosting).
Reply With Quote
  #28  
Old 07-19-2012, 06:04 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Simon, that's a thought, but wouldn't a messed up htaccess affect all attachments including all that I, the admin, make? There is no cPanel on my server. Thanks for the suggestion though.

Lynne, I have seen a fair few complaints here, elsewhere and in vbulletin.com (in fact, one of their developers' attachments - posted in a thread about missing attachments, ironically - went walkabouts). I didn't save all the URLs but there were several.

Incidentally, I'm not on a shared host, it's a dedicated Linux/Apache box (and, yes, without cP). I've disabled EasyForms now and have only GlowHost and ThankYou. I dislike modding for precisely this reason - muddying the waters when it comes to troubleshooting - so no custom mods, not even our own skin. We use default vB.
Reply With Quote
  #29  
Old 07-19-2012, 06:14 PM
Simon Lloyd's Avatar
Simon Lloyd Simon Lloyd is offline
 
Join Date: Aug 2008
Location: Manchester
Posts: 3,481
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Macsee View Post
Simon, that's a thought, but wouldn't a messed up htaccess affect all attachments including all that I, the admin, make? There is no cPanel on my server. Thanks for the suggestion though....
No it wouldn't, here's a section that allows only certain domains to see or link to pictures
HTML Code:
#RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com$      [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz/.*$      [NC]
#RewriteCond %{HTTP_REFERER} !^http://www.thecodecage.com/forumz$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
take a look in your .htaccess for something like this and see what's lurking there, other than server settings this is the only reason i can see for an upload to not complete!
Reply With Quote
Благодарность от:
Macsee
  #30  
Old 07-19-2012, 06:36 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think Lynne was hinting at this before, but anyway - the cleanup2 scheduled task removes any entries from the attachment table that are older than 1 hour and have contentid = 0. So the fact that you saw the record had contentid=0 seems to be the problem. In includes/class_dm_threadpost.php around line 526 is this code:

PHP Code:
        if ($this->info['posthash'] AND $this->fetch_field('attach') AND $postid)
        {
            
$this->dbobject->query_write("
                UPDATE " 
TABLE_PREFIX "attachment
                SET
                    contentid = 
$postid,
                    posthash = ''
                WHERE
                    posthash = '" 
$this->dbobject->escape_string($this->info['posthash']) . "'
                        AND
                    userid = " 
intval($this->fetch_field('userid''post')) . "
            "
);
        } 

That's suppose to be executed at the same time that the post is posted, to set the content id to the postid and to erase the posthash. It might be interesting to know if that's getting executed (when someone posts with an attachment), and if not, why not (which part of the condition is false). Since you have full access to your server you could do something like put in some code to open a debug file and write out some info (which is how I do a lot of debugging).
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 04:23 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.06752 seconds
  • Memory Usage 2,271KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_html
  • (1)bbcode_php
  • (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
  • (3)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