I am very new.
I am trying to change my website logo, html header, footer.
i upload image and click save configuration then i got error ---
"Something went wrong while saving this configuration: Area is already set"
his happen on all editing on page option. I am here--- Content---Design---Configuration---theme edit. on this page if i try anything to update or change then got same error. Magento 2.2 theme luma. please some one help me
i have one-click Softaculous Magento installion
Solved! Go to Solution.
This is a known issue in Magento 2.2.4 (GitHub issue).
You should not directly change the Magento core file (override or create a plugin):
Change in Magento\Email\Model\AbstractTemplate.php:
public function setForcedArea($templateId) { if ($this->area) { throw new \LogicException(__('Area is already set')); } $this->area = $this->emailConfig->getTemplateArea($templateId); return $this; }
change if condition with below line:
if (!isset($this->area)) { // code }
It will help you.
This is a known issue in Magento 2.2.4 (GitHub issue).
You should not directly change the Magento core file (override or create a plugin):
Change in Magento\Email\Model\AbstractTemplate.php:
public function setForcedArea($templateId) { if ($this->area) { throw new \LogicException(__('Area is already set')); } $this->area = $this->emailConfig->getTemplateArea($templateId); return $this; }
change if condition with below line:
if (!isset($this->area)) { // code }
It will help you.