[Solved] Why are my stylesheets blank?

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.
Post Reply
junkmailtrapenator
New Member
New Member
Posts: 6
Joined: Wed Jul 18, 2007 3:41 pm

[Solved] Why are my stylesheets blank?

Post by junkmailtrapenator »

Ok, this seems kinda wierd, but when I type the address of my stylesheet (http://example.com/cms/stylesheet.php?templateid=20) directly into my browser address bar, it returns a blank style sheet. (http headers tell me 200ok; 0 content length)
However, the styles are still being applied to the site becuase I can make changes through the admin panel and they are applied.
Anyone else have this happen to them and have any idea whats going on. I've tried several browser and I don't think its a cache issue.


On a somewhat related note, anyone have any ideas on how to make pretty urls for the stylesheets without hardcoding them? Something like http://example.com/stylesheets/templateid/mediatype/

Thanks for the help.

Edit:
If you select a stylesheet that doesn't exist you should get a 404 or something, not just a blank page.
Last edited by junkmailtrapenator on Fri Jul 27, 2007 5:26 pm, edited 1 time in total.
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: Why are my stylesheets blank?

Post by tsw »

doublecheck that you have the correct templateid

and for the pretty urls try something like

RewriteRule ^(stylesheet/(\d+)/(.+)/)$ stylesheet.php?templateid=$1&mediatype=$2 [QSA]
Post Reply

Return to “CMSMS Core”