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

Comments

@rendyep
Copy link

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

This comment has been minimized.

Copy link
Contributor

commented Oct 5, 2017

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

@nemesis-back

This comment has been minimized.

Copy link

commented Oct 29, 2017

I will work on it #SQUASHTOBERFEST 2017

@magento-team

This comment has been minimized.

Copy link
Contributor

commented Nov 4, 2017

Internal ticket to track issue progress: MAGETWO-83023

@okorshenko

This comment has been minimized.

Copy link
Contributor

commented Nov 4, 2017

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

@magento-team

This comment has been minimized.

Copy link
Contributor

commented Jan 26, 2018

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

This comment has been minimized.

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.