-
Notifications
You must be signed in to change notification settings - Fork 9.4k
magento/magento2#38845:"Area code not set" after update to 2.4.5-p8 #38922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
magento/magento2#38845:"Area code not set" after update to 2.4.5-p8 #38922
Conversation
- fixed issue by providing needed area code as a function argue
|
Hi @quterorta. Thank you for your contribution! Add the comment under your pull request to deploy test or vanilla Magento instance:
❗ Automated tests can be triggered manually with an appropriate comment:
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
|
@magento run all tests |
|
@magento run all tests |
|
@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B |
|
@magento run Functional Tests EE, Functional Tests CE, Functional Tests B2B |
engcom-Hotel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Failed builds seem flaky to me. Hence approving this PR.
|
@magento run all tests |
|
Hi @quterorta, Thanks for the collaboration & contribution! ✔️ QA Passed Preconditions:
Steps to reproduce
Before: ✖️
After: ✔️
Builds are failed. Hence, moving this PR to Extended Testing. Thanks. |
|
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, Unit Tests |
|
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests |








Description (*)
This issue is caused because, during deployment of the static content, the plugin Magento\Csp\Plugin\GenerateAssetIntegrity from the Magento_Csp module generates integrity for the RequireJs config by loading the file content and hashing them. The main reason for this issue is that static content deployment is executing via CLI so the area wasn't set. But the changed class has in the constructor _code param with the needed area code, so all my fix is providing the needed area code as an argument (instead of a null value).
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Steps to reproduce:
Expected result:

Successful finish
Questions or comments
Contribution checklist (*)