Forums / Templates, Stylesheets, Page Layout / CSS problems - Stylesheet won't load

CSS problems - Stylesheet won't load

Locked
Results 1 to 20 of 29
This thread is locked. New replies are disabled.
03 Apr 2008, 22:58
#1
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

CSS problems - Stylesheet won't load

So I just fixed a previous problem where dreamweaver added an extra line at the bottom of my configure.php file.

Now my css is broken.

Can anyone look at my source code here http://modern-contemporaryfurniture.com

and see if they can see the problem?
03 Apr 2008, 23:50
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Posts:
21,876
Plugin Contributions:
6

Re: CSS problems - Stylesheet won't load

http://modern-contemporaryfurniture.com/includes/templates/12541/css/stylesheet.css

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>403 Forbidden</title>
</head><body>
<h1>Forbidden</h1>
<p>You don't have permission to access /includes/templates/12541/css/stylesheet.css
on this server.</p>
<hr>
<address>Apache/2.0.54 Server at modern-contemporaryfurniture.com Port 80</address>
</body></html>
Something in your server setup or ?? is preventing your stylesheets from being read.
04 Apr 2008, 04:40
#3
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

gjh42:

Something in your server setup or ?? is preventing your stylesheets from being read.


How the heck can i fix this?
I've been trying and trying. testing changing permissions on different files: admin/includes/configure.php, includes/init_xxxx/init_templates, includes/sessions.php,

I cannot get the css to allow it to be viewed!

Please Help!
04 Apr 2008, 05:43
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

You've posted in the Bug Reports area ... but this is not a Zen Cart bug ... it's an error in your configure.php settings.


I'm moving this thread out of the Bug Reports area.
04 Apr 2008, 14:36
#6
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

Let me give the entire story.
The site has been fine for months.
I was going to enable the ssl in the admin/includes/configure.php and the includes/configure.php .
When I did this I got a warning at the top of my site stating:

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /mnt/gs01/herd04/8190/domains/modern-contemporaryfurniture.com/html/includes/configure.php:135) in /mnt/gs01/herd04/8190/domains/modern-contemporaryfurniture.com/html/includes/functions/sessions.php on line 108

Warning: Cannot modify header information - headers already sent by (output started at /mnt/gs01/herd04/8190/domains/modern-contemporaryfurniture.com/html/includes/configure.php:135) in /mnt/gs01/herd04/8190/domains/modern-contemporaryfurniture.com/html/includes/init_includes/init_templates.php on line 78
™ ™
Warning: I am able to write to the configuration file: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file (read-only, CHMOD 644 or 444 are typical). You may need to use your webhost control panel/file-manager to change the permissions effectively. Contact your webhost for assistance.


So I went into my includes/functions/sessions.php and pasted in fresh code from a fresh zen download 1.3.7 for both.

Then I went into my includes/init_includes/init_templates.php and did the same for it.

Still no help, but at this point everything is still fine, even the css. Just the warning remains.

I then change the permissions on the includes/configure.php to 444 and the last warning went away but the two at the top remained. Still the stylesheet was working.

I then went into my admin/includes/configure.php and includes/configure.php and changed the ssl back to false and set my includes/configure.php back to 444.

Then the stylesheet broke.

So I went to the forums and found that the warnings were there do to an extra blank space at the end of my configure.php file so I fixed that.

No more warnings, but still no stylesheet.

So I compared all of these files to another current zen shop I have running and all of the permissions are matched and seem fine.

I had backed up the files I physically went in and changed but even using those the same problem remains.

I went to the tutorial that Dr. Byte suggested about the stylesheet problem and changed the includes/.htaccess and admin/includes/.htaccess files to .htaccess_off but no change.

My admin area is fine and has been fine this entire time.

So as is stands my stylesheets give me a 403 forbidden message if typed into the address bar, their permissions are set correctly but still no stylesheets will apply.

I have scoured these forums and have found nothing.

Any help would be outstanding!

Thanks.
04 Apr 2008, 15:14
#7
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Posts:
31,500
Plugin Contributions:
4

Re: CSS problems - Stylesheet won't load

Try switching to the classic template through the admin and see if the issue persists
04 Apr 2008, 15:35
#8
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

kobra:

Try switching to the classic template through the admin and see if the issue persists


When I change it I get this:
Parse error: syntax error, unexpected '/' in /mnt/gs01/herd04/8190/domains/modern-contemporaryfurniture.com/html/includes/modules/meta_tags.php on line 107

When I try to preview it in the admin I get this:
Forbidden

You don't have permission to access /includes/templates/classic/images/scr_template_default.jpg on this server.
Apache/2.0.54 Server at modern-contemporaryfurniture.com Port 80
04 Apr 2008, 15:40
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

Does your hosting account give you access to the server errorlogs for your site?
If so, check what messages are in the errorlog. Any 403 errors should be listed there. Hopefully there is also a "reason" listed with the error message.

If you can't see the logs yourself, contact your hosting company for access or get them to give you a copy of the errorlogs from the last 24 hours etc.
04 Apr 2008, 15:42
#10
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

Also, are there any .htaccess files in any of the folders all the way down to your css folder?

ie:
/includes/.htaccess
/includes/templates/.htaccess
/includes/templates/12541/.htaccess
/includes/templates/12541/css/.htaccess
04 Apr 2008, 16:02
#11
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

DrByte:

Does your hosting account give you access to the server errorlogs for your site?
If so, check what messages are in the errorlog. Any 403 errors should be listed there. Hopefully there is also a "reason" listed with the error message.

If you can't see the logs yourself, contact your hosting company for access or get them to give you a copy of the errorlogs from the last 24 hours etc.


Here is what the errors all say:

denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://modern-contemporaryfurniture.com/
[Fri Apr 04 08:57:37 2008] [crit] [client 12.41.116.10] (13)Permission denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://modern-contemporaryfurniture.com/
[Fri Apr 04 08:57:37 2008] [crit] [client 12.41.116.10] (13)Permission denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://modern-contemporaryfurniture.com/
[Fri Apr 04 08:57:37 2008] [crit] [client 12.41.116.10] (13)Permission denied:


I checked the folders all the way down and there are no other .htaccess files.
So I changed my .htaccess file back to .htaccess from .htaccess_off and the same error is provided when the .htaccess file is renamed either way.
04 Apr 2008, 16:10
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

Permission denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess

What are the permissions on the /includes/.htaccess file?
04 Apr 2008, 16:15
#13
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

DrByte:

What are the permissions on the /includes/.htaccess file?


the permission is 644
04 Apr 2008, 16:23
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

That would seem normal.
But, you said this all started happening around the time you were altering your configure.php and changing permissions, right?
Perhaps you've accidentally changed something else related to permissions.


Now, something that's puzzling ...
You said you renamed /includes/.htaccess to htaccess_off
When you did that, and then checked the server errorlogs, do you keep getting new permissions errors about /includes/.htaccess ?
You shouldn't.

So ... what happens if you delete the /includes/.htaccess file altogether? Don't rename it. Just delete it. That gets rid of the permissions issue which would follow the file when you rename it.
04 Apr 2008, 16:38
#15
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

DrByte:

That would seem normal.
But, you said this all started happening around the time you were altering your configure.php and changing permissions, right?
Perhaps you've accidentally changed something else related to permissions.


Now, something that's puzzling ...
You said you renamed /includes/.htaccess to htaccess_off
When you did that, and then checked the server errorlogs, do you keep getting new permissions errors about /includes/.htaccess ?
You shouldn't.

So ... what happens if you delete the /includes/.htaccess file altogether? Don't rename it. Just delete it. That gets rid of the permissions issue which would follow the file when you rename it.


Yes, that same error persisted after renaming and naming back checked many times to make sure.

I have now deleted the includes/.htaccess and no changes
04 Apr 2008, 17:22
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

johnbtes:


I have now deleted the includes/.htaccess and no changes


So, after deleting the file, are the errorlogs *still* logging *new* permission errors?
04 Apr 2008, 17:53
#17
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

DrByte:

So, after deleting the file, are the errorlogs *still* logging *new* permission errors?



Yes it is still logging new errors stating:

denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://modern-contemporaryfurniture.com/
[Fri Apr 04 10:47:41 2008] [crit] [client 12.41.116.10] (13)Permission denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable, referer: http://modern-contemporaryfurniture.com/
[Fri Apr 04 10:47:41 2008] [crit] [client 12.41.116.10] (13)Permission denied: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable,


I go and refresh the webpage http://modern-contemporaryfurniture.com and then go back to my errorlog and there are new logs stating that same error.
04 Apr 2008, 17:57
#18
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: CSS problems - Stylesheet won't load

... and you're sure that you've been working with the correct .htaccess file?
ie: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess


Sounds like you need to talk to your hosting company for specific help.
04 Apr 2008, 18:03
#19
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

DrByte:

... and you're sure that you've been working with the correct .htaccess file?
ie: /home/8190/domains/modern-contemporaryfurniture.com/html/includes/.htaccess


Sounds like you need to talk to your hosting company for specific help.


Does this make sense though? For the .htaccess to be affecting the permission of the stylesheets?

When I went to change the template in the Admin to classic and I just clicked preview it threw a 403 because of the preview image.

If I just edited and changed the theme I didn't get the 403, just an error talking about my meta tags module.

I'm not sure why the .htaccess would be doing this?
04 Apr 2008, 18:14
#20
johnbtes avatar

johnbtes

New Zenner

Join Date:
Mar 2008
Posts:
31
Plugin Contributions:
0

Re: CSS problems - Stylesheet won't load

johnbtes:

Does this make sense though? For the .htaccess to be affecting the permission of the stylesheets?

When I went to change the template in the Admin to classic and I just clicked preview it threw a 403 because of the preview image.

If I just edited and changed the theme I didn't get the 403, just an error talking about my meta tags module.

I'm not sure why the .htaccess would be doing this?


Here is a screenshot.

http://skate.skatemidwest.com/picts/shot1.png

If it would help I could send full page screenshots to you showing you any area you would like to see.