Page 1 of 1
New Install - CSS not displaying, error
Posted: Tue Nov 08, 2011 8:58 pm
by egf
I ran into what I thought were issues with an upgrade so I just ran the full install (1.10.1 on PHP5) on a new database (MySQL5.0) to start from scratch. But I'm still getting the same error.
My template is displaying but the CSS is not being rendered. If I view the source and try and open the CSS itself I get the following error:
Fatal error: Call to a member function GetConfig() on a non-object in [path omitted]/htdocs/lib/adodb.functions.php on line 17
It's a simple template with a couple global content blocks and that's it. The site was functioning previously on Black Rock.
What am I missing?
Re: New Install - CSS not displaying, error
Posted: Wed Nov 09, 2011 4:23 pm
by egf
I'll add that line 17 in the referenced file is:
$config = $gCms->GetConfig();
Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 5:39 am
by carasmo
Wasn't black rock 1.2.3? something from 08? you are supposed to update to 1.9.4.3 before attempting a leap, but I would do upgrades back from the beginning, there's some instructions, scroll down for old version upgrades:
http://wiki.cmsmadesimple.org/index.php ... /Upgrading
Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 1:30 pm
by egf
carasmo wrote:Wasn't black rock 1.2.3? something from 08? you are supposed to update to 1.9.4.3 before attempting a leap, but I would do upgrades back from the beginning
Exactly, that's why I ran a full install on a new database. It's a small site so I just recreated all the pages by hand but unfortunately I'm still running into this issue.
I've currently set the site to render CSS just from a file but I'd like to have it use the CSS inside of the template.
Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 3:40 pm
by compufairy
Can you post your template here please? I think we need more info.
All I can say for now is that I suspect that you missed an important notification in the release notes of the newer CMSMS versions. But I am not a fan of guessing without enough information. Your issue is probably related to the stylesheet call in your template. However, to be sure, I would like to see it.
When you upgrade in such a big jump, even if you do a whole new install, it is still necessary to read release notes so you know if essential things in the system, f.e. templating, have changed.
Anne-Mieke
Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 3:47 pm
by egf
Sure, here's the template, it's pretty simple. The one CSS call that's there right now is just my workaround. If I assign and use the CSS inside CMSMS it doesn't render and clicking through the source code to get to the CSS is when I get the error message.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<__html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{title}</title>
{metadata}
<__script__ language="JavaScript1.2" type="text/javascript" src="highlight.js"></__script>
<__script__ language="JavaScript1.2" type="text/javascript" src="rollover.js"></__script>
<link rel="stylesheet" type="text/css" media="all" href="http://www.chanceforlifecpr.com/site.css" />
{stylesheet}
</head>
</__body class="design">
<!--[if IE]> <div id="ie"> <![endif]-->
<!--[if IE 6]> <div id="ie6"> <![endif]-->
<ul class="screenElement" id="skipToLinks">
<li id="skipToNav"><a href="#navigationMain">Skip to navigation</a></li>
<li><a href="#content">Skip to content</a></li>
</ul>
<img src="images/printBanner.jpg" alt="" class="printElement" />
<div class="handheldElement">
<a href="#navigationLowerJump">Jump To Navigation</a>
</div>
<div id="containerPage">
<div id="containerColumns">
<div id="containerColumnsHead">
<div id="containerColumnsFoot">
<div id="columnMain">
<a href="/index.php?page=contact-us"><img src="images/contactUs.gif" class="over" alt="Contact Us" name="contactUs" width="104" height="55" border="0" id="contactUs" /></a>
<div id="pageTitle">
<h1>{title}</h1>
</div>
<div id="content">
{content}
</div>
</div>
<div id="columnSide">
<a href="/"><img src="images/logo.gif" alt="Chance for Life CPR, CPR Training" name="logo" width="232" height="50" border="0" id="logo" /></a>
<div id="containerExplination">
{global_content name='explination'}
</div>
<div id="contactInformation">
{global_content name='contactInformation'}
</div>
<div id="containerAHAlogo">
<img src="uploads/images/TC seal black_red.jpg" alt="American Heart Association Authorized Training Center">
</div>
<div id="navigationMain">
<ul>
<li><a href="/"><img src="uploads/images/home.gif" class="over" /></a></li>
<li><a href="/index.php?page=bls-classes"><img src="uploads/images/blsClasses.gif" class="over" alt="BLS For Healthcare Providers Classes - CPR For Healthcare Providers" /></a></li>
<li><a href="/index.php?page=cpr-classes"><img src="uploads/images/cprClasses.gif" class="over" alt="Heartsaver CPR Classes" /></a></li>
<li><a href="/index.php?page=first-aid-classes"><img src="uploads/images/firstAidClasses.gif" class="over" alt="First Aid Classes" /></a></li>
<li><a href="/index.php?page=aed-classes"><img src="uploads/images/aedClasses.gif" class="over" alt="Aed Classes" /></a></li>
<li><a href="/index.php?page=driving-directions"><img src="uploads/images/drivingDirections.gif" class="over" alt="Driving Directions" /></a></li>
</ul>
</div>
</div>
</div>
<div id="lockToBottom">
<div id="navigationLower">
<a name="navigationLowerJump"></a><a href="/">Cpr Classes</a> : <a href="/index.php?page=first-aid-classes">First Aid Classes</a> : <a href="/index.php?page=aed-classes">AED Classes</a> : <a href="/index.php?page=bls-classes">BLS Classes</a> : <a href="/index.php?page=driving-directions">Driving Directions</a>
</div>
<div id="copyright">
{global_content name='footer'}
</div>
</div>
</div>
</div>
</div>
<__script__ language="JavaScript1.2" type="text/javascript"> preroll(); </__script>
<!--[if IE 6]> </div> <![endif]-->
<!--[if IE]> </div> <![endif]-->
<__body>
</__html>
Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 3:50 pm
by compufairy
change {stylesheet} to {cms_stylesheet}

Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 3:56 pm
by egf
Oh and I've also run the site verification using the checksum from the CMSMS site. The listed missing files are /tmp/cache/SITEDOWN and the rest are from the install folder which I deleted after the system was installed.
Re: New Install - CSS not displaying, error
Posted: Fri Nov 11, 2011 3:59 pm
by egf
compufairy wrote:change {stylesheet} to {cms_stylesheet}

Ahhhh! Thanks! That fixed it. My kingdom for automatic updates so I don't get this far behind next time!
Re: New Install - CSS not displaying, error
Posted: Sun Nov 13, 2011 7:53 am
by iNSiPiD
I had a similar issue and had already updated the templates to use {cms_stylesheet}. Sone background images refused to render.
Reverting to {stylesheet} actually corrected the problem.

Re: New Install - CSS not displaying, error
Posted: Mon Nov 14, 2011 1:34 pm
by egf
iNSiPiD wrote:I had a similar issue and had already updated the templates to use {cms_stylesheet}. Sone background images refused to render.
Reverting to {stylesheet} actually corrected the problem.

When I first changed to use {cms_stylesheet} my backgrounds weren't rendering, but changing their path from "images/image.gif" to "/images/image.gif" fixed that issue.
Re: New Install - CSS not displaying, error
Posted: Mon Nov 14, 2011 2:56 pm
by Wishbone
egf wrote:iNSiPiD wrote:I had a similar issue and had already updated the templates to use {cms_stylesheet}. Sone background images refused to render.
Reverting to {stylesheet} actually corrected the problem.

When I first changed to use {cms_stylesheet} my backgrounds weren't rendering, but changing their path from "images/image.gif" to "/images/image.gif" fixed that issue.
You can also use [[root_url]]/images/image.gif with {cms_stylesheet}
Re: New Install - CSS not displaying, error
Posted: Mon Nov 14, 2011 11:43 pm
by iNSiPiD
Yep. That works nicely. Thanks.
Are there any advantages to the new tag? Everything appears the same as usual.
Re: New Install - CSS not displaying, error
Posted: Tue Nov 15, 2011 12:14 am
by Wishbone
{cms_stylesheet} caches the stylesheets instead of getting it from the database each time. It also processes the stylesheet through Smarty.. Instead of {tag} or {var}, you can use [[tag]] or [[$var]], however, it is only computed once at the time of caching.. Your smarty variables are evaluated at that time, so if your variable or tag is changing, it won't see it.