View Full Version : Attachment Permission Denied
webcosmo
05-14-2008, 01:54 PM
I am running into this error hoping somebody could suggest a solution. When a user uploads an attachment on a post we get error on clicking on the attachment link. Registered users has permission to view attachments.
The error is:
Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no
As an example first post of this thread has an attachment (shows the phone icon, dont know why).
http://webcosmoforums.com/showthread.php?t=469
Clicking on it shows that error.
Lynne
05-14-2008, 02:22 PM
I don't get an error when clicking on that. Have you tried this out as a guest vs registered user vs admin? And have you tried it in different browsers? (I'm using firefox on a Mac)
webcosmo
05-14-2008, 02:51 PM
I don't get an error when clicking on that. Have you tried this out as a guest vs registered user vs admin? And have you tried it in different browsers? (I'm using firefox on a Mac)
Thanks for helping.
When you clicked on the attachment was you able to see the larger view? That was the problem actually. Small thumb view is fine.
I tried Mozilla and IE on Windows. Both giving me permission denied error. It seem to be a JavaScript error, but you could tell better.
Lynne
05-14-2008, 03:24 PM
Thanks for helping.
When you clicked on the attachment was you able to see the larger view? That was the problem actually. Small thumb view is fine.
I tried Mozilla and IE on Windows. Both giving me permission denied error. It seem to be a JavaScript error, but you could tell better.
When I clicked on it, it would not open. But, I was able to do a "Open in New Tab" to it. Have you looked at your source code to verify that the javascript is being called correctly? You have some sort of modification installed since it isn't standard vb.
webcosmo
05-14-2008, 04:04 PM
When I clicked on it, it would not open. But, I was able to do a "Open in New Tab" to it. Have you looked at your source code to verify that the javascript is being called correctly? You have some sort of modification installed since it isn't standard vb.
You right, I haven't noticed that. If you move the mouse on top of the thumb it shows the same url as on the new tab.
I am not much of a PHP literate, just got some idea. I work mainly with ASP .Net. If you could tell what part/file to change I would appreciate that.
Lynne
05-14-2008, 07:21 PM
Just taking a quick look at your source code, I see that the image is called out in this manner:
<div id="post_message_969">If a woman likes a man with whom she is talking at the moment, she raises the tone of her voice, that is, she starts talking with higher voice, even not noticing this herself. A man who is interested in the woman, on the contrary, unwittingly lowers the tone of his voice in a conversation with her. That is he begins to speak with more low voice. <a href="http://www.webcosmoforums.com/attachment.php?attachmentid=1&d=1210749451" rel="Lightbox" id="attachment1" ><img src="http://www.webcosmoforums.com/attachment.php?attachmentid=1&thumb=1&d=1210749451" class="thumbnail" border="0" alt="Click image for larger version
Name: 04100.jpg
Views: 4
Size: 1.6 KB
ID: 1" style="margin: 2px" /></a></div>
<!-- / message -->
Notice that the alt text for the <img> tag is broken into several lines. That's a no-no and could be why it isn't working properly.
webcosmo
05-14-2008, 10:47 PM
Just taking a quick look at your source code, I see that the image is called out in this manner:
<div id="post_message_969">If a woman likes a man with whom she is talking at the moment, she raises the tone of her voice, that is, she starts talking with higher voice, even not noticing this herself. A man who is interested in the woman, on the contrary, unwittingly lowers the tone of his voice in a conversation with her. That is he begins to speak with more low voice. <a href="http://www.webcosmoforums.com/attachment.php?attachmentid=1&d=1210749451" rel="Lightbox" id="attachment1" ><img src="http://www.webcosmoforums.com/attachment.php?attachmentid=1&thumb=1&d=1210749451" class="thumbnail" border="0" alt="Click image for larger version
Name: 04100.jpg
Views: 4
Size: 1.6 KB
ID: 1" style="margin: 2px" /></a></div>
<!-- / message -->
Notice that the alt text for the <img> tag is broken into several lines. That's a no-no and could be why it isn't working properly.
That may be the case. I tried editing the alt attribute to empty string on the postbit-attachmentthumbnail. But seems like that has no impact on it.
Do you happen to know which part need to be modified to take off the alt tag?
Thanks for your help.
Lynne
05-15-2008, 03:29 AM
Since you are using some sort of modification to do this, I really don't know. You'd have to ask in the modification thread.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.