-
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
Constant critical errors in system.log #3507
Comments
@werdlv, are you able to see frontend/admin while receiving such errors? Which OS is used? |
@vzaporozhets yes, both admin & front-end are accessible and seems to work fine in general. Ubuntu 14.04 is used along PHP7 and Nginx |
I am experiencing same issue, as a result the main menu in frontend not showing up |
@lutpiero I noticed the same issue when installed M2 on Windows using "localhost" in the base URL. Adding any alias with domain part (ex. "magento.local") to "hosts"-file resolve this issue and M2 works just fine. But do not forget to use this alias for the base URL while installing Magento. @werdlv Can you tell a bit more about store views configuration? |
@vzaporozhets there is nothing specific about store views - |
@werdlv we can't reproduce this problem with 2.0.4 using the same environment. Can you please re-test this issue with latest version and report more details if it is still faced. |
[2016-05-07 08:11:14] main.CRITICAL: Broken reference: the 'bannerslider.sidebar.left.top' tries to reorder itself towards '', but their parents are different: 'left' and '' respectively. [] [] |
@vzaporozhets - you're kidding, right? :) |
issue still persists |
Yes, the issue still persists. I've installed Magento 2.0.5 and the errors keep popping up. Pretty disappoint having an application with those kind of bugs out of the box.
|
@adragus-inviqa No, I'm not kidding :-) I checked logs of our environment with PHP7/nginx where 2.0.X has been tested and didn't find such messages. If Magento works and all layouts are fine - this is fail error reporting which need to be fixed. We just need to reproduce it - I'll keep you informed. |
same errors with: [2016-05-20 14:11:02] main.CRITICAL: Broken reference: the 'header' tries to reorder itself towards 'global.notices', but their parents are different: 'page.wrapper' and 'notices.wrapper' respectively. [] [] |
Ok, guys. There is no bug here ) Really. Reason 1 Reason 2 The tricky thing is that sometimes that could be a normal case and developer understands why it happens (if want to add a block to specific container to all pages on which target container available, and don’t need that block to be added to the pages where target container is not available). Short excerpt from internal ticket description: "Stop logging such cases at all, or at least stop marking them as CRITICAL (ensure that it’s not logged in production mode). Also it will be helpful if logged message will say the URL of the page where target container is missed". So, as you see, we still think that logging such "broken" references is a right thing to do, since some of them are really could be caused by misspells in layout files. |
definitively usefull having the url in order to investigate what is the real issue |
The issue is fixed internally and will be delivered in 2.1 |
I just installed version 2.1. Issue is still very alive here. Also since the update the sidebar in the admin product edit page is gone. Errors in System.log: [2016-06-29 13:51:00] main.CRITICAL: Broken reference: the 'product.reviews' element cannot be added as child to 'product_tabs', because the latter doesn't exist [] [] |
Error still exists for me. Even after 2.1 update. |
Still persists in version 2.1 Production Mode: Looks good Developer Mode: Refreshed the home page once
debug.log
Other links on the home page have the same issue. Note: Varnish is setup on 127.0.0.1:6018 |
hi im facing problem with magento 2.1.1 with below.
can anybody give some idea.. due to this .. my checkout page went empty |
I'm having a simillar problem, the cart page suddenly is blank except for: |
Hi, I'm trying to solve this. But I'm not sure, is this related to Sometimes knockoutjs also breakup the sites. I will inform once solved.. On Oct 6, 2016 3:05 AM, "James Vreeken" [email protected] wrote:
|
Same issue, don't know why it's marked as closed when so many people are having the issue
|
I have the same issue. Tried several methods, none worked yet. I am using Magento 2.1.1 with sample data on Windows 7
|
Same issue with 2.1.2 [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product-sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.info.top' tries to reorder itself towards 'page.main.title', but their parents are different: 'product.info.main' and 'columns.top' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.info.price' tries to reorder itself towards 'page.main.title', but their parents are different: 'product.info.top' and 'columns.top' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.info.general' tries to reorder itself towards 'product.info.addtocart', but their parents are different: 'product.info.main' and 'product.info.form.content' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.info.sku' tries to reorder itself towards 'product.info.type', but their parents are different: 'product.info.general' and 'product.info.stock.sku' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.price.tier' tries to reorder itself towards 'product.info.price', but their parents are different: 'product.info.main' and 'product.info.top' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.info.social' tries to reorder itself towards 'product.info.overview', but their parents are different: 'product.info.extrahint' and 'product.info.main' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'view.addto.wishlist' tries to reorder itself towards 'view.addto.requisition', but their parents are different: 'product.info.addto' and '' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'detail.bottom' tries to reorder itself towards 'product-info-main', but their parents are different: 'product.view.container' and '' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'product.info.details' tries to reorder itself towards 'product.info.media', but their parents are different: 'detail.bottom' and 'product.view.container' respectively. [] [] [2016-10-18 05:08:22] main.CRITICAL: Broken reference: the 'bml.right.logo' tries to reorder itself towards 'product.info.addtocart.paypal', but their parents are different: 'product.info.addtocart' and '' respectively. [] [] ..... .... ... .. [2016-10-18 05:08:32] main.CRITICAL: Broken reference: the 'catalog.compare.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2016-10-18 05:08:32] main.CRITICAL: Broken reference: the 'sale.reorder.sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2016-10-18 05:08:32] main.CRITICAL: Broken reference: the 'wishlist_sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] [2016-10-18 05:08:32] main.CRITICAL: Broken reference: the 'product-sidebar' element cannot be added as child to 'sidebar.additional', because the latter doesn't exist [] [] |
2.1.2 Install, having this issue too. I can create static blocks but not CMS pages. |
2.1.2, same here.
|
2.1.4, still here. |
Reopened for review. |
I'm getting this in v2.1.2 developer mode. var/log/support_report.log:
Unlike for @vzaporozhets, this is causing an issue for me in Admin -- I'm not able to edit any products. When loading the product in Admin, I get a vague "Attention Something went wrong" error, which prevents me from saving any changes. I have a feeling the critical errors reported in |
It's worth noting that there are two distinct problems here. The first: Magento ships with code that triggers these
Magento shouldn't ship with code that drop critical warnings in the logs immediately after a fresh install with no third party extensions. The second problem here is third party code that introduces layout rules that cause similar problems. Some of the previous comments in this thread send the message that since Magento It would also be nice if people could tell folks like @thdoan that the problem they're seeing in the admin console is probably not related to these specific errors, but instead related to something else that may not be logged. Also also, fixing the problem with the dirty logs means folks like @thdoan will have clean logs and be less likely to attribute an unrelated admin error to problems with the structure of their layout handle XML files. |
Great answer, @astorm ! |
Thanks @astorm , glad to know they're not related. For the record, I'm only seeing the admin issue when I go to edit a product, nowhere else, and it does NOT help that Magento's error message is so nondescript. |
I totally agree, these messages should have been fixed a long time ago. Get it fixed Magento. It's over 1 year since release! |
Please get this fixed! It's very difficult to detect real problems in the logs when it's spammed with things that can be ignored. @astorm is absolutely right, how can Magento report many CRITICAL errors right out of the box after a fresh install? |
Ver: 2.1.5 - Win 7, Apache 2.4, PHP 7.0.16, MySQL 5.7.17 Today 18:02 06.03.2017, I´m facing the same Issue of you, now i´m going to Magento Forum to see what the guys says:
|
me too .. can anybody know how to fix this problem ? |
@PaulodoPorto @haitaoseven Proper implementation approach to fix this problem is described here: #5627 (comment) This is something that should be fixed on Magento Team side, or at least enforced on CI as I described and then announced as |
@orlangur Thank you for your approach! About the your implementation. 1° step: activate this mechanism on CI, what signify CI please, it´s a folder or a specific file? thank you in advance. The terrible point is: I have no access to Produts > Catalog and Stores > Configuration on Admin Panel...the long error page is here. |
@PaulodoPorto for integration tests you can simply change severity here: https://github.com/magento/magento2/blob/develop/dev/tests/integration/phpunit.xml.dist#L67 For instance, to see only critical errors first and then eliminating less and less important issues step-by-step. Approach I described is just to not have In your case I don't think searching for details in log could be helpful. Just enable developer mode,
Please show stack trace (better report separate issue as it does not seem to be related to the problem with littered log). |
@magento-team Please take a look at this. It creates bloated system logs and creates so much noise it's impossible to tell what are real errors and which ones are not. |
Same issue with Magento 2.1.5 system.log debug.log |
Same issue with Magento 2.1.5, checkout page is broken when add a product with Text Swatch attribute and I do not know if is related to this, I am trying to clear all errors to found the issue:
|
@malachy-mcconnnell please check this commit 5ceb082 |
Closing this issue for develop branch (release 2.2). There is a related issue for 2.1 #5627 |
Critical errors constantly logged in var/log/system.log:
From what I can tell - it happens from both adminhtml and frontend.
Magento version 2.0.2 with default theme and pretty much default setup(except 3 store views and couple of products imported).
The text was updated successfully, but these errors were encountered: