Forums / Installing on a Windows Server / Admin on live host no css?

Admin on live host no css?

Locked

Started by dexter on 21 Jan 2008, 12:44 AM · Views: 5,683

Results 1 to 20 of 21
This thread is locked. New replies are disabled.
21 Jan 2008, 12:44 AM
#1
dexter avatar

dexter

New Zenner

Join Date:
Oct 2007
Location:
Netherlands
Posts:
36
Plugin Contributions:
0

Admin on live host no css?

:( Hi after a long time testing I uploaded my script to a live host for testing I follow all the steps here from the docs also edit both my configure.php and my shop front look great. But when I go to the admin the pages look wierd like the css did not load... or load bad?? On my localhost I still not have trouble? :(

21 Jan 2008, 8:55 AM
#2
mtaheij avatar

mtaheij

New Zenner

Join Date:
Dec 2005
Posts:
2
Plugin Contributions:
0

Re: Admin on live host no css?

Probably have a .htaccess file in /admin/includes directory?

21 Jan 2008, 9:29 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Admin on live host no css?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Jan 2008, 8:04 AM
#4
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

Went there... tried that... still doesnt work. CSS loads fine on my forum, just not on ZENCART.

Phpbb3 loads correctly >>>> http://www.fppl.com/forum
Zencart no CSS >>>> http://www.fppl.com/zen

Any other ideas?

24 Jan 2008, 10:25 AM
#5
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

dravekx:

Went there... tried that... still doesnt work. CSS loads fine on my forum, just not on ZENCART.

Phpbb3 loads correctly >>>> http://www.fppl.com/forum
Zencart no CSS >>>> http://www.fppl.com/zen

Any other ideas?

RE-EDIT: Sorry.. change that...
Phpbb3 loads correctly >>>> http://www.fppl.net/forum
Zencart no CSS >>>> http://www.fppl.net/store

24 Jan 2008, 10:33 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Admin on live host no css?

dravekx:

Phpbb3 loads correctly >>>> http://www.fppl.net/forumI get 404-object not found

dravekx:

Zencart no CSS >>>> http://www.fppl.net/store

When you're doing installation, are you using fppl.net or fppl.dyndns.org ?
It would be safer to use the public address if you want things to display consistently.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Jan 2008, 10:35 AM
#7
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

DrByte:

I get 404-object not foundWhen you're doing installation, are you using fppl.net or fppl.dyndns.org ?It would be safer to use the public address if you want things to display consistently.Thanks for the help.. give me a bit. Im having some server issues. I upgraded to apache 2.2.8 and reconfiguring as we speak. :)

24 Jan 2008, 4:32 PM
#8
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

Ok... here's the link:

http://www.fppl.net/store

24 Jan 2008, 4:41 PM
#9
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Admin on live host no css?

The problem is being caused because your webserver is sending out .css files with a MIME type of text/html instead of text/css. Zen Cart uses a doctype that puts the browser into strict mode so the css file is being ignored due to an incorrect mime type. Your forum is probably working because it is running in quirks mode instead of strict mode.

Regards,
Christian.

24 Jan 2008, 4:53 PM
#10
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

How do I fix that? According to the zencart fix, its something in the apache/conf/httpd.conf file. Here are the lines in relation:

<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

<Directory "xampp/htdocs">
    Options Indexes FollowSymLinks Includes ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
</FilesMatch>

<Directory "/xampp/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

Do I need to add AllowOverride ALL to <FilesMatch "^.ht">?

24 Jan 2008, 5:11 PM
#11
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Admin on live host no css?

IIRC the mime types are defined in a file called mime.types . I would check there first to make sure that there is a text/css mapping for css files.

My Apache knowledge is a bit err patchy. Hopefully one of the web server experts here can help you more.

Regards,
Christian.

24 Jan 2008, 5:15 PM
#12
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

Same with apache, and text/css is listed:

text/css			css
text/directory
text/enriched
text/html			html htm
text/parityfec
text/plain			asc txt
24 Jan 2008, 5:55 PM
#13
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Admin on live host no css?

Hmmmm...well, you could try adding...

AddType text/css .css

...to your .htaccess file which might allow you to work around the problem. Beyond that I'm into the realms of guessing so I better let the Apache experts dive in.

Regards,
Christian.

24 Jan 2008, 6:25 PM
#14
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

I tried adding... its still not working. :(

http://www.fppl.net/store

24 Jan 2008, 10:35 PM
#15
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

Did some research, tried some fixes, and still haven't found a solution. I'm re-installing xampp and zencart again. I wonder why this problem didnt start until recently? On the first install... it was perfect/textbook... without problems. Now all the sudden, no CSS. hmmm...

24 Jan 2008, 11:14 PM
#16
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin on live host no css?

Don't work with Windows on a Server so not sure about how to correct your problem. What I can tell is how to know if it is solved.

You should a 'css' reference in any of these areas of a PHP Info output:

Specific to Apache 2
HTTP Headers Information

For Apache
SERVER["HTTP_ACCEPT"]

For PHP
_SERVER["HTTP_ACCEPT"]
_ENV["HTTP_ACCEPT"]

ie.
application/........ ,text/css,..........

The learning is in the doing.

Potent Products

25 Jan 2008, 12:00 AM
#17
dravekx avatar

dravekx

New Zenner

Join Date:
Jan 2008
Posts:
23
Plugin Contributions:
0

Re: Admin on live host no css?

Im looking for those... This is in the PHPINFO():

default_mimetype text/html text/html

HTTP_ACCEPT
text/xml,
application/xml,
application/xhtml+xml,
text/html
;q=0.9,
text/plain
;q=0.8,image/png
,/;q=0.5

Noe I have no idea what the last little bit is, but I dont see text/css.

25 Jan 2008, 12:13 AM
#18
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: Admin on live host no css?

Have you complied PHP properly?

You are missing all kinds of stuff from your 'HTTP_ACCEPT' lines -- you should be showing indentical lines in the 3 'HTTP_ACCEPT' areas I mentioned before.

The learning is in the doing.

Potent Products

25 Jan 2008, 12:25 AM
#19
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Admin on live host no css?

Website Rob:

Have you complied PHP properly?

You are missing all kinds of stuff from your 'HTTP_ACCEPT' lines -- you should be showing indentical lines in the 3 'HTTP_ACCEPT' areas I mentioned before.

HTTP_ACCEPT is sent out by the browser to say what kind of mime types it accepts for rendering. The problem that dravekx is having is that his web server is serving up css files with a text/html mime type.

Regards,
Christian.

25 Jan 2008, 12:32 AM
#20
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Admin on live host no css?

Since you're running xampp, perhaps there might be some additional support on the apachefriends website?

Didn't I see you mention (maybe another thread) that you were upgrading apache after installing xampp? Perhaps there's something busted in that apache upgrade process?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.