Adobe Commerce 2.4.4로 업그레이드 시 작성기 플러그인 문제
이 문서에서는 Adobe Commerce 2.4.3 및 이전 버전에서 Adobe Commerce 2.4.4 이상으로 업그레이드할 때(이후 버전이 릴리스될 때) 작성기 플러그인과 관련된 문제를 방지하는 솔루션을 제공합니다.
설명 description
환경
- Adobe Commerce 온프레미스, 2.4.4 이상으로 업데이트할 때(릴리스할 때) 모든 버전
- 클라우드 인프라의 Adobe Commerce, 2.4.4 이상으로 업데이트할 때의 모든 버전(릴리스 시)
- Magento Open Source, 2.4.4 이상으로 업데이트할 때(릴리스할 때) 모든 버전
문제/증상
2022년 7월 이후에 Adobe Commerce 2.4.4 이상으로 업데이트하면 작성기에서 플러그인에 대한 경고를 받을 수 있습니다.
재현 단계
필수 구성 요소: Adobe Commerce 2.4.3 이하가 설치되어 있습니다.
- 업그레이드 수행에 설명된 대로 업그레이드를 시작합니다.
- 작성기 업데이트 명령을 실행하여 Adobe Commerce 애플리케이션을 업그레이드합니다.
예상 결과
정상적으로 업그레이드했습니다.
실제 결과
다음과 유사한 오류가 발생하여 설치에 실패합니다.
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 591 installs, 0 updates, 0 removals
- Installing laminas/laminas-dependency-plugin (2.2.0): Extracting archive
laminas/laminas-dependency-plugin contains a Composer plugin which is currently not in your allow-plugins config. See https://getcomposer.org/allow-plugins
Do you trust "laminas/laminas-dependency-plugin" to execute code and wish to enable it now? (writes "allow-plugins" to composer.json) [ y,n,d,?] y
Plugin initialization failed (require(app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or directory), uninstalling plugin
- Removing laminas/laminas-dependency-plugin (2.2.0)
Install of laminas/laminas-dependency-plugin failed
[ ErrorException]
require(app/etc/NonComposerComponentRegistration.php): failed to open stream: No such file or directory
원인
2022년 7월 이후 작성기가 allow-plugins 옵션의 기본값을 {}(으)로 변경하고, 허용되지 않는 한 플러그인은 더 이상 로드되지 않습니다.
해결 방법 resolution
-
Adobe Commerce 설치 방법에 따라
composer.json파일에 다음 내용을 추가하십시오.-
프로젝트가
composer create-project명령을 사용하여 만들어진 경우:code language-none "config": { "allow-plugins": { "dealerdirect/phpcodesniffer-composer-installer": true, "laminas/laminas-dependency-plugin": true, "magento/*": true } }- 다른 방법으로 프로젝트를 만들었지만
dealerdirect/phpcodesniffer-installer" in "require-dev섹션이 없는 경우:
code language-none "config": { "allow-plugins": { "laminas/laminas-dependency-plugin": true, "magento/*": true } } - 다른 방법으로 프로젝트를 만들었지만
-
-
composer.json파일을 업데이트한 후composer update명령을 실행하고 업그레이드 프로세스를 다시 시작하십시오.
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f