Typo3 backend css keeps disappearing?

岁酱吖の 提交于 2020-01-06 05:15:05

问题


I have a typo3 system which works mostly fine, however when ever I install a new extension the CSS on the back-end goes away, or seems to be parsed only partially.

screen shot at : http://i.imgur.com/gF8Fa.png

I've tried several different extension and they all seem to do this.

Typo3 version 4.4.6

If anyone has any ideas... all help is valued and appreciated. Ta!


回答1:


Please make sure that you have installed the system extension "t3skin". It brings the default skin and is shipped with TYPO3.

If it is installed, check whether your .htaccess has the gzip rules enabled, in case of you have $TYPO3_CONF_VARS['BE']['compressionLevel'] set.




回答2:


I guess you have some trouble with gzip compressed css here. Newer versions of TYPO3 added this feature to speed things up. Typically TYPO3 can't write to your .htaccess file which is why you have to do it manually. Just add the following lines to your .htaccess file:

 <FilesMatch "\.js\.gzip$">
 AddType "text/javascript" .gzip
 </FilesMatch>
 <FilesMatch "\.css\.gzip$">
  AddType "text/css" .gzip
  </FilesMatch>
  AddEncoding gzip .gzip

Note that the .htaccess file is hidden and some ftp / sftp clients won't find it with their default settings. That's basically what StephenKing says just a lil more elaborate.




回答3:


Try this in localconf.php:

$TYPO3_CONF_VARS['BE']['compressionLevel'] = '0'

It helped in my installation.




回答4:


In my case I had mod_deflate installed and good .htaccess, but in vhost configuration .htaccess reading was disabled by AllowOverride None, so I turned AllowOverride in All and all worked.

AllowOverride All

Restart Apache :

apache2ctl restart


来源:https://stackoverflow.com/questions/7068286/typo3-backend-css-keeps-disappearing

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!