Closed (fixed)
Project:
Advanced Help
Version:
7.x-1.1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
11 Jul 2013 at 03:45 UTC
Updated:
12 Jul 2015 at 23:34 UTC
Jump to comment: Most recent
This started happening to my site. Not sure why.
Comments
Comment #1
jaydee1818 commentedExample, if I click:
Advanced Help > "module title (eg. Better Exposed Filters)" > README
Results in:
Not Found
The requested URL "/help/better_exposed_filters/README.txt" was not found on this server.
Comment #2
sonicthoughts commentedsame issue
Comment #3
gisleThis original report is one year old and I am unable to reproduce on the latest supported release.
While there is a second report from two months ago, I am sure this is not a common problem, and it is impossible to pinpoint what causes this without more details. I am therefore downgrading to a "Support request" and closing.
Feel free to reopen if you can explain how to reproduce from a clean install.
Comment #4
jaydee1818 commentedTo replicate this problem, you can download and enable the Fast 404 module - https://www.drupal.org/project/fast_404
Then enabling Clean URL's.
Comment #5
jaydee1818 commentedComment #6
gisleThanks for the update!
This happens because Fast 404 is incompatible with Advanced Help.
When looking at its code, I noticed that Fast 404 chooses to "blacklists" a number of file extensions, including
txt.This "blacklist is defined by the following line in
fast_404.inc:I've no idea why it does such a thing. But it makes Fast 404 return 404 if you try to use Drupal to show any file that has any of the extensions listed, including
README.txtThis "blacklist" looks pretty arbitrary to me. For instance the extension
mdis not blacklisted, so markdown text (standard nameREADME.md) will not be blacklisted. (But I have not done any deep analysis of Fast 404 to discover the rationale behind this blacklist, so there may be some reason behind it.)You can fix the problem by disabling Fast 404 (recommended), or by having the following line in your
settings.php(make sure it all is on one line):The latter setting omits
txt-files from the "blacklist". Use this at your own risk. I cannot guarantee that removing this extension from will not cause any harmful side effects or security implications.Comment #7
gisleCreated related issue in the Fast 404 issue queue.
Comment #8
jaydee1818 commentedThanks - I applied your patch and I can now view Advanced Help without disabling Fast 404. There don't seem to be any noticeable issue but will keep you posted if anything crops up.