Page 1 of 2
CSS in backend doesn't load
Posted: Sat May 24, 2014 1:02 am
by hansnz
I have seen several post about this but no solution seems to way for me.
The frontend works fine but I have several problems with the backend, my main one at the moment the one I don’t seem to get solved is that the CSS of the backend doesn’t load (see attached).
It all seemed to start after I upgraded from version to 1.11.7 and upgraded to version 1.11.8, upgrading to version 1.11.9 and later 1.11.10 doesn’t seem to solve the problem. It runs on a server which has PHP 5.3
Does anyone know how I get CSS to load in the backend again, I badly need to get it working as I miss functionality now.
Thanks
Hans
Re: CSS in backend doesn't load
Posted: Sat May 24, 2014 1:50 am
by paulbaker
hansnz wrote:It all seemed to start after I upgraded
I have seen this happen. It was because the browser was caching the CSS from the previous versions. Force your browser cache to empty then it should show properly.
Re: CSS in backend doesn't load
Posted: Sat May 24, 2014 9:04 am
by Jo Morg
That could also be the consequence of a php error. If paulbaker's suggestion doesn't fix it you may have to set CMSMS in debug mode to see if an error comes up.
Check
http://docs.cmsmadesimple.org/troubleshooting/tips.
Re: CSS in backend doesn't load
Posted: Wed May 28, 2014 7:46 am
by hansnz
paulbaker wrote:hansnz wrote:It all seemed to start after I upgraded
I have seen this happen. It was because the browser was caching the CSS from the previous versions. Force your browser cache to empty then it should show properly.
Thank you Paul, I tried already clearing the cache, even another browser. No luck.
Re: CSS in backend doesn't load
Posted: Wed May 28, 2014 7:49 am
by hansnz
Something very funny is happening, with debugging on everything looks fine. When I turn debugging off (false) the layout is gone again.
I see no errors in the debugging on.
Anybody any idea what may cause this?
Thanks
Re: CSS in backend doesn't load
Posted: Wed May 28, 2014 9:10 am
by Jo Morg
Please post more info:
http://docs.cmsmadesimple.org/troublesh ... nformation and as much detailed data as possible. Additionally check CMSMS admin logs if possible and see you have access to the server PHP error logs. Hidden in the HTML source may also be a hint. Without some more information there is not much we can do to help. System info is important.
Re: CSS in backend doesn't load
Posted: Wed Jun 11, 2014 9:07 am
by hansnz
Thank you all so far,
I still struggle with this problem, I notice two errors but don’t seem able to solve it:
Request URL:
http://gonatural.co.nz/admin/login.php
Request Method:GET
Status Code:500 Internal Server Error
And
Request URL:
http://gonatural.co.nz/admin/loginstyle.php
Request Method:GET
Status Code:500 Internal Server Error
I get the same on sitemaps.xml according to Google.
I wonder if it has something to do with very complicated .htaccess file the webdesigner build.
To be sure I attached it, maybe you guys completely understand it and see a mistake. Note cmsms is installed in the /cms folder.
Thanks
Re: CSS in backend doesn't load
Posted: Wed Jun 11, 2014 9:45 am
by Jo Morg
I'm curious: what happens if you change this lines?:
to
Code: Select all
# CMSMS Settings
# RewriteBase /cms
RewriteBase /
Re: CSS in backend doesn't load
Posted: Wed Jun 11, 2014 5:12 pm
by Dr.CSS
It looks like you are using the servers redirect/subdomain to get the site to use gonatural.co.nz/admin/ URL when it is in a subfolder, either take it out of the subfolder and remove the RewriteBase /cms from the htaccess or stop using whatever server redirect you have going on...
It always works best if you have CMSMS in your root if you don't want the subfolder part in your URL...
Re: CSS in backend doesn't load
Posted: Fri Jun 13, 2014 3:52 am
by hansnz
I moved our website to the root folder and adjusted the htaccess.
The website is still going but still the same problem with the admin site (both error 500's)
Any more ideas?
Cheers
Hans
Re: CSS in backend doesn't load
Posted: Fri Jun 13, 2014 6:05 pm
by Dr.CSS
If you moved it and fixed the path in the htaccess I would look at the config.php to make sure it doesn't have any hard coded paths to the admin or subfolder then go to system maintenance page > Cache and content tab and hit all 3 buttons from top to bottom...
Re: CSS in backend doesn't load
Posted: Mon Jun 16, 2014 8:30 am
by hansnz
Thank you DR.CSS,
I checked the config.php and I don't see a reference to the admin part, but I put my content below (stared out some details).
I pressed the three buttons "cache and content", same result.
Anybody any more ideas?
Thanks
Hans
--- config.php ---
<?php
# CMS Made Simple Configuration File
# Documentation: /doc/CMSMS_config_reference.pdf
#
$config['dbms'] = 'mysql';
$config['db_hostname'] = '******';
$config['db_username'] = '******';
$config['db_password'] = '******';
$config['db_name'] = '******';
$config['db_prefix'] = 'cms_';
$config['timezone'] = 'Pacific/Auckland';
$config['root_url'] = '
http://gonatural.co.nz';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '/';
#$config['debug'] = true;
?>
Re: CSS in backend doesn't load
Posted: Mon Jun 16, 2014 9:35 am
by paulbaker
Not sure what the cause of your problems is, but given your situation I would probably be commenting out every line in your htaccess. (And the url_rewriting and page_extension lines in config.php). If it works, uncomment every line back in until it doesn't work. A process of elimination, in other words.
What version did you upgrade from?
Re: CSS in backend doesn't load
Posted: Mon Jun 16, 2014 10:47 pm
by hansnz
Thank you Peter,
I renamed the .htaccess file and marked out url_rewriting and page_extension lines in config.php, but still the same error 500 to load the css (loginstyle.php) of the admin console.
I notice that a lot is nested in the login.php, in which php exactly is the loginstyle.php calles for the admin console? Maybe I should point it straight to the css file.
Thanks all so far,
Hans
Re: CSS in backend doesn't load
Posted: Mon Jun 16, 2014 11:08 pm
by paulbaker
What version did you upgrade from?
How did you upgrade - using FTP to upload the files?
Post your system info, as Jo Morg asked.