css not showing up?

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.
thesh

css not showing up?

Post by thesh »

Hi I am new here.. And also new to cms made simple.

And i've got a problem i don't understand.

First of all i'm using WAMP to test out cmsms. I've completed all the installation steps.. And now when i try to view my cmsms testsite (localhost) i only get plain HTML... No css. What am i doing wrong here?

I;m a beginner to all of this.. and i really want to learn about cmsms, but with this problem i have im stuck! :-[


I hope someone has got the answer...

Thanks in advance!

THESH
Wishbone
Power Poster
Power Poster
Posts: 1369
Joined: Tue Dec 23, 2008 8:39 pm

Re: css not showing up?

Post by Wishbone »

Check the HTML source. Try accessing the stylesheets referenced. Do they exist?
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

Hi,

I'm having the same problem I just had my hosting company move my sites (under my resellers account) to a newer server. After the move this morning, my sites come up with no stylesheets. These sites have been running for months and years just fine. Only after the move to a new server, I have no stylesheets appearing.

When I access the stylesheets through "view source", I get a blank page. Have a look:
<link rel="stylesheet" type="text/css" media="screen" href="http://webmadesimple.ca/stylesheet.php? ... ype=screen" />
<link rel="stylesheet" type="text/css" href="http://webmadesimple.ca/stylesheet.php?cssid=34" />
<link rel="stylesheet" type="text/css" media="screen" href="http://webmadesimple.ca/stylesheet.php? ... ype=screen" />
<link rel="stylesheet" type="text/css" media="print" href="http://webmadesimple.ca/stylesheet.php? ... type=print" />
<link rel="stylesheet" type="text/css" media="screen" href="http://webmadesimple.ca/stylesheet.php? ... ype=screen" />
<link rel="stylesheet" type="text/css" href="http://webmadesimple.ca/stylesheet.php?cssid=42" />

Any ideas?? Did they disappear somewhere?? I see the stylesheets through the Admin Panel.

Help.

Thanks,
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

Hi,

I forgot to add, that if you do a complete refresh on a page by pressing Ctrl-F5, the page comes up just fine.

Here is my System Information:

CMS Version: 1.9.2

FileManager: 1.0.3
MenuManager: 1.7.4
ModuleManager: 1.4
nuSOAP: 1.0.2
ThemeManager: 1.1.3
TinyMCE: 2.8.2
News: 2.11
CGExtensions: 1.22.2
CMSMailer: 2.0
NMS: 2.3.2

php_memory_limit: 64M
process_whole_template: true
output_compression: false
max_upload_size: 10000000
default_upload_permission: 664
url_rewriting: none
page_extension:
query_var: page
image_manipulation_prog: GD
auto_alias_content: true
locale:
default_encoding:
admin_encoding: utf-8
set_names: false
debug: false
root_url: http://webmadesimple.ca
ssl_url: https://webmadesimple.ca

root_path: E:\web\public_html\wms (0777) Success
previews_path: E:\web\public_html\wms\tmp\cache (0777) Success
uploads_path: E:\web\public_html\wms\uploads (0777) Success
uploads_url: http://webmadesimple.ca/uploads
image_uploads_path: E:\web\public_html\wms\uploads\images (0777) Success
image_uploads_url: http://webmadesimple.ca/uploads/images
ssl_uploads_url: https://webmadesimple.ca/uploads
use_smarty_php_tags: false

Current PHP Version (phpversion): 5.2.17 Success
md5 function (md5_function): On (True) Success
GD version (gd_version): 2 Success
tempnam function (tempnam_function): On (True) Success
Magic quotes in runtime (magic_quotes_runtime): Off (False) Success
Is E_STRICT disabled in error_reporting (E_STRICT): Success
PHP Effective Memory Limit (memory_limit): 64M Success
Maximum Execution Time (max_execution_time): 60 Success
PHP output_buffering (output_buffering): 4096 Success
PHP Safe Mode (safe_mode): Off (False) Success
File uploads (file_uploads): On (True) Success
Maximum Post Size (post_max_size): 14M Success
Maximum Upload Size (upload_max_filesize): 10M Success
Session Save Path (session_save_path):
c:\lfcsoftware\php5sessions (0) Failure ?
c:\lfcsoftware\php5sessions
Sessions are allowed to use Cookies (session_use_cookies): On (True) Success
Basic XML (expat) support (xml_function): On (True) Success
Checking if the httpd process can create a file inside of a directory it created (create_dir_and_file): Success
PHP register_globals (register_globals): Off (False) Success
disable_functions in PHP (disable_functions): Success
PHP Open Basedir (open_basedir): Success
Test for remote URL (test_remote_url):Success
fsockopen: Connection ok! Success
fopen: Connection ok! Success
Test ini_set (check_ini_set): On (True) Success

Server API (server_api): cgi-fcgi
Server Database (server_db_type): MySQL (mysql)
Server Database Version (server_db_version): 5.0.45 Success
Server Software (server_software): Microsoft-IIS/6.0
Server Operating System (server_os): WINNT 5.2 On i586

tmp: E:\web\public_html\wms\tmp (0777) Success
templates_c: E:\web\public_html\wms\tmp\templates_c (0777) Success
modules: E:\web\public_html\wms\modules (0777) Success
File Creation Mask (umask): E:\web\public_html\wms\tmp\cache (0777) Success
config_file: 0666 Failure
config.php writable. It is more safe if you change permission to read-only
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: css not showing up?

Post by Dr.CSS »

@wms

If you moved the site and some things are wonky I would put the install folder from that version of CMSMS back in and run install BUT ON STEP 5 UNCHECK THE CREATE TABLES and INSTALL DEFAULT CONTENT this will recreate all paths in the config file and clear all site cache...
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

Thanks Doc!

I'll try that right away on some sites.

One work around I just tried that seemed to work was to comment out the caching portion of the stylesheet.php:

# if( $max_age > 0 )
# {
# $datestr = gmdate('D, d M Y H:i:s',$hashmtime+$max_age).' GMT';
# header("Expires: ".$datestr);
# header("Cache-Control: must-revalidate");
// no caching?
//header("Cache-Control: max-age=$max_age, s-max-age=$max_age, must-revalidate");
# }



IS IT WISE TO DO THIS??????

Thanks,
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: css not showing up?

Post by Dr.CSS »

I'm not so sure that is the problem as the caching part is for the {cms_stylesheet} tag not the {stylesheet} tag, and no I wouldn't mess with it...
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

Hi,

I put back the 1.9.2 install dir and ran the install.php. No go :-( ??? The stylesheets still are not loading up.

I'm testing this on my site: www.webmadesimple.ca.

Any ideas?

Thanks so much for your help.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: css not showing up?

Post by Dr.CSS »

That is very strange, I looked at that site a few times today and every time I saw it styled, just now it showed w/o styling... hmmm

But looking at the page view source showed and error on the first line which in yours is...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />

Should be, note the lack of /...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

I removed the "/"....still no go :'(
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: css not showing up?

Post by Dr.CSS »

Now I see some other errors but the strange thing is that I look in page source and see the links to the style sheets and click on them and nothing shows, if I go to a default install of mine and do the same thing they show...
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

Ya...that seems to be the issues. No stylesheets...very weird?????? They come up blank when looking at them through "view source".

I'm going to ask the host to move my account back to the server where it came from to see if this fixes the problem. Just means going back to a slower server. (Would there be a server setting causing this?)

They only thing that seems to work is commenting out the caching in the stylesheets.php file, which the host suggested I try to see if it works. This works, but you suggested not doing this.

Thanks,
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: css not showing up?

Post by Dr.CSS »

If it works for you you may want to just comment them out and see if it continues to work, just remember any upgrade will change it back...

Anything to get away from a slow server ;)..
wms
Forum Members
Forum Members
Posts: 204
Joined: Mon Feb 13, 2006 7:26 pm
Location: Ottawa, Canada

Re: css not showing up?

Post by wms »

Ok, thanks. I'll try that for now.

Unfortunately, a couple of sites I was finishing up and not hosted yet, are not working at all after the move. One for example is: http://208.68.104.127/wms/sunsetnursery/. Comes up: page cannot be found.....very weird. It's the exact same as all of the other sites, just not hosted. Not sure why it's not coming up at all.

Thanks again for all of your quick help this morning.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: css not showing up?

Post by Dr.CSS »

OH man you forgot to mention this was a windows server, that is most likely your problem, I would never use a windows server for CMSMS, it is supposed to work but you can run into problems with things like permissions etc...
Locked

Return to “CMSMS Core”