magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.44k stars 9.29k forks source link

admin layout broken #36057

Closed chazzs closed 1 year ago

chazzs commented 1 year ago

Preconditions and environment

Steps to reproduce

I am not clear how to reproduce this, it just started happening and is happening more and more lately.

  1. login to the admin/backend.

Expected result

I expect the admin layout to be consistent; not having the content appear below the side menubar.

Actual result

admin layout broken and page content appears below the sidebar/menu.

Screenshot_2022-08-30_14-14-03

Additional information

I am sorry there is not much information here, This just started happening. I have made no customizations(aside from color of the sidebar 3 years ago) to the admin interface styles so I am unsure as to why this is all of the sudden happening. The results are inconsistent as well. If i do a hard reload(shift + reload) the page loads fine, but if i just hit page reload button the layout breaks and I have to do a hard reload again to fix the layout. This will also happen when browser debug tools are open and network cache is not "disabled". The layout will not break when network cache is "disabled"

There are no errors in the debug tools console.

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @chazzs. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:

Make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


: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, join the Community Contributions Triage session to discuss the appropriate ticket.

:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

chazzs commented 1 year ago

@magento give me 2.4.3-p2-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @chazzs. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @chazzs, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

chazzs commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @chazzs. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @chazzs, here is your Magento Instance: https://eff2133cae7dc7db3385aedb44bf6321.instances.magento-community.engineering Admin access: https://eff2133cae7dc7db3385aedb44bf6321.instances.magento-community.engineering/admin_14cf Login: 4b6f8cbe Password: 5a9334a6712d

hostep commented 1 year ago

It's been happening to me as well on various Magento versions since a week or 2-3. It only seems to happen on Google Chrome, not on Firefox. It only happens every so often, not all the time.

I think it's caused by a Google Chrome update from version 103 to 104, but can't say with certainty. Maybe somebody should report this to the Google Chrome team? Not sure if it's a bug in Chrome itself, or a bug in the css/javascript of Magento that's causing an undefined behavior in certain browsers?

chazzs commented 1 year ago

Sometimes the layout fixes itself as soon as you scroll

n2diving-dgx commented 1 year ago

Can confirm it's happening with the admin pages of M2.4.5 + Php8.1 to everyone in the office using Win11/Chrome Version 105.0.5195.54 (Official Build) (64-bit). Really annoying, most often a browser page scroll or a page refresh corrects the display, but occasionally not.

m2-assistant[bot] commented 1 year ago

Hi @engcom-Dash. 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:


engcom-Dash commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @engcom-Dash, here is your Magento Instance: https://eff2133cae7dc7db3385aedb44bf6321.instances.magento-community.engineering Admin access: https://eff2133cae7dc7db3385aedb44bf6321.instances.magento-community.engineering/admin_0fa6 Login: 35682c72 Password: ea03bc71476d

engcom-Dash commented 1 year ago

Hi @chazzs , We are trying to reproduce the issue in 2.4-develop branch...But we are not able to reproduce the issue. we are getting expected result.

Here i attached screenshot for your reference: Screenshot from 2022-09-01 14-54-15

Steps:

  1. Install magento instance
  2. Open admin Panel
  3. Contents of Admin Panel displaying properly

Let us know if we are missing anything

Thanks!!!

hostep commented 1 year ago

I've just tested with a clean Magento 2.4.5 on Chrome 105.0.5195.52 with a screen resolution of 2560x1440 and could reproduce a couple of times. But it wasn't on the Dashboard this time, but on the Sales > Orders grid.

So again: this is only sometimes happening, not all of the times, it's pretty hard to reproduce, basically you probably want to click around in the backoffice 10 or 20 times between different pages and maybe you'll be able to trigger it.

n2diving-dgx commented 1 year ago

I never see it on the dashboard, but it reproduces for me inconsistently on Sales > Orders grid... looks like the screencap below....

image

However, this step will consistently resolve the issue...

(1) Open "incognito mode" of Win11/Chrome Version 105.0.5195.54 with large window on desktop. Using incognito mode assures that there is not some cookie, caching or other data that is making the problem inconsistent. (2) Visit M2.4.5 + Php8.1 store admin URL and login. (3) navigate to Admin > Sales > Orders and other pages with "grids" and observe the issue definitely can NOT be reproduced.

engcom-Dash commented 1 year ago

Hi @n2diving-dgx ,

We are not able to reproduce the issue....As per your Comments I used incognito mode and Used magento version 2.4.5 with php 8.1...I am not getting any error in dashboard and sales grid.

Here i attached screenshot of Sales grid: Screenshot from 2022-09-02 14-40-14

Let us know if we are Missing

thanks!!!!

hostep commented 1 year ago

@engcom-Dash: It definitely still happens, you just need to test and test and test and try again over and over again and only sometimes it will happen.

I just had it happen again over here, both on the Dashboard as on the Orders grid with a vanilla Magento 2.4.5, using Google Chrome 105.0.5195.52 this time with a screen resolution of 2304x1296, not sure if that latter is important, probably not. I'm able to trigger it more easily when not using incognito, but I guess it's different for everyone.

Screen Shot 2022-09-02 at 12 10 46 Screen Shot 2022-09-02 at 12 17 10
engcom-Dash commented 1 year ago

Hi @hostep ,

We are tried this issue more then 3 three times we are getting admin dashboard properly...

Environment:

  1. magento 2.4.3 or 2.4 develop instance and 2.4.5
  2. php 7.4 and 8.1
  3. google chrome version - Version 105.0.5195.52 (Official Build) (64-bit)

Let us know if we are missing anything!!!

Thanks!!!

hostep commented 1 year ago

Yeah sorry, all I can say is that it only happens "sometimes". I just had it happen again on a Magento 2.3.6-p1 installation as well an hour ago or so. But yeah, no idea about specifying exact steps for reproducing, you just need to get "lucky" to run into it. Maybe keep your eyes open for this issue the next few weeks while testing other tickets, maybe you'll see it happen by accident one day ...

hostep commented 1 year ago

Some people on Slack claim this problem is also happening in Firefox, so this might no longer be considered a browser bug. Even though it's still strange that this started happening only in the last month or so on all kinds of different Magento versions where this never happened before...

chazzs commented 1 year ago

Something to add to the strangeness: Scrolling a ways down the page will sometimes correct the layout.

briangmoore77 commented 1 year ago

Latest chrome update didn't solve the problem. I really believe lastpass is causing the issue. The issue doesn't happen in incognito mode which lastpass doesn't have access to. Haven't tested firefox.

hostep commented 1 year ago

Just to keep this thread in line with what's being discovered on Slack. Chrome's update to 105.0.5195.102 didn't seem to fix it for a colleague of mine. But there's now speculation that the problem is triggered by a recent update of the LastPass extension in our browsers.

@chazzs: do you also have LastPass installed?

chazzs commented 1 year ago

I do have LastPass installed. it does seem strange that it would hose up a page that it does not interact with (Magento dashboard or the odd list/grid)

On Fri, Sep 9, 2022, 2:49 AM Pieter Hoste @.***> wrote:

Just to keep this thread in line with what's being discovered on Slack. Chrome's update to 105.0.5195.102 didn't seem to fix it for a colleague of mine. But there's now speculation that the problem is triggered by a recent update of the LastPass extension in our browsers.

@chazzs https://github.com/chazzs: do you also have LastPass installed?

— Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/36057#issuecomment-1241690454, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAM5LQLEEPH3QHDYLA74FLTV5L2ZHANCNFSM6AAAAAAQAX3UVI . You are receiving this because you were mentioned.Message ID: @.***>

briangmoore77 commented 1 year ago

@chazzs Lastpass interacts with what ever is in your browser tab. Look at the details page for lastpass and I am pretty sure you will see this: "Site access Allow this extension to read and change all your data on websites you visit: All Sites"'

Try incognito mode and see if the issue is there. Make sure you didn't give Lastpass permission to show up on incognito mode.

n2diving-dgx commented 1 year ago

I can confirm that simply disabling the LastPass extension in Chrome stops the issue from occurring.

image

Re-enabling the extension causes the issue to return immediately for me.

What is unclear... is this a bug in LP, or is this a something being done in M2 that is improper and/or unexpected.

hostep commented 1 year ago

Okay, thanks for the investigation @n2diving-dgx!

I don't think it's something in M2, because it never happened before. So it's probably a new bug in one of the last LastPass browser extension versions. I think we should try to report this to LastPass and see if they can figure out what goes wrong (even though the bug seems to be hard to reproduce).

engcom-Dash commented 1 year ago

Yeah sorry, all I can say is that it only happens "sometimes". I just had it happen again on a Magento 2.3.6-p1 installation as well an hour ago or so. But yeah, no idea about specifying exact steps for reproducing, you just need to get "lucky" to run into it. Maybe keep your eyes open for this issue the next few weeks while testing other tickets, maybe you'll see it happen by accident one day ...

Hi @hostep ,

Sure we are watching this issue Continuously. If we will find any bug regarding this we will update you....

Thanks!!!

briangmoore77 commented 1 year ago

@hostep @chazzs @n2diving-dgx If all of us can go to lastpass and submit bug reports it would help resolve this issue.

I've also created a topic in their support discussions: https://community.logmein.com/t5/LastPass-Support-Discussions/Magento-2-Admin-loading-issues-with-Chrome-extenstion/m-p/293009

engcom-Dash commented 1 year ago

Dear @n2diving-dgx ,

We have noticed that this issue has not been updated for a period of 14 Days. Hence we assume that this issue is fixed now, so we are closing it. Please raise a fresh ticket or reopen this ticket if you need more assistance on this.

Thanks!!!