简体   繁体   English

TYPO3后端解析错误

[英]Parse error for TYPO3 backend

following problem: 以下问题:

today i put a typo3 homepage to another server with a different domain and so on. 今天,我将typo3主页放置到具有不同域的另一台服务器上,依此类推。 It´s not my first time and as usual i cleared all the caches, filled in the new database information etc. 这不是我的第一次,而且像往常一样,我清除了所有缓存,填写了新的数据库信息等。

The Site works perfectly and i can also reach the install-tool. 该站点工作正常,我也可以使用安装工具。 The problem is the backend. 问题是后端。 The first time i see the login mask but i can´t login. 我第一次看到登录掩码,但无法登录。 It´s loading a very long time. 它的加载时间很长。 After a refresh i get some warnings and an error about the Cache. 刷新后,我得到一些警告和有关缓存的错误。

like this: 像这样:

Warning: Unexpected character in input: '' (ASCII=18) state=0

Warning: Unexpected character in input: '' (ASCII=16) state=0

parse error

after i cleared the cache again it´s the same problem. 在我再次清除缓存后,这是同样的问题。 I only get this warnings after the refresh. 刷新后我才收到此警告。

The PHP Version is 5.5 PHP版本为5.5

Maybe some of you have an idea what i can try... 也许有些人知道我可以尝试...

Thank you 谢谢

Using apache as webserver, place an .htaccess in the webroot of your TYPO3 instance. 使用apache作为Web服务器,将.htaccess放在TYPO3实例的webroot中。

This is the TYPO3 example .htaccess , however following parts are relevant: 这是TYPO3示例.htaccess ,但是以下部分相关:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php [L]

In conclusion, "the oldschool" way will make it work, but I recommend to use the example configuration and would only thin it out if needed. 总而言之,“老式”方法将使其起作用,但是我建议使用示例配置,并且仅在需要时进行精简。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM