You are not authorized to access that file
I have installed this plugin on my wordpressblog http://blog.erfanik.com/ and I was hoping to use it to upload documents for people who read my blog. The very first document which I uploaded is currently on my blog for download. However, when I click on the link to download it as a normal user (not logged in), it gives me this error “You are not authorized to access that file”.
The file is set to public and not private. And the directory’s option for read/write is correct.
I have searched all over the internet to find out if anyone else is having the same problem but its only me and I cant find any solution for it.
EDIT: Here is a link to that file on my blog
and here is a link to the wordpress post:
(not a very good post to share in public hahahaha)
Could you please kindly help me solve this issue?
Weird. Just a few quick questions: Do you have any other plugins installed? What version of WordPress are you using? And are you using the most recent version of WP Document Revisions?
Yes I am using a few other plugins such as: Contact Form 7, Google XML Sitemaps,NextGEN Gallery,Schreikasten,Theme-Check,Ultimate TinyMCE,Wordpress Download Monitor,WordPress SEO,WP About Author
That was a full list of plugins installed on my blog.
WordPress Version: 3.5.1
WP Document Revisions Version: 1.3.5
I know that is pretty weird, cause I couldnt find any similar error posted on the internet anywhere else :[
Cool. Just took a look at the code. The issue is a non-authorized user does not have access rights to a revision by default.
Not sure if you do much coding, but if you check out the line here on GitHub, you’ll see that it’s asking if the current user can read document revisions. Anyone who can log in by default can read revisions. Anyone not logged in can’t (that’s explained further along in the code).
Some options to let non-authenticated users check out revisions:
1. Utilize the ‘serve_document_auth‘ filter to enable non-logged in users to access revisions.
2. Instead of linking to a revision, link to the most updated document
There might be some other options as well, but those are the two I can think of off the top of my head that might be the easiest to implement.
Feel free to post back here if you have any more issues.
- The topic ‘You are not authorized to access that file’ is closed to new replies.