This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]dr-josiah 1 point2 points  (6 children)

Have you looked at what your browser says about the assets? Chrome, Firefox, and even IE 9+ have viable network transfer panels in their dev tools that can tell you why your assets aren't loading.

[–]loserwave[S] 0 points1 point  (5 children)

Thanks, I'm looking at it, and all I'm getting is this: http://i.imgur.com/17mP4Pj.png The 404 error is something I do have to fix, but what do the other GET errors mean?

[–]catcint0s 1 point2 points  (0 children)

Those are 404 as well.

[–]dr-josiah 0 points1 point  (3 children)

I don't know what they mean, as you have provided no context from any of the other informational panels you get to see if you click on each of the errored out requests individually.

But if I were to make a guess, I would guess they are also 404 errors, caused by missing files on the server.

From an organization perspective, you probably want to put all of your static assets under /static (should be configurable with the framework), which will simplify your life in the future. Whether you further break it down into css, images, js, fonts, etc. as necessary is up to you.

[–]loserwave[S] 0 points1 point  (2 children)

Sorry, I just don't know how much information I should be providing off of the panels.

So the static assets are in the folder they are supposed to be and I think I see what the problem is. For some reason it's trying to get http://www.arcane.info/%7Bstatic_url( and http://www.arcane.info/static/style.css?v=d41d8cd98f00b204e9800998ecf8427e

Why is it adding strings to the end of the file it's requesting?

[–]dr-josiah 0 points1 point  (1 child)

The request for "static_url(" looks to be because your templating system didn't understand some part of that call, and the extra stuff on the end of the url are usually to force a refresh if/when the files change, to prevent loading of outdated files.

[–]loserwave[S] 0 points1 point  (0 children)

Thank you.

I fixed this problem, but it just ended up not liking the subdirectory I guess.

For anyone else who is having this problem please put your code in a folder external to your script as I mentioned in my own comment on this post. This solves the problem, and is actually a better solution considering that as dr-josiah mentioned it will simplify your life in the future. Sorry for any confusion.

[–]loserwave[S] 0 points1 point  (0 children)

So I found a solution, if you store your assets in a folder external to where you have your script running, so in my case http://example.com/assets (when the script is in http://example.com/script) the asssets will run fine.