Page 1 of 1
Stylesheets won't load
Posted: Sun Jan 14, 2007 1:19 pm
by Roolio
Hi,
I am new at CMSMS. Actually new at CMS. Just installed the latest version and all went well. My problem now is that i cannot load any stylesheets. I followed the Mint chocolate template method to convert a template. Template works, stylesheet doesn't.
I've tried the new CMS themes with the theme manager, and again: template works but no stylesheet.
I've installed CMSMS in a subdirectory of the root.
Any suggestions where to start?
Thanks!
Roel
Amsterdam
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 1:36 pm
by Dee
Hi,
Welcome. Strange issue.
Make sure the {stylesheet} tag is present inside the section of the template.
Make sure the stylesheet(s) is(/are) attached to the template (using the CSS button besides the templatename when you follow "Layout" -> "Templates" in the admin menu).
Installing CMSMS in a subdir is of no influence, the stylesheets are kept in the database.
Regards,
D
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 1:49 pm
by Roolio
Thanks for fast response... No luck though...
{stylesheet} tag is present and at the right place and stylesheets are attached to the template.
After installing a full xml theme with theme manager everything normally should work or not?
CSS Validator says: No stylesheet found....
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 2:17 pm
by Dee
I'm not sure, I never really used theme imports.
Were stylesheets working after the installation of CMS Made Simple, did the frontend look normal (had colors, columns and such)?
Which theme did you install?
Can you supply a link to your site?
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 2:37 pm
by Roolio
No, stylesheet didn't work after installation on the frontend I realise now. Didn't know it supposed to.
I've tried different themes. The template now is Lazy Days.
I've downloaded them from
http://themes.cmsmadesimple.org/
My testpage is
www.twaalfjuli.nl/simpel
Thanks!
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 4:50 pm
by Roolio
Well,
Just re-installed CMSMS, but still no stylesheet loading....
Anyone any ideas?
Thank you....
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 6:14 pm
by Dee
The stylesheets are linked
Code: Select all
<link rel="stylesheet" type="text/css" media="screen" href="http://www.twaalfjuli.nl/simpel/stylesheet.php?templateid=16&mediatype=screen" />
<link rel="stylesheet" type="text/css" href="http://www.twaalfjuli.nl/simpel/stylesheet.php?templateid=16" />
<link rel="stylesheet" type="text/css" media="print" href="http://www.twaalfjuli.nl/simpel/stylesheet.php?templateid=16&mediatype=print" />
But their contents is emtpy (
http://www.twaalfjuli.nl/simpel/stylesh ... ype=screen).
The document content type is text/html so stylesheet.php doesn't even get to send HTTP headers; it looks like PHP is encountering a fatal error. It could be it runs out of memory because of a too low memory_limit setting (PHP's default is 8M which is not enough in many cases), or missing needed components.
Check the webserver logs for more info (or increase PHP's error_reporting_level setting) on what causes the fatal error.
Regards,
D
Re: Stylesheets won't load
Posted: Sun Jan 14, 2007 6:36 pm
by Roolio
Will check it out on the webserver...Thanx D.
Re: Stylesheets won't load
Posted: Mon Jan 15, 2007 10:08 pm
by Roolio
Back again....
I've checked the websever. No problems there...
Reinstalled CMSMS again from scratch and again...template works fine, no stylesheet.
The PHP version is not updated to 4.3.3 yet. Could that be the problem?
Appreciate your efforts and help....
www.twaalfjuli.nl/simpel
Re: Stylesheets won't load
Posted: Mon Jan 15, 2007 10:29 pm
by Dee
Roolio wrote:
The PHP version is not updated to 4.3.3 yet. Could that be the problem?
Indeed it could... in stylesheet.php (on line 63) replace mysql_real_escape_string with mysql_escape_string (mysql_real_escape_string is not
supported before PHP-4.3)
Code: Select all
$sql="SELECT css_text, css_name FROM ".$config['db_prefix']."css WHERE css_name = '" . mysql_escape_string($name, $db) . "'";
HTH,
D
Re: Stylesheets won't load
Posted: Tue Jan 16, 2007 8:41 am
by Roolio
Thanx,
But still no luck, i'll migrate to another server with 4.3.3.
Cheers