0

I'm having a few problems when I upload my design to my hosting. Sometimes different things won't load css files, images, jsfiles, etc. This makes it so my design looks like this. I've checked all my file paths, and they all are correct.

Sometimes my index.php won't even load.

Here's a preview.

Here's another preview when I refresh.

Thank you for the help.

21
  • path may be correct but probably you miss to upload the resources you are linking Commented Oct 19, 2016 at 8:52
  • There's probably a problem with the paths. Look int he page's source code to see what paths are used. Often, the mistake is using a relative path: images/ instead of an absolute one: /images/ Commented Oct 19, 2016 at 8:52
  • @LelioFaieta The paths aren't the problem, everything loads, but not always, sometimes my .php or .css files won't even load Commented Oct 19, 2016 at 8:55
  • Open up dev tools and it should report in the console what resources couldn't be reached to narrow it down, who is your host? Commented Oct 19, 2016 at 8:57
  • @LeoFNaN sometimes my index.php won't even load, so I don't think the paths are a problem. Commented Oct 19, 2016 at 8:58

3 Answers 3

1

I have contacted my website hosting. They have restarted the server and everything is working now.

The problem would have been that there were 2 servers running on one or something they said. I have no idea what they were talking about. But it helped!

Thanks to everyone who helped out!

Sign up to request clarification or add additional context in comments.

1 Comment

Great that you found solution, was gonna say change web host
0

If you have Linux Hosting, then the references for css, images, javascript files must have the same exact name. It is case sensitive. E.g., Style.css is different than style.css and style.CSS for Linux hosting hence it will not load those files and will give file not found error.

And it applies to folder names as well. E.g. if logo.jpg is in a folder named "Images" then reference should have "../Images/logo.jpg". And if you have "../images/logo.jpg" then you get "File not found".

6 Comments

I use uppercase foldernames, could this also be a problem? These are also linked as uppercase in the paths
Yes. folder names should be exactly the same as they have their names physically. Please see edited answer.
I have done this, and this is still the case, here's a link to the webpage
Do you have all of these folders' names in uppercase?
yes they do. Normaly all my paths are linked correctly but my index.php won't load sometimes aswell.
|
0

Option 1: Use Xampp

www.apachefriends.org/de/download.html

But if you do, download the version 5.5.38, it works better than the new version.

After installing, close applications that need Port 80, start the Apache, and pull your folder with your stuff in "C:\xampp\htdocs".

localhost/"yourfilename" is the domain you could use it.

Option 2: Use a virtual machine and install a linux server.

Virtual Machine Download

Ubuntu Server Download

Now you can install your Server and open it.

2 Comments

This irrelevant. I'm using a webhost.
didnt know this. Maybe its a jquery fail or you missed something in your <head> tag.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.