-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click Admin Stores Configuration shows console errors in legacy-build.min.js file #39066
Comments
Hi @kanidaya. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Delta. Thank you for working on this issue.
|
Hi @kanidaya , Thanks for your reporting and collaboration. Steps to reproduce
scrnli_8_20_2024_12-11-21.PM.mp4Please let us know if any other steps are needed to be performed. Thanks. |
@engcom-Delta can you share test env url? |
@engcom-Delta after click left side menu then click right section collabs its developer mode cause this issue |
I have the same issue. It appears randomly on configuration admin page. |
Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Delta, here is your Magento Instance: https://548f3793e0dbb09d97d328fd2792b4f7.instances-prod.magento-community.engineering |
I have the same issue, is there any fix for this? |
Same there |
We're having the same issue. |
Also having the same issue. |
Instead of posting "happens as well", it would really help if people could specify exact steps to reproduce and some details about their environment and if JS files are being minified and/or bundled (using built-in Magento functionality or custom ones). Also if this happens consistently, or only "sometimes"? Which browser is being used? Maybe we'll see a pattern after a while that might point us in the direction of the bug. |
If I delete my browser history/cache and refresh the page after it happens, the page will load correctly but then occur again on another admin page. Merge JavaScript Files: No No custom modules doing this. |
@hostep Also, after clearing site data in the broken store, the .removeClass errors are gone, but the ah.attachEvent errors are back.
|
@kanidaya Can you confirm if you are having a patch applied from #33593 (the one made by @AndresInSpace ) ? |
@hostep @kanidaya Since I have 2 stores to work with, one store was having no overwrites over the mixins.js file. But my other store it was having various patches on mixins.js file with the scope of solving the #33593 issue, which got solved thanks to @AndresInSpace. My mixins.js file that was causing the issue it was having this lines:
instead of this:
After removing the overwrites, the error is now gone. Full diff here:
|
I'd like to point out if you have Magento in production mode it's probably from static content versioning change. |
@kanidaya @likearocket @barryvdh @jointothedarkside Please ensure if in production mode that you have redeployed admin static content and flushed cache first. If you still have this issue, please try my patch #39097 and let us know if that resolved it. I see no requirejs/mixins.js in the stack traces provided, that is why I am thinking it's the mixin based issue - if not a deployment issue due to static-content version change. |
Hi @kanidaya @jointothedarkside , Thanks for your reporting and collaboration. Steps to reproduce :
Please let us know if any other steps are needed to be performed. Thanks. |
Hi @kanidaya @jointothedarkside , We have noticed that this issue has not been updated since long time. Thanks. |
Hi there. If there's somebody else facing the same issue, @m2-assistant please take this into consideration because this is a weird situation: the issue seems to be related with PayPal_Braintree, maybe with PayPal_Braintree/js/system.js and I think the reason you can't replicate the bug is that maybe you are testing with nginx instances. For some reason the static content versioning of this module is being handled different by nginx and apache, either in production or dev mode. I had the same issue with a fresh 2.4.7-p3 installation using apache but once I moved to nginx the error fully disappears. To be sure I disabled PayPal_Braintree on the apache instance and the error disappears too: In short terms, if you are running Apache try to disable (in case you are not using it ) PayPal_Braintree. If you are running Nginx maybe you are not aware of this error. |
Hi @nikolaykravchenko , Thanks for your reporting and collaboration. Steps to reproduce:
Thanks. |
@ricardomz
|
I am facing same issue in 2.4.7-p3 |
Preconditions and environment
Steps to reproduce
1.click Store configuration
2.click any of the section from side bar
3.open the any one og section
4.it will not open an check the console
Expected result
Nothing happen. we can able collapse and open any section
Actual result
Can't able to open system configuration sections shows below console errors
Uncaught TypeError: ah.attachEvent is not a function
at s (legacy-build.min.js:12:31254)
at Function.e [as observe] (legacy-build.min.js:12:31133)
at form.js:114:11
at Object.execCb (require.js:1696:33)
at Module.check (require.js:883:51)
at Module. (require.js:1139:34)
at require.js:134:23
at require.js:1189:21
at each (require.js:59:31)
at Module.emit (require.js:1188:17)Understand this error
theme.js:629 Uncaught TypeError: $(...).filter(...).collapse is not a function
at HTMLDivElement. (theme.js:629:12)
at Function.each (jquery.js:383:35)
at theme.js:626:7
at Object.execCb (require.js:1696:33)
at Module.check (require.js:883:51)
at Module. (require.js:1139:34)
at require.js:134:23
at require.js:1189:21
at each (require.js:59:31)
at Module.emit (require.js:1188:17)
legacy-build.min.js:12 Uncaught TypeError: $(...).removeClassName is not a function
at Object.applyCollapse (legacy-build.min.js:12:147567)
at Object.toggleCollapse (legacy-build.min.js:12:148155)
at HTMLAnchorElement.eventListener9tmbiETHAp (6c8471f696931ebcf4ba741ab4a76321ac03408b6b79a9af71a9e0f07aa8885b/:475:41)
at element.onclick (6c8471f696931ebcf4ba741ab4a76321ac03408b6b79a9af71a9e0f07aa8885b/:486:52)Understand this error
about:blank:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was receivedUnderstand this error
6c8471f……71a9e0f07aa8885b/:1 Uncaught (in promise) Error: A listener indicated an asynchronous response by returning true, but the message channel closed before a response was receivedUnderstand this error
2legacy-build.min.js:12 Uncaught TypeError: $(...).removeClassName is not a function
at Object.applyCollapse (legacy-build.min.js:12:147567)
at Object.toggleCollapse (legacy-build.min.js:12:148155)
at HTMLAnchorElement.eventListenerIIMI4DNdRa (6c8471f696931ebcf4ba741ab4a76321ac03408b6b79a9af71a9e0f07aa8885b/:529:41)
at element.onclick (6c8471f696931ebcf4ba741ab4a76321ac03408b6b79a9af71a9e0f07aa8885b/:540:52)
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: