{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/18266","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/18266/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/18266/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/18266/events","html_url":"https://github.com/magento/magento2/issues/18266","id":364049546,"node_id":"MDU6SXNzdWUzNjQwNDk1NDY=","number":18266,"title":"Something went wrong while saving this configuration: Area is already set","user":{"login":"Swapnil0411","id":38105172,"node_id":"MDQ6VXNlcjM4MTA1MTcy","avatar_url":"https://avatars3.githubusercontent.com/u/38105172?v=4","gravatar_id":"","url":"https://api.github.com/users/Swapnil0411","html_url":"https://github.com/Swapnil0411","followers_url":"https://api.github.com/users/Swapnil0411/followers","following_url":"https://api.github.com/users/Swapnil0411/following{/other_user}","gists_url":"https://api.github.com/users/Swapnil0411/gists{/gist_id}","starred_url":"https://api.github.com/users/Swapnil0411/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Swapnil0411/subscriptions","organizations_url":"https://api.github.com/users/Swapnil0411/orgs","repos_url":"https://api.github.com/users/Swapnil0411/repos","events_url":"https://api.github.com/users/Swapnil0411/events{/privacy}","received_events_url":"https://api.github.com/users/Swapnil0411/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-26T14:09:44Z","updated_at":"2018-09-26T14:09:44Z","closed_at":null,"author_association":"NONE","body":"<!---\r\nPlease review our guidelines before adding a new issue: https://github.com/magento/magento2/wiki/Issue-reporting-guidelines\r\n-->\r\n\r\n### Preconditions\r\n<!---\r\nProvide the exact Magento version (example: 2.2.5) and any important information on the environment where bug is reproducible.\r\n-->\r\n1. When you change the theme from Magento admin panel . Content >> Configuration  >> Edit >>  Applied Theme. After saving then it shows exception : \"Something went wrong while saving this configuration: Area is already set\". (Magento 2.2.4 and Magento 2.2.5 version only.)\r\n\r\n### Steps to reproduce\r\n<!---\r\nImportant: Provide a set of clear steps to reproduce this bug. We can not provide support without clear instructions on how to reproduce.\r\n-->\r\n1.login to Magento admin panel.\r\n2.Navigate to the content >> Configuration >> Edit >> Applied theme.\r\n3. After click on save  configuration button it showing error:  \"Something went wrong while saving this configuration: Area is already set\". \r\n### Solution \r\n1. Need to override or create a plugin.\r\n2.Change in Magento\\Email\\Model\\AbstractTemplate.php this: Line Number 535\r\npublic function setForcedArea($templateId)\r\n{\r\n    if ($this->area) {\r\n        throw new \\LogicException(__('Area is already set'));\r\n    }\r\n    $this->area = $this->emailConfig->getTemplateArea($templateId);\r\n    return $this;\r\n}\r\nTo \r\npublic function setForcedArea($templateId)\r\n{\r\n    if (!isset($this->area)) {\r\n        $this->area = $this->emailConfig->getTemplateArea($templateId);\r\n    }\r\n    return $this;\r\n}\r\n\r\n### Expected result\r\n<!--- Tell us what do you expect to happen. -->\r\n1. [Screenshots, logs or description]\r\n[2.]\r\n![default store view design content magento admin](https://user-images.githubusercontent.com/38105172/46085324-601b8580-c1c3-11e8-8061-3829abfab255.png)\r\n\r\n\r\n### Actual result\r\n<!--- Tell us what happened instead. Include error messages and issues. -->\r\n1. [Screenshots, logs or description]\r\n2.\r\n![default store view design content magento admin 1](https://user-images.githubusercontent.com/38105172/46085418-a07b0380-c1c3-11e8-963a-8774ebdf8b18.png)\r\n\r\n"}}
{"actor":{"display_login":"Swapnil0411"}}