Magento 2.2 - Breadcrumbs issue Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Is it possible for breadcrumbs to always display on a product page? Not just when navigated to through category layersExclude a specific category from breadcrumbsMagento display multiple breadcrumbs in product view pageCMS Page Breadcrumbs Cache IssueMagento - How to update product position under a category according to their sub-categories?Display all categories for a product on product details pageIs there a way to replace a breadcrumb link with a specific url? (M2.1.9)Magento 2 : How to remove part of the breadcrumbs in category product page?getCurrentCategory() returns Root Category every time on Magento 2Magento 2.2 Layered Navigation Category Page issue

How to report t statistic from R

An adverb for when you're not exaggerating

What does Turing mean by this statement?

Did Mueller's report provide an evidentiary basis for the claim of Russian govt election interference via social media?

Drawing spherical mirrors

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Semigroups with no morphisms between them

Why can't I install Tomboy in Ubuntu Mate 19.04?

Lagrange four-squares theorem --- deterministic complexity

Can a new player join a group only when a new campaign starts?

The Nth Gryphon Number

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

How do living politicians protect their readily obtainable signatures from misuse?

Strange behavior of Object.defineProperty() in JavaScript

Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?

What initially awakened the Balrog?

Do I really need to have a message in a novel to appeal to readers?

The test team as an enemy of development? And how can this be avoided?

How to identify unknown coordinate type and convert to lat/lon?

Intuitive explanation of the rank-nullity theorem

How were pictures turned from film to a big picture in a picture frame before digital scanning?

One-one communication

Sum letters are not two different



Magento 2.2 - Breadcrumbs issue



Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Is it possible for breadcrumbs to always display on a product page? Not just when navigated to through category layersExclude a specific category from breadcrumbsMagento display multiple breadcrumbs in product view pageCMS Page Breadcrumbs Cache IssueMagento - How to update product position under a category according to their sub-categories?Display all categories for a product on product details pageIs there a way to replace a breadcrumb link with a specific url? (M2.1.9)Magento 2 : How to remove part of the breadcrumbs in category product page?getCurrentCategory() returns Root Category every time on Magento 2Magento 2.2 Layered Navigation Category Page issue



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















Currently i've got products in a category sub of default for example:




Root -> Sub cat -> product




I've noticed that on the product page itself the breadcrumbs are working fine for some products and not for others. Some products will show the category and others wont show the category in the breadcrumb, they will either not show the category or they will show the category.



Something else i have come across is if I currently don't assign the product to default cat the following happens:




The product is assigned to default cat



The product has a sort order of 0 in the category list




The breadcrumbs don't show the category.



What is going on? Why is the breadcrumb breaking when it is either assigned to this Default cat ( which is the root cat btw ) and I don't get what is happening with the products where the category isn't being shown in the breadcrumb.



Magento is on 2.2 - I've reindexed - I've flushed cache.



I've also pulled all of my hair out - no just a joke.



* EDIT *



If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.










share|improve this question
















bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 2





    i have the same problem but it seems its magento bug. It was reported here: github.com/magento/magento2/issues/7967 and its still open.

    – Anthony
    Dec 6 '17 at 13:21







  • 1





    Okay cool, so it is a bug & not just myself going mad.

    – andy jones
    Dec 6 '17 at 13:34











  • Is there a solution for this? I think it has something to do with Admin settings. Because like what you mentioned, it happens for some products and not others. In my case products that belong to two specific categories do not show full breadcrumbs, they only show Home > Product Name

    – Mohammed Joraid
    Jul 26 '18 at 2:29











  • If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.

    – andy jones
    Jul 26 '18 at 6:55

















3















Currently i've got products in a category sub of default for example:




Root -> Sub cat -> product




I've noticed that on the product page itself the breadcrumbs are working fine for some products and not for others. Some products will show the category and others wont show the category in the breadcrumb, they will either not show the category or they will show the category.



Something else i have come across is if I currently don't assign the product to default cat the following happens:




The product is assigned to default cat



The product has a sort order of 0 in the category list




The breadcrumbs don't show the category.



What is going on? Why is the breadcrumb breaking when it is either assigned to this Default cat ( which is the root cat btw ) and I don't get what is happening with the products where the category isn't being shown in the breadcrumb.



Magento is on 2.2 - I've reindexed - I've flushed cache.



I've also pulled all of my hair out - no just a joke.



* EDIT *



If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.










share|improve this question
















bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 2





    i have the same problem but it seems its magento bug. It was reported here: github.com/magento/magento2/issues/7967 and its still open.

    – Anthony
    Dec 6 '17 at 13:21







  • 1





    Okay cool, so it is a bug & not just myself going mad.

    – andy jones
    Dec 6 '17 at 13:34











  • Is there a solution for this? I think it has something to do with Admin settings. Because like what you mentioned, it happens for some products and not others. In my case products that belong to two specific categories do not show full breadcrumbs, they only show Home > Product Name

    – Mohammed Joraid
    Jul 26 '18 at 2:29











  • If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.

    – andy jones
    Jul 26 '18 at 6:55













3












3








3








Currently i've got products in a category sub of default for example:




Root -> Sub cat -> product




I've noticed that on the product page itself the breadcrumbs are working fine for some products and not for others. Some products will show the category and others wont show the category in the breadcrumb, they will either not show the category or they will show the category.



Something else i have come across is if I currently don't assign the product to default cat the following happens:




The product is assigned to default cat



The product has a sort order of 0 in the category list




The breadcrumbs don't show the category.



What is going on? Why is the breadcrumb breaking when it is either assigned to this Default cat ( which is the root cat btw ) and I don't get what is happening with the products where the category isn't being shown in the breadcrumb.



Magento is on 2.2 - I've reindexed - I've flushed cache.



I've also pulled all of my hair out - no just a joke.



* EDIT *



If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.










share|improve this question
















Currently i've got products in a category sub of default for example:




Root -> Sub cat -> product




I've noticed that on the product page itself the breadcrumbs are working fine for some products and not for others. Some products will show the category and others wont show the category in the breadcrumb, they will either not show the category or they will show the category.



Something else i have come across is if I currently don't assign the product to default cat the following happens:




The product is assigned to default cat



The product has a sort order of 0 in the category list




The breadcrumbs don't show the category.



What is going on? Why is the breadcrumb breaking when it is either assigned to this Default cat ( which is the root cat btw ) and I don't get what is happening with the products where the category isn't being shown in the breadcrumb.



Magento is on 2.2 - I've reindexed - I've flushed cache.



I've also pulled all of my hair out - no just a joke.



* EDIT *



If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.







magento2 category magento2.2 breadcrumbs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 16 '18 at 12:01







andy jones

















asked Dec 5 '17 at 14:43









andy jonesandy jones

7891033




7891033





bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 4 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.









  • 2





    i have the same problem but it seems its magento bug. It was reported here: github.com/magento/magento2/issues/7967 and its still open.

    – Anthony
    Dec 6 '17 at 13:21







  • 1





    Okay cool, so it is a bug & not just myself going mad.

    – andy jones
    Dec 6 '17 at 13:34











  • Is there a solution for this? I think it has something to do with Admin settings. Because like what you mentioned, it happens for some products and not others. In my case products that belong to two specific categories do not show full breadcrumbs, they only show Home > Product Name

    – Mohammed Joraid
    Jul 26 '18 at 2:29











  • If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.

    – andy jones
    Jul 26 '18 at 6:55












  • 2





    i have the same problem but it seems its magento bug. It was reported here: github.com/magento/magento2/issues/7967 and its still open.

    – Anthony
    Dec 6 '17 at 13:21







  • 1





    Okay cool, so it is a bug & not just myself going mad.

    – andy jones
    Dec 6 '17 at 13:34











  • Is there a solution for this? I think it has something to do with Admin settings. Because like what you mentioned, it happens for some products and not others. In my case products that belong to two specific categories do not show full breadcrumbs, they only show Home > Product Name

    – Mohammed Joraid
    Jul 26 '18 at 2:29











  • If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.

    – andy jones
    Jul 26 '18 at 6:55







2




2





i have the same problem but it seems its magento bug. It was reported here: github.com/magento/magento2/issues/7967 and its still open.

– Anthony
Dec 6 '17 at 13:21






i have the same problem but it seems its magento bug. It was reported here: github.com/magento/magento2/issues/7967 and its still open.

– Anthony
Dec 6 '17 at 13:21





1




1





Okay cool, so it is a bug & not just myself going mad.

– andy jones
Dec 6 '17 at 13:34





Okay cool, so it is a bug & not just myself going mad.

– andy jones
Dec 6 '17 at 13:34













Is there a solution for this? I think it has something to do with Admin settings. Because like what you mentioned, it happens for some products and not others. In my case products that belong to two specific categories do not show full breadcrumbs, they only show Home > Product Name

– Mohammed Joraid
Jul 26 '18 at 2:29





Is there a solution for this? I think it has something to do with Admin settings. Because like what you mentioned, it happens for some products and not others. In my case products that belong to two specific categories do not show full breadcrumbs, they only show Home > Product Name

– Mohammed Joraid
Jul 26 '18 at 2:29













If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.

– andy jones
Jul 26 '18 at 6:55





If anyone is having this issue, Full page cache is the culprit - disable this, flush cache and it should work how it is required.

– andy jones
Jul 26 '18 at 6:55










1 Answer
1






active

oldest

votes


















0














NO, the full page cache is not the culprit.



DON'T DISABLE FULL PAGE CACHE.



The logic flow is clearly described in MagentoCatalogHelperData::getBreadcrumbPath() when it runs $category = $this->getCategory().



Just see the getCategory() code



/**
* Return current category object
*
* @return MagentoCatalogModelCategory|null
*/
public function getCategory()

return $this->_coreRegistry->registry('current_category');



It returns an object saved in the registry called current_category. If the object is not present, the breadcrumbs will be empty.



For example, if you make a first time access (clean browser and magento cache) to a product directly from search box, you will have that breadcrumbs will be empty because registry('current_category') was not setted.



Otherwise, if you make a first time access (clean browser and magento cache) to a product after visited its category, breadcrumbs will be present, because registry('current_category') was setted.



Then, every time you make a second visit to same product page you just see the same result, because FPC (FULL PAGE CACHE) JUST CACHE EVERY GET REQUEST AND RESPONSE WITH THE CONTENT OF THE FIRST TIME VISIT.






share|improve this answer























  • looks like the issue is fixed in 2.2.x

    – andy jones
    Sep 3 '18 at 20:42











  • could you link the github issue?

    – LucScu
    Sep 4 '18 at 9:01











  • github.com/magento/magento2/issues/7967

    – andy jones
    Sep 4 '18 at 9:40











  • thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

    – LucScu
    Sep 4 '18 at 12:51











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "479"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f204554%2fmagento-2-2-breadcrumbs-issue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














NO, the full page cache is not the culprit.



DON'T DISABLE FULL PAGE CACHE.



The logic flow is clearly described in MagentoCatalogHelperData::getBreadcrumbPath() when it runs $category = $this->getCategory().



Just see the getCategory() code



/**
* Return current category object
*
* @return MagentoCatalogModelCategory|null
*/
public function getCategory()

return $this->_coreRegistry->registry('current_category');



It returns an object saved in the registry called current_category. If the object is not present, the breadcrumbs will be empty.



For example, if you make a first time access (clean browser and magento cache) to a product directly from search box, you will have that breadcrumbs will be empty because registry('current_category') was not setted.



Otherwise, if you make a first time access (clean browser and magento cache) to a product after visited its category, breadcrumbs will be present, because registry('current_category') was setted.



Then, every time you make a second visit to same product page you just see the same result, because FPC (FULL PAGE CACHE) JUST CACHE EVERY GET REQUEST AND RESPONSE WITH THE CONTENT OF THE FIRST TIME VISIT.






share|improve this answer























  • looks like the issue is fixed in 2.2.x

    – andy jones
    Sep 3 '18 at 20:42











  • could you link the github issue?

    – LucScu
    Sep 4 '18 at 9:01











  • github.com/magento/magento2/issues/7967

    – andy jones
    Sep 4 '18 at 9:40











  • thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

    – LucScu
    Sep 4 '18 at 12:51















0














NO, the full page cache is not the culprit.



DON'T DISABLE FULL PAGE CACHE.



The logic flow is clearly described in MagentoCatalogHelperData::getBreadcrumbPath() when it runs $category = $this->getCategory().



Just see the getCategory() code



/**
* Return current category object
*
* @return MagentoCatalogModelCategory|null
*/
public function getCategory()

return $this->_coreRegistry->registry('current_category');



It returns an object saved in the registry called current_category. If the object is not present, the breadcrumbs will be empty.



For example, if you make a first time access (clean browser and magento cache) to a product directly from search box, you will have that breadcrumbs will be empty because registry('current_category') was not setted.



Otherwise, if you make a first time access (clean browser and magento cache) to a product after visited its category, breadcrumbs will be present, because registry('current_category') was setted.



Then, every time you make a second visit to same product page you just see the same result, because FPC (FULL PAGE CACHE) JUST CACHE EVERY GET REQUEST AND RESPONSE WITH THE CONTENT OF THE FIRST TIME VISIT.






share|improve this answer























  • looks like the issue is fixed in 2.2.x

    – andy jones
    Sep 3 '18 at 20:42











  • could you link the github issue?

    – LucScu
    Sep 4 '18 at 9:01











  • github.com/magento/magento2/issues/7967

    – andy jones
    Sep 4 '18 at 9:40











  • thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

    – LucScu
    Sep 4 '18 at 12:51













0












0








0







NO, the full page cache is not the culprit.



DON'T DISABLE FULL PAGE CACHE.



The logic flow is clearly described in MagentoCatalogHelperData::getBreadcrumbPath() when it runs $category = $this->getCategory().



Just see the getCategory() code



/**
* Return current category object
*
* @return MagentoCatalogModelCategory|null
*/
public function getCategory()

return $this->_coreRegistry->registry('current_category');



It returns an object saved in the registry called current_category. If the object is not present, the breadcrumbs will be empty.



For example, if you make a first time access (clean browser and magento cache) to a product directly from search box, you will have that breadcrumbs will be empty because registry('current_category') was not setted.



Otherwise, if you make a first time access (clean browser and magento cache) to a product after visited its category, breadcrumbs will be present, because registry('current_category') was setted.



Then, every time you make a second visit to same product page you just see the same result, because FPC (FULL PAGE CACHE) JUST CACHE EVERY GET REQUEST AND RESPONSE WITH THE CONTENT OF THE FIRST TIME VISIT.






share|improve this answer













NO, the full page cache is not the culprit.



DON'T DISABLE FULL PAGE CACHE.



The logic flow is clearly described in MagentoCatalogHelperData::getBreadcrumbPath() when it runs $category = $this->getCategory().



Just see the getCategory() code



/**
* Return current category object
*
* @return MagentoCatalogModelCategory|null
*/
public function getCategory()

return $this->_coreRegistry->registry('current_category');



It returns an object saved in the registry called current_category. If the object is not present, the breadcrumbs will be empty.



For example, if you make a first time access (clean browser and magento cache) to a product directly from search box, you will have that breadcrumbs will be empty because registry('current_category') was not setted.



Otherwise, if you make a first time access (clean browser and magento cache) to a product after visited its category, breadcrumbs will be present, because registry('current_category') was setted.



Then, every time you make a second visit to same product page you just see the same result, because FPC (FULL PAGE CACHE) JUST CACHE EVERY GET REQUEST AND RESPONSE WITH THE CONTENT OF THE FIRST TIME VISIT.







share|improve this answer












share|improve this answer



share|improve this answer










answered Sep 3 '18 at 11:13









LucScuLucScu

1,3731230




1,3731230












  • looks like the issue is fixed in 2.2.x

    – andy jones
    Sep 3 '18 at 20:42











  • could you link the github issue?

    – LucScu
    Sep 4 '18 at 9:01











  • github.com/magento/magento2/issues/7967

    – andy jones
    Sep 4 '18 at 9:40











  • thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

    – LucScu
    Sep 4 '18 at 12:51

















  • looks like the issue is fixed in 2.2.x

    – andy jones
    Sep 3 '18 at 20:42











  • could you link the github issue?

    – LucScu
    Sep 4 '18 at 9:01











  • github.com/magento/magento2/issues/7967

    – andy jones
    Sep 4 '18 at 9:40











  • thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

    – LucScu
    Sep 4 '18 at 12:51
















looks like the issue is fixed in 2.2.x

– andy jones
Sep 3 '18 at 20:42





looks like the issue is fixed in 2.2.x

– andy jones
Sep 3 '18 at 20:42













could you link the github issue?

– LucScu
Sep 4 '18 at 9:01





could you link the github issue?

– LucScu
Sep 4 '18 at 9:01













github.com/magento/magento2/issues/7967

– andy jones
Sep 4 '18 at 9:40





github.com/magento/magento2/issues/7967

– andy jones
Sep 4 '18 at 9:40













thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

– LucScu
Sep 4 '18 at 12:51





thx, i read it well and it gives my same answer, read this github.com/magento/magento2/issues/7967#issuecomment-290929444 and following 2 contributors comments. More, in the last comments they sayd it is fixed since 2.2.3 with JS widget, however the issue is still open, i think because it is simply not possible to determine the breadcrumbs categories without referer.

– LucScu
Sep 4 '18 at 12:51

















draft saved

draft discarded
















































Thanks for contributing an answer to Magento Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f204554%2fmagento-2-2-breadcrumbs-issue%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

Magento 2 disable Secret Key on URL's from terminal The Next CEO of Stack OverflowMagento 2 Shortcut/GUI tool to perform commandline tasks for windowsIn menu add configuration linkMagento oAuth : Generating access token and access secretMagento 2 security key issue in Third-Party API redirect URIPublic actions in admin controllersHow to Disable Cache in Custom WidgetURL Key not changing in Magento 2Product URL Key gets deleted when importing custom options - Magento 2Problem with reindex terminalMagento 2 - bin/magento Commands not working in Cpanel Terminal

Aasi (pallopeli) Navigointivalikko