簡體   English   中英

TYPO3 爬蟲和 TYPO3 10.2 的依賴循環

[英]Dependency Cycles with TYPO3 Crawler and TYPO3 10.2

爬蟲的 TYPO3v9 分支也應該(至少大部分)與 TYPO3 10.2 一起工作。 但是我收到了一個關於循環依賴的錯誤報告,不是來自作曲家,而是來自擴展激活后的類加載。

Your dependencies have cycles. That will not work out. Cycles found: 

aoe/crawler/initialization->typo3/cms-frontend/authentication,
aoe/crawler/initialization->typo3/cms-frontend/tsfe,
typo3/cms-core/normalized-params-attribute->typo3/cms-frontend/timetracker,
typo3/cms-frontend/authentication->typo3/cms-frontend/backend-user-authentication,
typo3/cms-frontend/authentication->typo3/cms-frontend/maintenance-mode,
typo3/cms-frontend/authentication->typo3/cms-frontend/site,
typo3/cms-frontend/backend-user-authentication->typo3/cms-frontend/site,
typo3/cms-frontend/base-redirect-resolver->typo3/cms-frontend/site-resolver,
typo3/cms-frontend/eid->typo3/cms-core/normalized-params-attribute,
typo3/cms-frontend/maintenance-mode->typo3/cms-core/normalized-params-attribute,
typo3/cms-frontend/maintenance-mode->typo3/cms-frontend/eid,
typo3/cms-frontend/page-argument-validator->typo3/cms-frontend/page-resolver,
typo3/cms-frontend/page-resolver->aoe/crawler/initialization,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/authentication,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/backend-user-authentication,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/site,
typo3/cms-frontend/page-resolver->typo3/cms-frontend/static-route-resolver,
typo3/cms-frontend/preview-simulator->typo3/cms-frontend/authentication,
typo3/cms-frontend/preview-simulator->typo3/cms-frontend/backend-user-authentication,
typo3/cms-frontend/site->typo3/cms-core/normalized-params-attribute,
typo3/cms-frontend/static-route-resolver->typo3/cms-frontend/base-redirect-resolver,
typo3/cms-frontend/tsfe->typo3/cms-frontend/authentication,
typo3/cms-frontend/tsfe->typo3/cms-frontend/eid,
typo3/cms-frontend/tsfe->typo3/cms-frontend/page-argument-validator,
typo3/cms-frontend/tsfe->typo3/cms-frontend/page-resolver,
typo3/cms-frontend/tsfe->typo3/cms-frontend/preview-simulator

我不確定如何處理這個問題。 有什么建議。

這是composer.json以防您需要它

{
    "name": "tnm/typo3v10-test",
    "type": "project",
    "description": "",
    "require": {
        "typo3/minimal": "^10.2",
        "typo3/cms-introduction": "~4.0",
        "typo3/cms-tstemplate": "^10.2",
        "typo3/cms-info": "^10.2",
        "typo3/cms-belog": "^10.2",
        "bk2k/bootstrap-package": "*",
        "aoepeople/crawler": "dev-typo3v9"
    },
    "config": {
        "vendor-dir": "vendor",
        "bin-dir": "bin"
    },
    "extra": {
        "typo3/cms": {
            "cms-package-dir": "{$vendor-dir}/typo3/cms",
            "web-dir": "public"
        }
    }
}

忘了我還有這個問題,但有一個解決方案。

這是由於錯誤的中間件注冊

Separate middleware initialization (#527)

The frontend usergroup needs to be set before the typo3/cms-frontend/page-resolver is processed. At that time the TSFE controller isn't initialized yet, so the TSFE configuration needs to be done at a later point.

https://github.com/AOEpeople/crawler/commit/b5443c33c635958635009c4d36ba30f5d97bebd0

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM