0

If I go to this link

http://www.moreshesashkenaz.org/mm/publications/MadrichEnglish.pdf

sometimes (maybe always), I get a 404 error

By luck one time I clicked it it managed to load.

Then I hit shift-F5 and it failed. Though now I find shift-F5 and it still loads.

When it hasn't loaded, i've had this message

enter image description here

Though sometimes it does load.

I haven't had it fail with wget yet though I guess that's just chance.

What might be the cause.. Maybe the server is under a huge workload?

I'd be interested if there is anything I can do my end to ensure the link loads though I guess it's an issue their end, and there's nothing I can do.. in which case i'd still be interested in what might cause that.

barlop
  • 25,198

3 Answers3

3

Why is the pdf at this link periodically giving a 404 error?

Short answer:

It is not possible to debug. We can't see the source of the website, how it is configured, etc.

Long answer:

There are commonly accepted reasons for 404 responses (see HTTP 404 for some examples) but a website can be configured to return 404 for any reason at all (depending on what the website author decided to do with a particular request).

There is nothing preventing the return of a 404 error because it happens to be Friday today (to give an example) or because Tim Post lost his keys.

It is entirely up the the author of the website.

As the website appears be be reasonably secure we don't have access to its configuration or source code so we have no way to find out.


What do we know about the website

It uses the following:

  • PHP
  • SSL
  • JavaScript
  • MooTools
  • Joomla

and a bunch of other technologies.

None of this is accessible from outside so it doesn't help to debug your issue.

Source Site report for www.moreshesashkenaz.org


Debugging with firefox

Request headers:

Host: www.moreshesashkenaz.org
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate
DNT: 1
Referer: http://www.moreshesashkenaz.org/mm/publications/
Cookie: 4957186c87cf302cf91cc7d50c18a108=S%2CSKrRvB%2CMirDEhhz%2CPgH2; jfcookie[lang]=en
Connection: keep-alive
If-Modified-Since: Fri, 14 Aug 2015 11:14:25 GMT

Response:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us" dir="ltr">
<head>
    <title>404 - Error: 404</title>
    <link rel="stylesheet" href="/templates/system/css/error.css" type="text/css" />
    </head>
<body>
    <div align="center">
        <div id="outline">
        <div id="errorboxoutline">
            <div id="errorboxheader">404 - Component not found</div>
            <div id="errorboxbody">
            <p><strong>You may not be able to visit this page because of:</strong></p>
                <ol>
                    <li>an <strong>out-of-date bookmark/favourite</strong></li>
                    <li>a search engine that has an <strong>out-of-date listing for this site</strong></li>
                    <li>a <strong>mistyped address</strong></li>
                    <li>you have <strong>no access</strong> to this page</li>
                    <li>The requested resource was not found.</li>
                    <li>An error has occurred while processing your request.</li>
                </ol>
            <p><strong>Please try one of the following pages:</strong></p>
            <p>
                <ul>
                    <li><a href="/index.php" title="Go to the Home Page">Home Page</a></li>
                </ul>
            </p>
            <p>If difficulties persist, please contact the System Administrator of this site.</p>
            <div id="techinfo">
            <p>Component not found</p>
            <p>
                            </p>
            </div>
            </div>
        </div>
        </div>
    </div>
</body>
</html>

Note the css included in the response:

/templates/system/css/error.css

This includes the following comment:

/**
 * CSS Document for offline page
 * @version $Id: error.css 14401 2010-01-26 14:10:00Z louis $
 * @package Joomla
 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
 * @license GNU/GPL, see LICENSE.php
 * Joomla! is free software and parts of it may contain or be derived from the
 * GNU General Public License or other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

Note the following:

CSS Document for offline page

The website is including this CSS because it has been coded (for whatever reason) to return this for "offline pages".

DavidPostill
  • 162,382
2

Personally I know only basics of html coding and web servers but let's see the facts what we can find out here:

  • If we open the link http://www.moreshesashkenaz.org/mm/publications/MadrichEnglish.pdf
    sometimes works, sometimes 404

  • If we open http://www.moreshesashkenaz.org/mm/publications/
    when I opened it first, the files were visible and the links were working, now they all disappeared EDIT: I realized it was working for me because after opening it, I have deleted the MadrichEnglish.pdf-ending and reloading the page (not by refreshing) makes it work.

  • Pinging www.moreshesashkenaz.org (66.33.211.53) gave a fine result so I don't think it is because the server is overloaded

  • I have left http://www.moreshesashkenaz.org/mm/publications/ opened when it loaded in a tab. The interesting thing is, that if I open it now, the list is empty, but from the tab where it loaded before, the links are still working fine.

  • It is getting more interesting as I keep testing because if I copy the URL of the tab where the list is empty and paste it into another tab, the list loads, but if I open it as a new link for example from this link http://www.moreshesashkenaz.org/mm/publications/ it gets empty again.

  • Also if I copy the link into a word document, and open it from there, the link is working again.

I hope these information will ring a bell for someone and give an appropriate answer, I can only guess that this has something to do with character encoding.

EDIT:

  • Tested the link with Internet Explorer, Chrome, Waterfox(*64 bit version of Firefox), on IOS with safari and - got the same results: Copying the link to a new tab makes the links load, opening the page as hyperlink doesn't load properly.
    Opening the link with the Stack Exchange app results the page to work properly and load the links as well. I also tried to open it with Facebook app and the links failed to load again.
Lrnd
  • 1,811
-1

Try to add following into your .htaccess file :

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule !(js|ico|gif|jpg|png|pdf|css|swf|flv|libraries|maint|admin|login|logout|reg) index.php [QSA,L,NC]
</IfModule>

I had the same problem with PDF (and other file types), then my hoster informed me to add NC for RewriteRule

clhy
  • 6,514