Skip to content
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

Console errors breaking Admin Stores Configuration on 2.4.7-p3 #39541

Open
1 of 5 tasks
dphilipps opened this issue Jan 14, 2025 · 19 comments
Open
1 of 5 tasks

Console errors breaking Admin Stores Configuration on 2.4.7-p3 #39541

dphilipps opened this issue Jan 14, 2025 · 19 comments
Labels
Area: Admin UI Component: Ui Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Reported on 2.4.7-p3 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@dphilipps
Copy link

dphilipps commented Jan 14, 2025

Preconditions and environment

-2.4.7-p3 fresh install
DEVELOPER MODE
(Also occurs in Production mode but much less frequently - can take 5 mins of clicking around)

This happens inconsistently, browsing around number of different admin sections is needed before the console errors are displayed. It isn't one section which conistently breaks.

Steps to reproduce

  1. In admin browse to Stores->Configuration
  2. Open console
  3. Click between sections within areas on left menu such as General->Web, General->Currency Setup, Customers->Customer Configuration etc.
  4. Look for console error then attempt to open a section on the right

Expected result

Drop-down sections in admin should expandable by clicking down arrow.
No console errors are expected

Actual result

Drop-down sections in admin CANNOT be expanded by clicking down arrow.

Uncaught TypeError: ah.attachEvent is not a function at s (legacy-build.min.js:12:31254)

Additional information

No response

Release note

No response

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Copy link

m2-assistant bot commented Jan 14, 2025

Hi @dphilipps. Thank you for your report.
To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.


Join Magento Community Engineering Slack and ask your questions in #github channel.
⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.
🕙 You can find the schedule on the Magento Community Calendar page.
📞 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.

@dphilipps
Copy link
Author

@magento give me 2.4.7-p3 instance

@dphilipps
Copy link
Author

@magento give me 2.4.7 instance

@dphilipps
Copy link
Author

@magento I am working on this

@dphilipps
Copy link
Author

@magento give me 2.4.7-p3 instance

@dphilipps
Copy link
Author

@magento give me 2.4-develop instance

@dphilipps dphilipps removed their assignment Jan 14, 2025
@dphilipps
Copy link
Author

Is Magento instance deployment not working?

@mflott
Copy link

mflott commented Jan 14, 2025

I'm also seeing this issue quite frequently, same Magento version.

Including the error message in the description, I'm also often seeing this on the occasion that it breaks:

Uncaught TypeError: $(...).filter(...).collapse is not a function
    at HTMLDivElement.<anonymous> (VM22992 theme.js:629:12)
    at Function.each (VM22991 jquery.js:383:35)
    at VM22992 theme.js:626:7
    at Object.execCb (require.js:1720:33)
    at Module.check (require.js:893:51)
    at Module.<anonymous> (require.js:1153:34)
    at require.js:138:23
    at require.js:1205:21
    at each (require.js:62:31)
    at Module.emit (require.js:1204:17)

@mflott
Copy link

mflott commented Jan 14, 2025

Related issue: #39066

@engcom-Bravo engcom-Bravo self-assigned this Jan 16, 2025
Copy link

m2-assistant bot commented Jan 16, 2025

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

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- 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.

@engcom-Bravo engcom-Bravo added the Reported on 2.4.7-p3 Indicates original Magento version for the Issue report. label Jan 16, 2025
@github-project-automation github-project-automation bot moved this to Ready for Confirmation in Issue Confirmation and Triage Board Jan 16, 2025
@dphilipps
Copy link
Author

dphilipps commented Jan 16, 2025

I've spent some time troubleshooting this issue on a fresh composer install of 2.4.7-p3 and trying some of the suggestions above.

Here are my findings:

Disabling Paypal Braintree modules: Didn't work for me, I've disabled all of them, and I could still reproduce the issue.
Nginx vs Apache: I switched my FPM between both and makes no difference.
Re-deploying static content (for admin or all): This made no difference either.
I have noticed it is a lot harder to reproduce when the store is in Production mode. It can take 5 minutes of clicking around Stores->Configuration to see the issue. In Developer mode, it only takes a couple of times.

screen.recording.mp4

@dphilipps
Copy link
Author

@engcom-Bravo Could you please tell me why it is no longer possible to Deploy vanilla Magento Open Source instance with @magento give me xxx instance as per the contributor documentation? I always like to try and reproduce it on a Magento instance when I raise the bug which saves you time, but it doesn't seem available at the moment?

@engcom-Bravo
Copy link
Contributor

Hi @dphilipps,

Thanks for your reporting and collaboration.

The Magento 2.4-develop instance service(MDS) has been decommissioned hence we will not get here Magento 2.4-develop instance.

We have verified the issue in Latest 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots.

Image

Drop-down sections in admin CANNOT be expanded by clicking down arrow.

Hence Confirming the issue.

Thanks.

@engcom-Bravo engcom-Bravo added Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Component: Ui Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Area: Admin UI labels Jan 20, 2025
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/AC-13741 is successfully created for this GitHub issue.

Copy link

m2-assistant bot commented Jan 20, 2025

✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@dphilipps
Copy link
Author

Thanks for confirming the issue @engcom-Bravo appreciate it. Let me know if I can assist further.

And thanks for explaining about MDS that's a shame that has been decommissioned.

@mflott
Copy link

mflott commented Jan 22, 2025

To add more info for those who might be looking into this, I can confirm that at least the jQuery libary is loaded twice when this issue occurs. It also happens occasionally with scripts in frontend, meaning that it's most likely a general issue and not related to a specific scope.

@ananth-iyer
Copy link
Member

@dphilipps
Copy link
Author

Here is the patch - https://gist.github.com/ananth-iyer/e85c60112516828d64c6701ba55cd1bb
Hi @ananth-iyer
Thanks for the patch. However, I can still reproduce the issue with the Braintree modules fully disabled and the file you are patching resides in PayPal_Braintree (module-braintree-core)

I have disabled the following modules, cleared static content, cache etc and exact same console errors appear.

PayPal_Braintree
PayPal_BraintreeCustomerBalance
PayPal_BraintreeGiftCardAccount
PayPal_BraintreeGiftWrapping
PayPal_BraintreeGraphQl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Admin UI Component: Ui Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Reported on 2.4.7-p3 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
None yet
Development

No branches or pull requests

5 participants