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 05-10-2012, 03:22 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default invalid attachment problem

When I click on the image in posts, I get the error message
"invalid Attachment specified. If you followed a valid link, please notify the administrator"

This is something I've noticed over the last few weeks.

Strange thing is that someone created a post with an attachment a few days ago and it worked the first time I tried it. But when I go back to that post now I get the error message.

This seems to affect only the private forum (Admin CP > Forum Manager > Show Private Forum = Yes, Display Post Count).

I've tried a site: search in Google to see if the problem has come up before on these forums, and I've found a few threads about the issue, but no solution.

Any suggestions?
Reply With Quote
  #2  
Old 05-10-2012, 03:36 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are your attachments stored in the database or filesystem? Can you look in the filedata/attachment table and actually see the attachment? Do you allow users to delete their attachments? And do you have a limit on the amount of space a user may use for attachments? Are you sure they are not deleting it via their own Settings page?
Reply With Quote
Благодарность от:
Macsee
  #3  
Old 05-10-2012, 05:40 PM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Good suggestions ... and you had me scrambling around looking for things!

First, the images are in a database (but I don't know how to look in the attachment table to see the attachment. A mySQL query?)

I'd rule out users deleting attachments intentionally, I've spoken with my employees who have accounts on the forum. Besides, I've checked now and, no, they don't have permission to delete.

The space limit is interesting and not one I had considered. I don't believe I've set a limit, but how would I check? There does not seem to be this space limit setting in the Attachments section of the usergroup and the settings in Options > Message Attachment Options has the "Limit Space Taken Up By Attachments" set to 0. Is there some other location I need to be investigating?
Reply With Quote
  #4  
Old 05-10-2012, 09:29 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Space limit is a usergroup option. The one you see in settings is the overall site space limit. But, if you look in the Usergroup Manager, you will see if you set a space amount for that usergroup.

If you look at the link for the attachment, somewhere it should say "attachmentid=xx". You may then look in the attachment table and see if there is a row where attachmentid equals xx. That will tell you if the attachment exists still. Now, in that same row, please note the filedataid for that attachment. I'll call that zz.

Does that link have anything in it like "thumb=yy" ? If so, what? Now, look in the table filedata and see if you can find a row for filedataid zz. Does it have a BLOB size larger than 0 under the field thumbnail?

You said this is only happening in a private forum? So, there is no way we can get a link to a post where you are having the problem?
Reply With Quote
  #5  
Old 05-11-2012, 10:10 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Lynne.

I have an entry in the usergroup for "Space (in bytes) that a user's total attachment usage may consume - (Set to 0 to not have a limit) " and I have that set to zero.

Do you have a link to any tutorial on what I need to do to "look in the table". I have phpmyadmin access and FTP access and can download the db to my hard disk, but don't know how to search within the table. Can I open the relevant table in something like Excel?

I have noticed the problem so far only in the private forum. I could create a login for you to access that if you want and send it to you by PM.
Reply With Quote
  #6  
Old 05-11-2012, 11:35 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you run phpmyadmin, you should be able to select the database, click on the attachment table, then the "Browse" tab and scroll through the records. If you have a lot of attachments you'll probably want to do a query instead: click on the SQL tab and change the end of the query so that it looks like:

Code:
SELECT * FROM `attachment` WHERE attachmentid = xx
(obviously you want to put the actual attachment id in place of xx).
Reply With Quote
Благодарность от:
Lynne
  #7  
Old 05-11-2012, 02:32 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

As Kevin said, phpMyAdmin is what you would use to look in your database.
Reply With Quote
  #8  
Old 05-14-2012, 04:04 PM
rodeojones's Avatar
rodeojones rodeojones is offline
 
Join Date: Feb 2012
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have the same problem. I have a certain usergroup that can access a CMS page that has a link to an attachment. When I am logged in as administrator I can download the attachment just fine so I know the attachment is there. But when I log in as the other usergroup that can access the file I get the error "Invalid Attachment specified..."

I have verified the permission settings. Any help would be greatly appreciated. Thanks

EDIT: Ok, so I figured out my problem. I had added the attachment to a forum that my usergroup couldn't access and then used that URL for the attachment to the link on my CMS page. When I went in and posted the attachment in a thread my usergroup could access and then used that URL for the attachment, the link it worked just fine. As usual, user operated error Hope this helps anyone with a similar problem though.
Reply With Quote
  #9  
Old 05-15-2012, 08:47 AM
Macsee Macsee is offline
 
Join Date: Sep 2010
Posts: 153
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for your replies, kh99 and Lynne. I'm away for a few days and don't want to log into pma on an insecure IP. I'll try the above when I get back home and I'll report back on the outcome.
Reply With Quote
  #10  
Old 05-15-2012, 09:38 AM
smoking zone smoking zone is offline
 
Join Date: Apr 2012
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i need help off someone asap my members or i cant upload anything on the forum and the post and attachment size is 25mb i tried uploading 10mb but it says to much to process and then it says then whe i try upload it says image upload failed sh/identity no such file or directory but havent had any replys so dont know what to do can you help please also the uploader isnt the vbulletin select and upload it different for some reason
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 08:23 PM.


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.05040 seconds
  • Memory Usage 2,261KB
  • 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_code
  • (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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)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