Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Problem with stylesheet not loading at all, even after restored backup

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

Views: 1,261

Results 1 to 10 of 10
13 Dec 2012, 4:39 PM
#1
pickman avatar

pickman

New Zenner

Join Date:
Oct 2012
Posts:
28
Plugin Contributions:
0

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!

13 Dec 2012, 5:00 PM
#2
kobra avatar

kobra

Black Belt

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

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

13 Dec 2012, 5:01 PM
#3
pickman avatar

pickman

New Zenner

Join Date:
Oct 2012
Posts:
28
Plugin Contributions:
0

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.

13 Dec 2012, 5:09 PM
#4
kobra avatar

kobra

Black Belt

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

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

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

13 Dec 2012, 11:06 PM
#5
pickman avatar

pickman

New Zenner

Join Date:
Oct 2012
Posts:
28
Plugin Contributions:
0

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,

13 Dec 2012, 11:14 PM
#6
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

Pickman:

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

14 Dec 2012, 12:04 AM
#7
pickman avatar

pickman

New Zenner

Join Date:
Oct 2012
Posts:
28
Plugin Contributions:
0

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: ```

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

14 Dec 2012, 9:10 AM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

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

14 Dec 2012, 11:59 AM
#9
pickman avatar

pickman

New Zenner

Join Date:
Oct 2012
Posts:
28
Plugin Contributions:
0

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.

16 Dec 2012, 12:13 PM
#10
pickman avatar

pickman

New Zenner

Join Date:
Oct 2012
Posts:
28
Plugin Contributions:
0

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.