New answers tagged

0

Maybe some custom module affect to value of title. I think it's a good idea to debug to see what the value of title is.


0

I solved this problem by downloading the Magento 2.4.3 release as a zip download from the Magento site, and opening up the composer.json file. I then copied the programs in the "require-dev": section to the composer.json file in my Magento, and then Magento would upgrade.


0

I solved it installing Laminas_Log module: composer require laminas/laminas-log


0

Somehow found a solution. There was a custom module which was causing this issue specifically below code, // \Magento\Framework\App\Http\Context $this->httpContext $isLoggedIn = $this->httpContext->getValue(\Magento\Customer\Model\Context::CONTEXT_AUTH); So used this class Magento\Customer\Model\SessionFactory instead of \Magento\Framework\App\...


1

You need to try this code. protected $emailfilter; public function __construct( ..... \Magento\Email\Model\Template\Filter $filter, .....) { $this->emailfilter = $filter; } public function renderMetadata() { $result = ''; foreach ($this->pageConfig->getMetadata() as $name => $content) ...


0

What about trying something like this for each of your name and content ? Not sure about the syntax but here is the idea if(get_class($name) == 'Magento\Framework\View\Page\Title'){ $realName = $name->get(); }


Top 50 recent answers are included