Err_empty_response

@Stephan,

When a link in a page points to a file in the folder of the page, like <a href="/typography/x.pdf">Download</a>, Grav is not involved. The webserver itself will happily download the file, unless…
- The file doesn’t exist
- File permission issues
- .htaccess issues
- other issues beyond my imagination…

<UPDATE>

Above statement is incorrect. Grav’s involvement in fetching files depends on the url being used:

  • Url points to the file’s path: /user/pages/02.typography/myimage.png
    => Grav is bypassed
    These urls are generated with adding images in Markdown using ![My Image](myimage.jpg) or using Twigs {{ (page.media|first).html() }}

  • Url points to a route: /typography/myimage.png
    => Grav is needed to parse the url

</UPDATE>

A weird thing is:

  • Both files are in the same folder, but they produce different errors…

Maybe, there is a collision with cache when cache folder has also been copied? Try bin/grav cache and also clear the cache in the browser

Also try the following:

  • Create a fresh install of Grav 1.7.34

  • Copy file 17_2019_KT-Kolloquium_Tagungsband.pdf into folder /user/pages/02.typography/ and add link <a href="/typography/17_2019_KT-Kolloquium_Tagungsband.pdf">Download</a> to file /user/pages/02.typography/default.md.

    If the download fails, your probably have one of those “unless” issues in which case I have no more suggestions…

2 Likes