Skip to content

Call to a member function addCrumb() #11275

Closed

Description

@lano-vargas

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

Activity

  1. magento-engcom-team commented on Oct 6, 2017

    @magento-engcom-team
    Contributor

    Hi @lano-vargas
    thank you for the report. Would like submit a pull request with the fix? By this, you can participate in #SQUASHTOBERFEST

  2. magento-engcom-team commented on Oct 6, 2017

    @magento-engcom-team
    Contributor

    The fix looks simple

  3. lano-vargas commented on Oct 6, 2017

    @lano-vargas
    Author

    @magento-engcom-team I can't promise but will try and work on it this weekend.

    I'm working on it #SQUASHTOBERFEST.

    Thanks.

  4. added a commit that references this issue on Oct 8, 2017
  5. lano-vargas commented on Oct 9, 2017

    @lano-vargas
    Author

    @magento-engcom-team the "continuous-integration/travis-ci/pr" has errored with

    "The job exceeded the maximum time limit for jobs, and has been terminated."

    ref: https://travis-ci.org/magento/magento2/jobs/285215690

    Please advice what to do next.
    Thanks.

  6. lano-vargas commented on Oct 10, 2017

    @lano-vargas
    Author
  7. orlangur commented on Oct 10, 2017

    @orlangur
    Contributor

    @lano-vargas restarted, main CI source of truth is Bamboo runned internally, I'll let you know if there will be some issues revealed.

  8. lano-vargas commented on Oct 11, 2017

    @lano-vargas
    Author

    @magento-engcom-team errored for the same reason as #11275 (comment)

  9. adrian-martinez-interactiv4 commented on Oct 14, 2017

    @adrian-martinez-interactiv4
    Contributor

    @magento-engcom-team This issue should be closed, solved in PR #11382

  10. okorshenko commented on Oct 18, 2017

    @okorshenko
    Contributor

    the issue has been fixed and delivered to 2.2.2 branch. Will be available with 2.2.2 release

  11. magento-team commented on Oct 18, 2017

    @magento-team
    Contributor

    Internal ticket to track issue progress: MAGETWO-81647

  12. magento-engcom-team commented on Jan 30, 2018

    @magento-engcom-team
    Contributor

    Hi @lano-vargas. Thank you for your report.
    The issue has been fixed in magento-engcom/magento2ce#1283 by @magento-engcom-team in 2.3-develop branch
    Related commit(s):

    The fix will be available with the upcoming patch release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions