000webhost website upload didn't come out right

  • Context: PHP 
  • Thread starter Thread starter TheMacNerd
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around issues encountered while uploading a website template to 000webhost.com, specifically regarding missing visual elements such as images and animations, which result in the site displaying only text on a white background. Participants seek solutions to rectify the upload problems and ensure the website appears as intended.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant reports that after uploading a revised website template, the site only displays text and a white background, indicating a potential issue with the upload process.
  • Another participant suggests posting the template or a link to it for further examination.
  • A participant identifies that the CSS and JavaScript files appear to be missing, noting a 404 error for the main stylesheet.
  • One user describes successfully running the template locally on their machine, indicating that it works as expected when served from a local Apache server.
  • Another participant recommends using a debugging tool called Fiddler and inspecting the page to identify issues with MIME types, suggesting that the server may be returning a default 404 HTML page instead of the correct stylesheet.

Areas of Agreement / Disagreement

Participants express differing views on the cause of the issue, with some attributing it to missing files while others suggest potential server configuration problems. No consensus is reached on a definitive solution.

Contextual Notes

There are unresolved questions regarding file paths, server settings, and the specific configurations required for the templates to function correctly on 000webhost.

TheMacNerd
Messages
74
Reaction score
18
Hi,
I literally just revised a website template and tried uploading it to 000webhost.com (free website hosting) today, but it didnt come out right. There was supposed to be a bunch of pictures and animations, but it came out as just text with a white background. Is there a solution to this to make my website come out right? I tried editing the text file and that didnt seem to solve the problem. I need help on this. Thanks.
 
Technology news on Phys.org
Either post the template here or post a link to it.
 
https://sienaprofessionalservicescom.000webhostapp.com/
 
Assuming the link in #3 is the site in question- it looks like all of the css files are missing. And also the javascript files.

For example, your main stylesheet returns a 404 error- https://sienaprofessionalservicescom.000webhostapp.com/css/style.css
 
TheMacNerd said:
I downloaded it just now to my desktop and unzipped the file 'balay.zip', which created a folder 'balay'. I dropped the folder into my 'Sites' folder on my Mac, which contains a copy of my website and can be served by a copy of Apache running on this machine. I opened a new tab in Firefox, entered the URL http://localhost/~jtbell/balay/ and the template's home page came right up. I can click to the other sample pages in the menu on the left. The animations work. To add a new page, I suppose I'd copy one of the existing pages and tinker with the text, change the image URLs to point to my own, add a link to the new page in the menu on each of the other pages, etc.

I expect that if I uploaded this folder to the 'public_html' folder of my web site, "alongside" my own stuff, I'd be able to access it via http://mydomain/balay/ . I might have to adjust the permissions on the files and folders, but I don't have to do it with my own stuff.

My own site is competely hand-coded, with really plain and simple HTML, CSS, PHP, and no animations etc. I have no experience with templates like this, but it seems to work "out of the box" for me.
 
Last edited:
Download a tool called Fiddler. It will help you debug issues like missing stylesheets. You can also right click on the page and hit "Inspect." This will bring up your Javascript console. Right off the bat I see

Refused to apply style from '<URL>' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

That is telling you that Apache is not returning the correct thing. The fact that it's text/html means that it's probably serving you a default 404 HTML page. Check your paths and your domains.
 

Similar threads

  • · Replies 15 ·
Replies
15
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
2
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
Replies
4
Views
11K
Replies
15
Views
12K
  • · Replies 15 ·
Replies
15
Views
1K
  • · Replies 9 ·
Replies
9
Views
3K