typo3 - 为什么 TYPO3 在 composer 安装后会抛出缺少服务的错误?
问题描述
我有一个 TYPO3 V10 作曲家安装。
在作曲家更新后,我在前端收到了这条消息:
(1/1) Symfony\Component\DependencyInjection\Exception\RuntimeException 无法自动连接服务“TYPO3\CMS\Extensionmanager\Utility\InstallUtility”:方法“injectLateBootService()”的参数“$lateBootService”引用类“TYPO3\CMS\Install\ Service\LateBootService”,但不存在此类服务。
并在安装工具中显示该消息:
(1/1) #1519978105 TYPO3\CMS\Core\DependencyInjection\NotFoundException 容器条目“TYPO3\CMS\Install\Http\Application”不可用。
我试图删除供应商、TYPO3 和扩展文件夹,并使用以下方法进行了全新的作曲家安装:
composer install
composer dump-autoload -o
我的 composer.json 并不特别:
{ "name": "typo3/cms-base-distribution",
"description" : "Distribution V10",
"license": "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2"
},
"sort-packages": true
},
"require": {
"cweagans/composer-patches": "^1.6",
"deployer/deployer": "^6.8",
"deployer/recipes": "^6.2",
"fluidtypo3/vhs": "^6.0",
"georgringer/news": "^8.3",
"gridelementsteam/gridelements": "^10",
"helhum/config-loader": "^0.12.2",
"helhum/typo3-console": "^6.3",
"in2code/powermail": "^8.1.1",
"jambagecom/static-info-tables-de": "^6.7",
"plan2net/webp": "^3.1",
"sgalinski/sg-cookie-optin": "^3.1",
"t3/dce": "^2.5.2",
"typo3/cms-about": "^10.4",
"typo3/cms-adminpanel": "^10.4",
"typo3/cms-backend": "^10.4",
"typo3/cms-belog": "^10.4",
"typo3/cms-beuser": "^10.4",
"typo3/cms-core": "^10.4",
"typo3/cms-dashboard": "^10.4",
"typo3/cms-extbase": "^10.4",
"typo3/cms-extensionmanager": "^10.4",
"typo3/cms-felogin": "^10.4",
"typo3/cms-filelist": "^10.4",
"typo3/cms-filemetadata": "^10.4",
"typo3/cms-fluid": "^10.4",
"typo3/cms-fluid-styled-content": "^10.4",
"typo3/cms-form": "^10.4",
"typo3/cms-frontend": "^10.4",
"typo3/cms-impexp": "^10.4",
"typo3/cms-indexed-search": "^10.4",
"typo3/cms-info": "^10.4",
"typo3/cms-install": "^10.4",
"typo3/cms-linkvalidator": "^10.4",
"typo3/cms-lowlevel": "^10.4",
"typo3/cms-opendocs": "^10.4",
"typo3/cms-recordlist": "^10.4",
"typo3/cms-recycler": "^10.4",
"typo3/cms-redirects": "^10.4",
"typo3/cms-reports": "^10.4",
"typo3/cms-rte-ckeditor": "^10.4",
"typo3/cms-scheduler": "^10.4",
"typo3/cms-seo": "^10.4",
"typo3/cms-setup": "^10.4",
"typo3/cms-sys-note": "^10.4",
"typo3/cms-t3editor": "^10.4",
"typo3/cms-tstemplate": "^10.4",
"typo3/cms-viewpage": "^10.4"
},
"autoload": {
"psr-4": {
"Ikiu\\TYPO3\\Distribution\\": "build/src",
"Ikiu\\Theme\\":"public/typo3conf/ext/theme/Classes"
}
},
"require-dev": {
"cweiske/php-sqllint": "^0.2.3",
"helmich/typo3-typoscript-lint": "^2.1",
"rector/rector": "^0.7.2"
},
"scripts":{
"typo3-cms-scripts": [
"typo3cms install:fixfolderstructure"
],
"post-autoload-dump": [
"@typo3-cms-scripts"
]
}
}
解决方案
由于未知原因,安装系统扩展确实从typo3conf/PackageStates.php 文件中消失了。只需将安装扩展的配置添加到文件中。
'install' => [
'packagePath' => 'typo3/sysext/install/',
],
推荐阅读
- python - 如何计算输入字符串的平均长度
- python - 读取 CSV 文件并使用 Python 将 CSV 文件的内容作为电子邮件内容发送
- java - 如何在java中获取动画/图像对象的每个像素的颜色?
- delphi - 如何在 Delphi FMX.TWebbrowser 中模拟按钮单击?
- php - 警告:mysqli_real_escape_string() 期望参数 2 是字符串,给定数组
- wix - 当点击 UAC“这些通知出现时更改”时,Wix Bootstrapper 被取消
- matlab - 半结构化文本的高效导入
- r - 为 lpSolve 约束创建交互虚拟变量
- java - 带有太多 Observable 的 RxJava1 StackOverflow 异常
- mysql - SQL Query Select 基于具有 Group By 的条件