New Install - CSS not displaying, error

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

New Install - CSS not displaying, error

Post 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?
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

Re: New Install - CSS not displaying, error

Post by egf »

I'll add that line 17 in the referenced file is:

$config = $gCms->GetConfig();
carasmo
Power Poster
Power Poster
Posts: 506
Joined: Thu Feb 08, 2007 6:11 pm

Re: New Install - CSS not displaying, error

Post 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
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

Re: New Install - CSS not displaying, error

Post 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.
compufairy
Forum Members
Forum Members
Posts: 183
Joined: Sun Sep 07, 2008 10:47 am

Re: New Install - CSS not displaying, error

Post 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
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur..." (Red Adair)
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

Re: New Install - CSS not displaying, error

Post 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>
compufairy
Forum Members
Forum Members
Posts: 183
Joined: Sun Sep 07, 2008 10:47 am

Re: New Install - CSS not displaying, error

Post by compufairy »

change {stylesheet} to {cms_stylesheet} :-)
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur..." (Red Adair)
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

Re: New Install - CSS not displaying, error

Post 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.
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

Re: New Install - CSS not displaying, error

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

Re: New Install - CSS not displaying, error

Post 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. :?
egf
Forum Members
Forum Members
Posts: 16
Joined: Thu Feb 07, 2008 1:55 am

Re: New Install - CSS not displaying, error

Post 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.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: New Install - CSS not displaying, error

Post 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}
iNSiPiD

Re: New Install - CSS not displaying, error

Post by iNSiPiD »

Yep. That works nicely. Thanks.

Are there any advantages to the new tag? Everything appears the same as usual.
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: New Install - CSS not displaying, error

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

Return to “[locked] Installation, Setup and Upgrade”