Typo3 后端 css 不断消失?

发布于 2024-11-29 13:11:02 字数 261 浏览 3 评论 0原文

我有一个typo3系统,它工作得很好,但是当我安装一个新的扩展时,后端的CSS就会消失,或者似乎只被部分解析。

屏幕截图:https://i.sstatic.net/BacTY.png

我已经尝试过几个不同的扩展,它们似乎都这样做。

Typo3 版本 4.4.6

如果有人有任何想法...所有帮助都会受到重视和赞赏。塔!

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 : https://i.sstatic.net/BacTY.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!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

北座城市 2024-12-06 13:11:02

请确保您已安装系统扩展“t3skin”。它带来了默认皮肤并随 TYPO3 一起提供。

如果已安装,请检查您的 .htaccess 是否启用了 gzip 规则,以防您设置了 $TYPO3_CONF_VARS['BE']['compressionLevel'] 。

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.

熊抱啵儿 2024-12-06 13:11:02

我猜你在使用 gzip 压缩 css 时遇到了一些麻烦。较新版本的 TYPO3 添加了此功能以加快速度。通常 TYPO3 无法写入您的 .htaccess 文件,这就是您必须手动执行此操作的原因。只需将以下行添加到您的 .htaccess 文件中:

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

请注意,.htaccess 文件是隐藏的,某些 ftp / sftp 客户端在默认设置下无法找到它。这基本上就是斯蒂芬金所说的,只是更详细一些。

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.

丶情人眼里出诗心の 2024-12-06 13:11:02

在 localconf.php 中尝试一下:

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

它对我的安装很有帮助。

Try this in localconf.php:

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

It helped in my installation.

静水深流 2024-12-06 13:11:02

就我而言,我安装了 mod_deflate 并且良好的 .htaccess,但在虚拟主机配置中 .htaccess 读取被 AllowOverride None 禁用code>,所以我在 All 中打开了 AllowOverride 并且一切正常。

AllowOverride All

重新启动阿帕奇:

apache2ctl restart

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文