Skip to content

main.INFO: Broken reference in debug.log #36806

@cptX

Description

@cptX

Preconditions and environment

  • Magento version
    2.4.5
  • Anything else that would help a developer reproduce the bug
    I think it's happening in a pure magento installation

Steps to reproduce

Enable developer mode. Just visit some pages including the main page. Then check the debug.log and you will see these errors!!

Expected result

No errors should be produced.

Actual result

[2023-02-04T16:47:27.794836+00:00] main.INFO: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2023-02-04T16:47:27.795021+00:00] main.INFO: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2023-02-04T16:47:27.795145+00:00] main.INFO: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2023-02-04T16:47:27.795211+00:00] main.INFO: Broken reference: the 'paypal.partner.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2023-02-04T16:47:27.795275+00:00] main.INFO: Broken reference: the 'bml.right.logo' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2023-02-04T16:47:27.795325+00:00] main.INFO: Broken reference: the 'sidebar.container.paylater' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] []

Additional information

I'm really surprised this bug exists in magento since 2016!!!!! There are dozens of references of this issue over the years. Although I didn't find any recent reference about this in magento 2.4.x.
The only difference is that then was declared as main.CRITICAL and now is main.INFO.

Why isn't this solved 7 years now???
This should be solved because is clogging the logs and in my opinion takes resources from the system as it tries to find things without success, even in production mode (not tested) where maybe is not showing in the logs...

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: FrameworkComponent: DeveloperIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: ready for devReported on 2.4.5Indicates 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

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions