Skip to content

Admin Usage Tracking causes JS error #37618

@drinkingsouls

Description

@drinkingsouls

Preconditions and environment

  • Magento 2.4.2, 2.4.3, 2.4.4, 2.4.5, 2.4.6, 2.4.7
    As of this morning the Knowledge Centre feature has appeared in our Magento install. I've never seen this before.
    It is linked to the Admin system setting "Enable Admin Usage Tracking". This has always been enabled for us and I've never had the Knowledge Centre appear before.
  • The Knowledge Centre is causing a JS error in our console. It conflicts with some Magento Dashboard settings.
  • With Enable Admin Usage Tracking set to Yes. The "Role Resources" tab is no longer visible in User Roles.
  • Causing issues loading product grids & products also.

!https://github.com/magento/magento2/assets/45666862/dab631d3-7870-4348-933f-300e6833a9b0!

!https://github.com/magento/magento2/assets/45666862/ef5193b3-da10-4827-bb07-38c000043541!

Steps to reproduce

  • Enable Admin Usage Tracking > Yes
  • Flush Cache
  • Knowledge Centre link appears in Dashboard
  • JS error present (console)

Expected result

Knowledge Centre is activated in Dashboard with no errors.

Actual result

Knowledge Centre is activated in Dashboard with errors.

Additional information

The Knowledge Centre only appeared on our install of Magento this morning. It has never been there previously.

Workaround

Enable Admin Usage Tracking > No
Or via CLI:
bin/magento config:set admin/usage/enabled 0;
bin/magento cache:clean;

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”.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area: Admin UIIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P1Once P0 defects have been fixed, a defect having this priority is the next candidate for fixing.Progress: doneReported on 2.4.6Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions