hyperRail icon indicating copy to clipboard operation
hyperRail copied to clipboard

404 Not found CSS file on Station - Departure overview

Open SerkanYildiz opened this issue 9 years ago • 13 comments

I'm getting an error on the production site, station departure overview. It's trying to load, animate.css, a file that doesn't exists. 404notfound-animate css

SerkanYildiz avatar Jul 20 '16 14:07 SerkanYildiz

Btw it's not only on the stations - departure overview, but the whole website..

SerkanYildiz avatar Jul 20 '16 14:07 SerkanYildiz

Investigating

xavez avatar Jul 20 '16 14:07 xavez

Don’t have the problem locally. Might also be a caching problem?

xavez avatar Jul 20 '16 14:07 xavez

Don't think so, I cleared my cache and tried again, same problem. Stan had the same 404 not found with css on production

SerkanYildiz avatar Jul 20 '16 15:07 SerkanYildiz

Do you have the problem locally?

xavez avatar Jul 20 '16 15:07 xavez

Nope, locally no errors

SerkanYildiz avatar Jul 20 '16 15:07 SerkanYildiz

I think there is some other caching going on as well on the server, so clearing locally won't necessary fix it.

xavez avatar Jul 20 '16 16:07 xavez

It seems that that the page also keep on loading in seconds. schermafbeelding 2016-07-20 om 20 14 38

Tjoosten avatar Jul 20 '16 18:07 Tjoosten

Real funky stuff.

  • animate.css is loaded in the _main.scss file (source: https://github.com/iRail/hyperRail/blob/master/public/app/sass/main.scss#L66). So there shouldn’t be any other reference to animate.css.
  • I also cannot find any reference to animate.css in the source HTML.

Is it possible that it is injected by some part of the Angular code, and only on the server (non-dev environment)?

xavez avatar Jul 21 '16 14:07 xavez

While I was re-installing the iRail/hypeRail repo, Composer asked me this:

Unable to find a suitable version for angular, please choose one by typing one of the numbers below:
    1) angular#1.2.29 which resolved to 1.2.29 and is required by hyperRail
    2) angular#>=1 which resolved to 1.2.29 and is required by angular-bootstrap#0.11.2
    3) angular#1.2.30 which resolved to 1.2.30 and is required by angular-animate#1.2.30

When I selected option 3. I don't have this error. Maybe that is the problem?

SerkanYildiz avatar Aug 03 '16 12:08 SerkanYildiz

I don’t see any relevant fixes in the changelog though: https://github.com/angular/angular.js/blob/master/CHANGELOG.md#1230-patronal-resurrection-2016-07-21

xavez avatar Aug 03 '16 13:08 xavez

I don't have a idea :-) AngularJS can be weird sometimes..

SerkanYildiz avatar Aug 03 '16 16:08 SerkanYildiz

@SerkanYildiz well, the thing is that on my local dev environment, I don’t see the 404 error, while on the irail.be server, I do, so something must have changed between the local dev env and the server . . .

xavez avatar Aug 04 '16 08:08 xavez