cancel
Showing results for 
Search instead for 
Did you mean: 

Error when I try to apply a theme

Error when I try to apply a theme

Hi All,

 

I'm receiving this message when I try to apply a theme(even luma is returning the following error)

 

"Something went wrong while saving this configuration: Area is already set"

 

By default, I can apply a theme "Global", "only on main website", "on main web site and website store", I can only apply the theme "Globally", otherwise I receive this message.

1 REPLY 1

Re: Error when I try to apply a theme

Hi @bruno_soares

 

This issue is reported on GitHub :- GitHub Issue

 

Change in Magento\Email\Model\AbstractTemplate.php

 

From:

 

public function setForcedArea($templateId)
{
    if ($this->area) {
        throw new \LogicException(__('Area is already set'));
    }
    $this->area = $this->emailConfig->getTemplateArea($templateId);
    return $this;
}

To:

 

public function setForcedArea($templateId)
{
    if (!isset($this->area)) {
        $this->area = $this->emailConfig->getTemplateArea($templateId);
    }
    return $this;
}

 

If Issue Solved, Click Kudos/Accept As solutions.