Closed gwharton closed 5 months ago
Hi @gwharton. Thank you for your report. To help us process this issue please make sure that you provided the following information:
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release
For more details, please, review the Magento Contributor Assistant documentation.
Please, add a comment to assign the issue: @magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel.
:warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
:clock10: You can find the schedule on the Magento Community Calendar page.
:telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket.
:movie_camera: You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
Hi @ajijshekh123. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If the issue has a valid description, the label Issue: Format is valid
will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid
appears.
[ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description
label to the issue by yourself.
[ ] 3. Add Component: XXXXX
label(s) to the ticket, indicating the components it may be related to.
[ ] 4. Verify that the issue is reproducible on 2.4-develop
branchDetails
- Add the comment @magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure.
- If the issue is reproducible on 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.
- If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
[ ] 5. Add label Issue: Confirmed
once verification is complete.
[ ] 6. Make sure that automatic system confirms that report has been added to the backlog.
@magento give me 2.4-develop instance
Hi @ajijshekh123. Thank you for your request. I'm working on Magento 2.4-develop instance for you
Hi @ajijshekh123, here is your Magento instance.
Admin access: https://i-29721-2-4-develop.instances.magento-community.engineering/admin_2352
Login: 58aa3b1b
Password: 509815ad9f08
Instance will be terminated in up to 3 hours.
Hello @gwharton, I thought this is not an issue but this is a Magento feature. As per your steps to be reproduced, actual result and expected result. I have reproduced on Magento 2.4 Instance. PFA: Admin:
Front end:
Thanks.
@ajijshekh123 Thank you for verifying the issue.
Unfortunately, not enough information was provided to acknowledge ticket. Please consider adding the following:
"Component: "
label(s) to this ticket based on verification result. If uncertain, you may follow the best guessOnce all required information is added, please add label "Issue: Confirmed"
again.
Thanks!
:white_check_mark: Confirmed by @ajijshekh123
Thank you for verifying the issue. Based on the provided information internal tickets MC-36982
were created
Issue Available: @ajijshekh123, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
@magento I'm working on this
The reason is, that Magento_Theme/layout/default.xml
provides a default of 170 (and the block doesn't read the database config if the value is already present in the data storage). So I've created a workaround by using my own themes default.xml to override that value with my correct value.
<?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">
<arguments>
<argument name="logo_width" xsi:type="number">100</argument>
<argument name="logo_height" xsi:type="number">100</argument>
</arguments>
</referenceBlock>
</body>
</page>
Hello @klein0r .. True.. But if we changed from the xml layout then what's the point of having the theme configuration in the backend? The preference would be if the value from the theme configuration is empty then it should take the value from the layout otherwise it should be taken from the theme configuration.
@konarshankar07 I've said that this is a workaround for the issue until it is fixed. Or what is your recommendation for the current situation?
@klein0r .. I agree with you but I have submitted the fix which will sort this issue. If you want to get more information then you check out my PR https://github.com/magento/magento2/pull/29746
I've seen that. But I've decided to create a default.xml for my shop, which is much easier to maintain than an additional patch file.
This is not a fix for Magento 2.4.1 installed with composer. The new folder structure is completely different which includes /pub The folder structure /app/design/frontend/Magento/ referred to above is empty and obsolete
Easy workaround
<referenceBlock name="logo">
<arguments>
<argument name="logo_width" xsi:type="null"/>
</arguments>
</referenceBlock>
@magento give me 2.4-develop instance
Hi @Poovarasan-06. Thank you for your request. I'm working on Magento instance for you.
Hi @Poovarasan-06, here is your Magento Instance: https://567ec6c2acfe082eeb71761b7163972e.instances-prod.magento-community.engineering Admin access: https://567ec6c2acfe082eeb71761b7163972e.instances-prod.magento-community.engineering/admin_0078 Login: f830acab Password: 33238e24c566
@magento give me 2.4-develop instance
Hi @Poovarasan-06. Thank you for your request. I'm working on Magento instance for you.
Hi @Poovarasan-06, here is your Magento Instance: https://567ec6c2acfe082eeb71761b7163972e.instances-prod.magento-community.engineering Admin access: https://567ec6c2acfe082eeb71761b7163972e.instances-prod.magento-community.engineering/admin_ea6e Login: 0786335f Password: 7929f33891ac
@gwharton Hey, this issue is not reproducible in both testing instance and with my local setup.
This appears to still be an issue with Magento 2.4.4-p6 at least, if your theme inherits from Magento Blank.
Essentially the logo image size gets loaded in from the following XML file: _./vendor/magento/theme-frontend-blank/MagentoTheme/layout/default.xml
If you override that file in your theme directory (./app/design/frontend); and set the xsi:type to null
you can force it to load in the values from the database: core_config_data -> design/header/logo_width (or height).
<referenceBlock name="logo">
<arguments>
<argument name="logo_width" xsi:type="null"></argument>
<argument name="logo_height" xsi:type="null"></argument>
</arguments>
</referenceBlock>
Hi @gwharton,
Thanks for your reporting and collaboration.
we have verified the issue in Latest 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.
Logo is 800 pixels wide
Hence We are closing this issue.
Thanks.
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The cause is this
https://github.com/magento/magento2/blob/8b7d949bf1cb67d7b98379fb30b6721ec7b92b37/app/design/frontend/Magento/blank/Magento_Theme/layout/default.xml#L8-L16
And was introduced here. https://github.com/magento/magento2/pull/27497