000webhost website upload didn't come out right

  • PHP
  • Thread starter TheMacNerd
  • Start date
  • #1
74
18

Main Question or Discussion Point

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.
 

Answers and Replies

  • #2
Svein
Science Advisor
Insights Author
2,025
649
Either post the template here or post a link to it.
 
  • #6
137
89
  • #7
jtbell
Mentor
15,519
3,358
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 web site 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:
  • #8
1,516
617
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.
 

Related Threads on 000webhost website upload didn't come out right

Replies
1
Views
635
Replies
26
Views
2K
Replies
5
Views
643
  • Last Post
Replies
12
Views
2K
  • Last Post
Replies
15
Views
2K
  • Last Post
Replies
14
Views
1K
  • Last Post
Replies
2
Views
2K
  • Last Post
Replies
3
Views
949
  • Last Post
Replies
3
Views
550
  • Last Post
Replies
14
Views
958
Top