Page 1 of 3 123 LastLast
Results 1 to 10 of 29
  1. #1
    Join Date
    Mar 2008
    Posts
    30
    Plugin Contributions
    0

    Default 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?

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: CSS problems

    http://modern-contemporaryfurniture....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.

  3. #3
    Join Date
    Mar 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: CSS problems

    Quote Originally Posted by gjh42 View Post
    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!

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: CSS problems

    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.
    .

    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.

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: CSS problems - Stylesheet won't load

    Here's an FAQ about your stylesheet problem:
    https://www.zen-cart.com/tutorials/i...hp?article=235
    .

    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.

  6. #6
    Join Date
    Mar 2008
    Posts
    30
    Plugin Contributions
    0

    Default 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.

  7. #7
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Problems with CSS loading

    Try switching to the classic template through the admin and see if the issue persists
    Zen-Venom Get Bitten

  8. #8
    Join Date
    Mar 2008
    Posts
    30
    Plugin Contributions
    0

    Default Re: Problems with CSS loading

    Quote Originally Posted by kobra View Post
    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

  9. #9
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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.
    .

    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.

  10. #10
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default 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
    .

    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.

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Site won't load CSS until reload
    By smm11 in forum General Questions
    Replies: 2
    Last Post: 26 Jan 2012, 09:34 PM
  2. CSS styles won't load after installing
    By jaycode in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Jun 2007, 01:18 PM
  3. Replies: 39
    Last Post: 5 Jun 2007, 06:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg