Stylesheets won't load

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Roolio

Stylesheets won't load

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Stylesheets won't load

Post 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
Roolio

Re: Stylesheets won't load

Post 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....
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Stylesheets won't load

Post 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?
Roolio

Re: Stylesheets won't load

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

Re: Stylesheets won't load

Post by Roolio »

Well,

Just re-installed CMSMS, but still no stylesheet loading....

Anyone any ideas?

Thank you....
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Stylesheets won't load

Post 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
Roolio

Re: Stylesheets won't load

Post by Roolio »

Will check it out on the webserver...Thanx D.
Roolio

Re: Stylesheets won't load

Post 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
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Stylesheets won't load

Post 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
Last edited by Anonymous on Mon Jan 15, 2007 10:32 pm, edited 1 time in total.
Roolio

Re: Stylesheets won't load

Post by Roolio »

Thanx,

But still no luck, i'll migrate to another server with 4.3.3.


Cheers
Locked

Return to “CMSMS Core”