TYPO3 v12+安装显示空白页面。

huangapple go评论57阅读模式
英文:

TYPO3 v12+ installation shows empty page

问题

Am attempting to install TYPO3 12/13. However, the install page /typo3/install.php shows blank. Browser console indicates that assets links are defined but the asset files are missing for all links. A look at the assets folder _assets shows it's empty although asset links were generated with the page. All vendor files loaded. Page is clean with not a single character.

Also tried typo3 setup console command (instructions here) but it stopped working after providing database name. Database is new and have accessed it directly. Db Credentials are ok.

No errors in the database, apache logs or var log.

How would I get it to run?

Am using:

Composer
TYPO3 12.4 LTS (stable). Same with / 13-dev
Windows 10
PHP 8.2.7
MySQL 8.0.33

英文:

Am attempting to install TYPO3 12/13. However, the install page /typo3/install.php shows blank. Browser console indicates that assets links are defined but the asset files are missing for all links. A look at the assets folder _assets shows it's empty although asset links were generated with the page. All vendor files loaded. Page is clean with not a single character.

Also tried typo3 setup console command (instructions here) but it stopped working after providing database name. Database is new and have accessed it directly. Db Credentials are ok.

No errors in the database, apache logs or var log.

How would I get it to run?

Am using:

Composer
TYPO3 12.4 LTS (stable). Same with / 13-dev    
Windows 10
PHP 8.2.7
MySQL 8.0.33

答案1

得分: 4

在 TYPO3 12 中已删除 TYPO3_MODE。我遇到了同样的问题,因为在我的 site_package 扩展中检查 TYPO3_MODE 就像这样。

defined('TYPO3_MODE') or die();

在你的代码中搜索:

TYPO3_MODE

并将其更改为:

TYPO3

对我有用。

英文:

As of TYPO3 12 the TYPO3_MODE has been removed. I had same issue, because of checking the TYPO3_MODE like this in my site_package extension.

defined('TYPO3_MODE') or die();

Search your code for:

TYPO3_MODE

and change it to:

TYPO3

Did the job for me.

答案2

得分: 1

这个问题与我一天后在这里提出的另一个问题有关,我认为它的答案可能会帮助我解决这个问题。

问题是,TYPO3 12+版本现在有安装页面,需要加载JavaScript资产。解决方法是确保加载了这些资产。我已在我的另一个问题中解释了答案。资产未加载与PHP的symlink函数在Windows机器上不如预期工作有关。这个问题是众所周知的,在这里的SO中已经有很多关于它的问题。

页面为空,因为资产没有加载。没有错误记录,因为负责在_assets目录中创建与各个单独包的资产对应的符号链接的PHP函数被抑制了。

我在这里提交了一个错误报告;https://forge.typo3.org/issues/101181,并深入解释了问题和解决方案,以防有人对建议的解决方案、重现错误的步骤等感兴趣。

英文:

This question is related to another problem that I asked here a day later, supposing its answers may lead me to solve this one.

The problem is, that TYPO3 versions 12+ now have installation pages that require a JavaScript asset to load. The solution is make sure the assets are loaded. I have explained the answer in my other question. Assets not loading has to do with the PHP's symlink function problem not working as one would expect in Windows machines. The problem is well known, documented and many questions have been asked concerning it here in SO.

The page is empty because assets are not loading. No errors are being logged because the PHP function responsible for creating the symbolic links in the _assets directory to corresponding individual packages' assets is suppressed.

I have filed a bug report here; https://forge.typo3.org/issues/101181 and explained the problem and solution in depth, incase someone is interested in further details on the solution suggested, steps to reproduce the error and so on.

huangapple
  • 本文由 发表于 2023年6月26日 20:18:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/76556621.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定