9

After Upgrade Latest Magento ver. 2.4.3 Logo displayed Default Magento Logo... Uploaded logo was not display in Magento 2.4.3

I have checked at: Magento Admin > Content > Design > Configuration > Defult Store View > Header > Logo Image. File is properly uploaded.

Any One facing this Issue ?

Note: Magento ver. 2.4.3

2
  • have you ran deploy command in all databases? and cleared all magento cache? Aug 18, 2021 at 12:16
  • yes all thing done Aug 18, 2021 at 13:09

4 Answers 4

15

Unsure if you solved this in the end, but we had the same issue when upgrading from 2.4.2 to 2.4.3.

The issue for us was from some new logo arguments added to default.xml in 2.4.3:

<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
    <arguments>
        <argument name="logoPathResolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver</argument>
        <argument name="logo_size_resolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver</argument>
    </arguments>
</block>

As we were overriding default.xml in our theme these were missing. Adding these arguments to our theme default.xml solved it.

1
  • If you are encountering this default logo issue specifically on the "Print Order" page and are on M2.4.3 or M2.4.4, then checkout this know issue which is fixed in M2.4.5: github.com/magento/magento2/pull/34943
    – Mike Dubs
    Dec 9, 2022 at 19:21
2

Under www/app/design/frontend/{Vendor}/{theme}/Magento_Theme/layout/default.xml

            <block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
                <arguments>
                    <argument name="logoPathResolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver</argument>
                    <argument name="logo_size_resolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver</argument>
                </arguments>
            </block>

And make sure to clear your cache and Fastly cache if you use it

1

I had the same issue with MGS template. I followed advices on this thread Change default logo to .SVG image programatically by adding below code to default.xml

<?xml version="1.0"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <body>
        <referenceBlock name="logo">
            <action method="setLogoFile">
                <argument name="logo_file" xsi:type="string">
                    images/logo.png
                </argument>
            </action>
        </referenceBlock>
    </body>
</page>
3
  • This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. To get notified when this question gets new answers, you can follow this question. Once you have enough reputation, you can also add a bounty to draw more attention to this question. - From Review
    – Pawan
    Aug 28, 2021 at 4:10
  • 1
    Sorry about that! I was using my phone and answered it instead of commenting. I updated the text with a real answer this time.
    – Andrew Z
    Aug 29, 2021 at 13:35
  • Great, it will help others..+1
    – Pawan
    Aug 29, 2021 at 13:51
1

This error is due to different ways of calling the Magento 2.4.3 logo and the previous version. I did override the theme follow path app/design/frontend/VendorTheme/Name_theme/Magento_Theme/layout/default.xml

<block class="Magento\Theme\Block\Html\Header\Logo" name="logo">
<arguments>
    <argument name="logoPathResolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoPathResolver</argument>
    <argument name="logo_size_resolver" xsi:type="object">Magento\Theme\ViewModel\Block\Html\Header\LogoSizeResolver</argument>
</arguments>
1
  • I done this however not i see empty space incited of logo. May 27, 2022 at 9:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.