{"data":{"id":"magento2-38922","source":"github-pr","sourceRef":"magento/magento2#38922","title":"\"Area code not set\" after update to 2.4.5-p8","pr":{"number":38922,"url":"https://github.com/magento/magento2/pull/38922","author":"quterorta","mergedAt":"2024-09-05T13:38:34Z","mergeCommit":"58a435bda0a15b0f0ee9869d17756d317a633a1e","headCommit":"01e0d1e297862502f89d2f1672676ea43e31995a","baseRef":"2.4-develop","diffSha256":"d1619dc3694786e1a96f7a256fb0bde344a79f06a266d0db62174df5ecced944"},"issues":[{"number":38845,"url":"https://github.com/magento/magento2/issues/38845","title":"\"Area code not set\" after update to 2.4.5-p8","labels":["Area: Content / CMS","Component: Deploy","Issue: Confirmed","Priority: P2","Progress: done","Reported on 2.4.5-p8","Reproduced on 2.4.x"],"kind":"human"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":"2.4.5-p8","codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/framework"],"files":[{"path":"lib/internal/Magento/Framework/App/Area.php","change":"modified","package":"magento/framework"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":2,"mergeBatched":false,"excluded":null,"sections":{"description":"Error: Area code not set","stepsToReproduce":"Enable Magento_CSP, and set \"dev/js/translate_strategy\" to \"embedded\". Than run bin/magento setup:static-content:deploy","expectedResult":"Successful finish","actualResult":"Error: Area code not set\n\n![image (12)](https://github.com/magento/magento2/assets/47088535/c642b2fd-e8f3-40ac-9bf9-edc92bd9a5a8)","source":"issue"},"signatures":["Error: Area code not set","Exception is triggered in class vendor/magento/framework/Translate.php"],"labels":{"area":["Content / CMS"],"component":["Deploy"],"priority":"P2","severity":null,"reportedOn":["2.4.5-p8"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"cbf5ef1f533b247a266a0214d151a1356c1ecd024f1ef733a1f60c9fece125da","isBugfix":0.9658,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9466,"feature":0.0069,"refactor":0.0257,"tests_only":0.0094,"docs_only":0.0047,"dependency":0.0067},"confidence":0.8762},"scope":{"score":0.2676,"probabilities":{"0":0.793,"1":0.1464,"2":0.0606},"confidence":0.481},"risk":{"score":0.4129,"probabilities":{"0":0.626,"1":0.335,"2":0.039},"confidence":0.2585},"area":{"choice":"framework","probabilities":{"catalog":0.0065,"checkout":0.0043,"customer":0.0041,"admin":0.0176,"graphql_api":0.0037,"framework":0.5899,"frontend":0.3387,"other":0.0352},"confidence":0.3878},"securityRelevant":0.0765,"reportedVersion":{"choice":"2.4.5-p8","probabilities":{"2.4.0":0.0021,"2.4.0-p1":0.0025,"2.4.1":0.0022,"2.4.1-p1":0.0024,"2.4.2":0.0023,"2.4.2-p1":0.0026,"2.4.2-p2":0.0026,"2.4.3":0.0027,"2.4.3-p1":0.0028,"2.4.3-p2":0.003,"2.4.3-p3":0.0029,"2.4.4":0.0028,"2.4.4-p1":0.0027,"2.4.4-p10":0.0036,"2.4.4-p11":0.0045,"2.4.4-p12":0.0046,"2.4.4-p13":0.0043,"2.4.4-p14":0.0045,"2.4.4-p15":0.0041,"2.4.4-p16":0.0039,"2.4.4-p17":0.0037,"2.4.4-p18":0.0036,"2.4.4-p2":0.0022,"2.4.4-p3":0.0023,"2.4.4-p4":0.0026,"2.4.4-p5":0.0038,"2.4.4-p6":0.0038,"2.4.4-p7":0.0047,"2.4.4-p8":0.006,"2.4.4-p9":0.0035,"2.4.5":0.0224,"2.4.5-p1":0.0042,"2.4.5-p10":0.0068,"2.4.5-p11":0.0057,"2.4.5-p12":0.0036,"2.4.5-p13":0.0035,"2.4.5-p14":0.0034,"2.4.5-p15":0.0033,"2.4.5-p16":0.0038,"2.4.5-p17":0.0036,"2.4.5-p2":0.0024,"2.4.5-p3":0.0031,"2.4.5-p4":0.0058,"2.4.5-p5":0.0051,"2.4.5-p6":0.0099,"2.4.5-p7":0.0224,"2.4.5-p8":0.6098,"2.4.5-p9":0.017,"2.4.6":0.0077,"2.4.6-p1":0.008,"2.4.6-p10":0.005,"2.4.6-p11":0.0053,"2.4.6-p12":0.0047,"2.4.6-p13":0.0048,"2.4.6-p14":0.0048,"2.4.6-p15":0.0049,"2.4.6-p2":0.0037,"2.4.6-p3":0.0038,"2.4.6-p4":0.0047,"2.4.6-p5":0.0044,"2.4.6-p6":0.0043,"2.4.6-p7":0.0042,"2.4.6-p8":0.0048,"2.4.6-p9":0.003,"2.4.7":0.0042,"2.4.7-p1":0.0041,"2.4.7-p10":0.0039,"2.4.7-p2":0.0036,"2.4.7-p3":0.0046,"2.4.7-p4":0.0053,"2.4.7-p5":0.0055,"2.4.7-p6":0.0047,"2.4.7-p7":0.0046,"2.4.7-p8":0.0042,"2.4.7-p9":0.0028,"2.4.8":0.0035,"2.4.8-p1":0.0041,"2.4.8-p2":0.005,"2.4.8-p3":0.0046,"2.4.8-p4":0.0053,"2.4.8-p5":0.006,"2.4.9":0.0041,"unspecified":0.0067},"confidence":0.367},"backportWorthy":{"score":1.6165,"probabilities":{"0":0.0736,"1":0.2363,"2":0.6901},"confidence":0.3062}},"curated":{"title":"Fixes \"Area code not set\" during static content deploy with CSP enabled","description":"Static content deploy with Magento_Csp enabled and dev/js/translate_strategy set to embedded in production mode ends with the error Area code not set, because the area wasn't set via CLI. Area::_initConfig() now passes its own area code (_code) to the translator loadData() instead of a null value.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-38922 details"}