Support » Plugin: WP Document Revisions » You are not authorized to access that file

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘You are not authorized to access that file’ is closed to new replies.