首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >为什么TYPO3在composer安装之后抛出一个缺失的服务错误?

为什么TYPO3在composer安装之后抛出一个缺失的服务错误?
EN

Stack Overflow用户
提问于 2020-09-21 10:53:23
回答 1查看 1.3K关注 0票数 1

我安装了TYPO3 V10 composer。

在作曲家更新之后,我得到了以下消息:

Symfony\Component\DependencyInjection\Exception\RuntimeException (1/1)不能自动调用方法"injectLateBootService()“引用类”TYPO3 3\CMS\Install\ service \LateBootService“的服务"TYPO3\CMS\Extensionmanager\Utility\InstallUtility":参数"$lateBootService”,但不存在此类服务。

在安装工具中,该消息:

TYPO3\CMS\Core\DependencyInjection\NotFoundException (1/1) #1519978105

容器条目“TYPO3 3\CMS\Install\Http\Application”不可用。

我试图删除供应商、TYPO3和扩展文件夹,并使用以下方法进行了新的composer安装:

代码语言:javascript
复制
composer install
composer dump-autoload -o

我的composer.json不是特别的:

代码语言:javascript
复制
{   "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"
        ]
    }
}
EN

回答 1

Stack Overflow用户

发布于 2020-11-26 15:33:10

由于未知的原因,安装系统扩展确实从typo3conf/PackageStates.php文件中消失了。只需向文件中添加安装扩展名的配置即可。

代码语言:javascript
复制
    'install' => [
        'packagePath' => 'typo3/sysext/install/',
    ],
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63990836

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档