Skip to content
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

Error While Trying To Load Quote Item Collection Using Magento\Quote\Model\ResourceModel\QuoteItem\Collection::getItems() #8954

Closed
rendyep opened this issue Mar 21, 2017 · 6 comments
Assignees
Labels
bug report Component: Checkout Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@rendyep
Copy link

rendyep commented Mar 21, 2017

Preconditions

  1. Magento 2.1.5

Steps to reproduce

  1. Load Quote Item Collection using Magento\Quote\Model\ResourceModel\QuoteItem\Collection::getItems()

$quoteItemCollection = $this->quoteItemCollectionFactory->create()->getItems();

Expected result

  1. I get array of Quote Items

Actual result

  1. Thrown an error:
    Fatal error: Uncaught Error: Call to a member function getStoreId() on null in C:\www\magento2\vendor\magento\module-quote\Model\ResourceModel\Quote\Item\Collection.php:98
    Stack trace:
    #0 C:\www\magento2\vendor\magento\module-quote\Model\ResourceModel\Quote\Item\Collection.php(209): Magento\Quote\Model\ResourceModel\Quote\Item\Collection->getStoreId()
    #1 C:\www\magento2\vendor\magento\module-quote\Model\ResourceModel\Quote\Item\Collection.php(169): Magento\Quote\Model\ResourceModel\Quote\Item\Collection->_assignProducts()
    #2 C:\www\magento2\vendor\magento\framework\Data\Collection\AbstractDb.php(586): Magento\Quote\Model\ResourceModel\Quote\Item\Collection->_afterLoad()
    #3 C:\www\magento2\vendor\magento\framework\Data\Collection\AbstractDb.php(557): Magento\Framework\Data\Collection\AbstractDb->loadWithFilter(false, false)
    #4 C:\www\magento2\vendor\magento\framework\Data\Collection.php(333): Magento\Framework\Data\Collection\AbstractDb->load()
    #5 ----------
@magento-engcom-team magento-engcom-team added 2.1.x bug report Component: Checkout Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team magento-engcom-team added the Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed label Oct 5, 2017
@magento-engcom-team
Copy link
Contributor

@rendyep, thank you for your report.
We've created internal ticket(s) MAGETWO-80999 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 11, 2017
@nemesis-back
Copy link

I will work on it #SQUASHTOBERFEST 2017

@magento-team
Copy link
Contributor

Internal ticket to track issue progress: MAGETWO-83023

@okorshenko
Copy link
Contributor

The issue has been fixed in 2.2-develop branch and will be available with 2.2.2 release

@okorshenko okorshenko added the Fixed in 2.2.x The issue has been fixed in 2.2 release line label Nov 4, 2017
@magento-team
Copy link
Contributor

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

The fix will be available with the upcoming patch release.

@sidolov
Copy link
Contributor

sidolov commented Jun 13, 2018

Hi @rendyep. Thank you for your report.
The issue has been fixed in #15829 by @neeta-wagento in 2.1-develop branch
Related commit(s):

The fix will be available with the upcoming 2.1.15 release.

@sidolov sidolov added the Fixed in 2.1.x The issue has been fixed in 2.1 release line label Jun 13, 2018
magento-devops-reposync-svc pushed a commit that referenced this issue Jul 4, 2024
[Bluetooth] Community Pull Requests delivery June
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Component: Checkout Fixed in 2.1.x The issue has been fixed in 2.1 release line Fixed in 2.2.x The issue has been fixed in 2.2 release line Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

8 participants