vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   IE says cannot download attachment.php (https://vborg.vbsupport.ru/showthread.php?t=259192)

AFemaleProdigy 02-21-2011 02:57 AM

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!

Lynne 02-21-2011 03:06 AM

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?

AFemaleProdigy 02-22-2011 11:36 PM

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! :D

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>


Lynne 02-23-2011 12:20 AM

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


AFemaleProdigy 02-27-2011 02:47 PM

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 :confused:

Could this be a problem in the database?

Lynne 02-27-2011 04:11 PM

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?

AFemaleProdigy 02-27-2011 04:44 PM

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.

Lynne 02-27-2011 05:18 PM

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 ?

AFemaleProdigy 02-27-2011 05:37 PM

no errors...

file_uploads:on
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. "

Lynne 02-27-2011 05:49 PM

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?


All times are GMT. The time now is 10:05 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.01382 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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