Results 1 to 10 of 10
  1. #1
    Join Date
    Oct 2012
    Posts
    28
    Plugin Contributions
    0

    Default Problem with stylesheet not loading at all, even after restored backup

    Hi people

    I have been setting up my zen cart store. I did have a fully working store, I did a test purchase and everything. I am using the premium9a template, and also the COWOA and zen lightbox addon.

    Yesterday I added some extra lines to the premium9a stylesheet in /includes/templates/premium9a/css/stylesheet.css to support a specific page I was making. When I uploaded the updated stylesheet the whole website appeared to run fine, but without any css at all, it was as though the css file had been deleted. I restored a backup of the stylesheet, and still the website has no css formatting whatsoever. I have restored a backup of the entire website, and still the same problem. If you try to use the website, everything still works.

    I dont understand how I have caused a permanent problem, when I made a change to the stylesheet, and then undid that change??

    My URL is here:

    www.reborncarbs.com/index.php

    At the moment if you go to the base url you are directed to a "coming soon" page, called index.htm as the site is not meant to be live yet.

    If you can point me in the right direction then please do!

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

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    I added some extra lines to the premium9a stylesheet in /includes/templates/premium9a/css/stylesheet.css
    What editor are you using for this??
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Oct 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    I added some css code using dreamweaver. I did restore the previous working version of the css file via ftp through filezilla though.

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

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    Dream Weaver is not a good editor for anything but an html site
    What you have loaded currently is as follows - which is not a css file in format
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <html>
      <head>
      <meta http-equiv="Content-type" content="text/html; charset=UTF-8"/>
      <title>Index of /min/</title></head>
      <body>
        <h1>Index of /min/</h1><pre><img SRC="/_autoindex/icons/blank.png" ALT="     "> <a href='?NA'>Name</a>                         <a href='?MA'>Last modified</a>         <a href='?SA'>Size</a>  <a href='?DA'>Description </a>
       <hr><img SRC="/_autoindex/icons/up.png" ALT="up"> <A HREF="/">Parent Directory</A>             13-Dec-2012 16:29        -       
    <img SRC="/_autoindex/icons/html.png" ALT="[HTM]"> <A HREF="/min/utils.php">utils.php</A>                    13-Dec-2012 16:29       4k       
    <img SRC="/_autoindex/icons/folder.png" ALT="directory"> <A HREF="/min/builder/">builder</A>                      13-Dec-2012 16:29        -       
    <img SRC="/_autoindex/icons/folder.png" ALT="directory"> <A HREF="/min/lib/">lib</A>                          13-Dec-2012 16:29        -       
    <img SRC="/_autoindex/icons/folder.png" ALT="directory"> <A HREF="/min/cache/">cache</A>                        13-Dec-2012 16:29        -       
    <img SRC="/_autoindex/icons/html.png" ALT="[HTM]"> <A HREF="/min/groupsConfig.php">groupsConfig.php</A>             13-Dec-2012 16:29       4k       
    <img SRC="/_autoindex/icons/html.png" ALT="[HTM]"> <A HREF="/min/index.php">index.php</A>                    13-Dec-2012 16:29       4k       
    <img SRC="/_autoindex/icons/html.png" ALT="[HTM]"> <A HREF="/min/config.php">config.php</A>                   13-Dec-2012 16:29       8k       
    </pre><hr><address>Proudly Served by LiteSpeed Web Server at www.reborncarbs.com Port 80</address>
    </body>
    </html>
    Zen-Venom Get Bitten

  5. #5
    Join Date
    Oct 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    Right, the template uses minify to compress the css code, i do not know much about it but it appears that minify has a problem. I will look into that..

    Thanks,

  6. #6
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    Quote Originally Posted by Pickman View Post
    Right, the template uses minify to compress the css code, i do not know much about it but it appears that minify has a problem. I will look into that..

    Thanks,
    Two fundamental errors:

    1. You are using a TM template (bad idea)
    2. You are using DW to edit stuff (also bad idea)

    Try switching off minify (A good template builder will have applied a switch in admin for you to do this.)

    Revert to CLASSIC template and see if your site shows in CLASSIC.
    20 years a Zencart User

  7. #7
    Join Date
    Oct 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    Well I have made progress, I made a test file that is an exact copy of index.php, but I linked to the two css files skipping out the minify system, and it still did not work. I then removed two lines:
    Code:
    <base href="http://www.reborncarbs.com/" />
    <link rel="canonical" href="http://www.reborncarbs.com/" />
    And the css is applied. So once I sort out the issue with minify then I am ok. It concerns my that I have a problem with minify when I have restored from a full backup of my public_html folder, I must have not done the backup properly.

  8. #8
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    If you have problems with a TM template, all problems start there. They tend to ruin core behaviour, and are designed to "look pretty". People get seduced by their graphics, but tend to forget that a CMS site (particularly eCommerce) is 95% about FUNCTIONALITY and only 5% COSMETICS.

    I have yet to see a TM template that follows core protocols.

    It is also possible to create your own template that has the appearance of a TM template. Some people just copy the imagery off a TM demo (very easy to do), and use it to build a proper template. I do not advocate this - it probably contravenes copyright, and much as I detest the horrible code work in TM, I do at least respect their right to trade, and to protect their intellectual property rights.
    20 years a Zencart User

  9. #9
    Join Date
    Oct 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    Well that may be the case but it was all working until I messed it up, and I cant get back to where I was before. So the template is not at fault on this occasion.

    Minifiy has a test thing that has thrown some errors, so Im working on that.

  10. #10
    Join Date
    Oct 2012
    Posts
    28
    Plugin Contributions
    0

    Default Re: Problem with stylesheet not loading at all, even after restored backup

    The problem turned out to be a piece of code inside the .htaccess file in the /min folder, I deleted the code and added DirectoryIndex index.php and the issue is resolved. Hope this helps someone else in the same position.

 

 

Similar Threads

  1. Critical Problem With Restored Backup of Site
    By jonathan824 in forum General Questions
    Replies: 10
    Last Post: 2 Feb 2016, 01:16 PM
  2. restored a backup and now I am Under Construction.......but not!
    By christinefred in forum General Questions
    Replies: 4
    Last Post: 5 Feb 2011, 09:30 AM
  3. stylesheet not loading with https recently installed
    By roekoe in forum Basic Configuration
    Replies: 9
    Last Post: 3 May 2010, 02:20 PM
  4. CSS not loading even on default template
    By MikeG1969 in forum Installing on a Linux/Unix Server
    Replies: 8
    Last Post: 22 Sep 2009, 10:13 AM
  5. pages loading slow or not at all after install
    By shy_violet in forum Installing on a Linux/Unix Server
    Replies: 4
    Last Post: 8 Mar 2007, 10:18 PM

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