Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 02-21-2011, 02:57 AM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default IE says cannot download attachment.php

I'm having an odd issue... never seen it before. When adding an attachment to a post, all seems to work well. But then when you try to click the link to view the attachment, you get an error saying "cannot open attachment.php".

I checked the tables and all the information appears to be there. The url looks like it's correct. I tried converting to storing as file system, but still have the same error.

Here is the url to a page where I posted a test pdf file (last post):

http://www.40by20.com/forum/showthre...=2609#post2609

Anyone have any ideas??

Thanks!
Reply With Quote
  #2  
Old 02-21-2011, 03:06 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You don't allow guests to download attachments, so I just get a login screen when clicking on the link.

Does this work with other browsers like firefox?
Reply With Quote
  #3  
Old 02-22-2011, 11:36 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi, sorry it took me so long to reply. Ok, I changed the permissions so that guests can now download attachments. If you have any solutions, I would really really appreciate it! Thanks!

I just tried it in FF and got this error...

Code:
XML Parsing Error: unexpected parser state
Location: jar:file:///C:/Program%20Files/Mozilla%20Firefox/chrome/toolkit.jar!/content/global/netError.xhtml
Line Number 327, Column 50:        <div id="ed_netReset">&netReset.longDesc;</div>
Reply With Quote
  #4  
Old 02-23-2011, 12:20 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error trying to download that attachment:
Quote:
File not found

Firefox can't find the file at http://www.40by20.com/forum/attachme...7&d=1298262938.

* Check the file name for capitalization or other typing errors.
* Check to see if the file was moved, renamed or deleted.
I'd suggest creating a new style with no parent:
  • Styles & Templates > Style Manager > Add New Style
  • Parent Style: No Parent Style
  • Title: Default vBulletin
  • Allow User Selection: Yes
  • Save
Then go to that thread using that totally default vbulletin style - do you still have the same problem?

If so, try disabling your modifications/plugins and see if you still have this problem.
Note: To temporarily disable the plugin system, edit includes/config.php and add this line right under <?php

PHP Code:
define('DISABLE_HOOKS'true); 
Reply With Quote
  #5  
Old 02-27-2011, 02:47 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I created the custom theme with no parent style so it was a completely separate style. So I just made the original default style active to test. I still got the same error. Created a new default style just in case... same error.

There are no plugins/products installed, but I put that bit of code in config anyway to test. Still got the same error.

sigh

Could this be a problem in the database?
Reply With Quote
  #6  
Old 02-27-2011, 04:11 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I doubt it is a problem with the database, I would suspect the server is the issue.

What is the mime type you have for the pdf in your attachment manager?

And how big is the pdf - do you get this error for both large and small files of that type?
Reply With Quote
  #7  
Old 02-27-2011, 04:44 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There appears to be some issue with more than one type of attachment. jpg images that are attached show up as a red x and the picture is not displayed.

I just noticed something though... if you take a look at this thread, a member posted two image inline in his post. They appear to show up just fine. But then below that, another member quoted that post and the images were converted to attachment links. If you try to click the attachment links, you get that same error with the image not displaying (red x).

http://40by20.com/forum/showthread.p...&p=246#post246

It seems to me there is something causing problems when you try to click an attachment link and open it in a separate view. If that makes sense.

The file sizes are all varied by the way.

How do I determine the mime type?

I am also a web host reseller for GoDaddy. This website is hosted via my reseller site. I have been using vB on this hosting for many years, including currently with no problems. I have never experienced this issue. I have never had any issue with the server settings/etc.
Reply With Quote
  #8  
Old 02-27-2011, 05:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Go to Maintenance > Diagnostics > Upload. What happens there if you upload? What is the info it spits out?

And, what do you have set in AdminCP > Settings > Options > Server Settings and Optimization Options > Safe Mode Upload Enable and Safe Mode Temporary Directory ?
Reply With Quote
  #9  
Old 02-27-2011, 05:37 PM
AFemaleProdigy's Avatar
AFemaleProdigy AFemaleProdigy is offline
 
Join Date: Mar 2006
Location: Murrells Inlet, SC
Posts: 216
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no errors...

file_uploadsn
open_basedir: none
safe_mode: off
upload_tmp_dir: /tmp
upload_max_filesize: 8.00 MB

"No errors occurred while opening the uploaded file for reading. "
Reply With Quote
  #10  
Old 02-27-2011, 05:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where are your attachments being served from right now - the database or filesystem? If in the filesystem, can you see the files in that directory? Is the directory chmod 777 and all directories in it also?
Reply With Quote
Reply


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 02:01 AM.


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.06536 seconds
  • Memory Usage 2,260KB
  • Queries Executed 11 (?)
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_code
  • (1)bbcode_php
  • (1)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
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete