-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
I have encounter a small issue on new installation of Magento 2.1.7 regards to breadcrumbs.
step to recreate the issue is simple once install is susccesfull:
1- create custom Theme
2- create default.xml
3- add <referenceBlock name="breadcrumbs" remove="true" />
4- navigate to your Magento installation root url .../sales/guest/form/
5- error: 500
Log:
PHP Fatal error: Call to a member function addCrumb() on boolean in /Library/WebServer/Documents/dev/vendor/magento/module-sales/Helper/Guest.php on line 205
Comment or removing
/($breadcrumbs->addCrumb(
'home',
[
'label' => __('Home'),
'title' => __('Go to Home Page'),
'link' => $this->_storeManager->getStore()->getBaseUrl()
]
);
$breadcrumbs->addCrumb(
'cms_page',
['label' => __('Order Information'), 'title' => __('Order Information')]
);/
Will display the the page correctly.
Thank's
Juliano