Report page should display with no errors
Exception #0 (Exception): Notice: Undefined offset: 5 in /var/www/src/vendor/magento/module-reports/Model/ResourceModel/Quote/Item/Collection.php on line 222
Looks like the code needs to check the product still exists before trying to add data to the collection.
Created an extension to fix this until Magento 2 team fixes it.
https://github.com/Radosav/Radosav_ReportFix
@dannynimmo I cannot reproduce this issue as described. Please provide the detailed steps I must follow to reproduce this issue. In addition, identify the web server you are running, the versions of PHP and MySQL, and any other information needed to reproduce your issue
@smoskaluk I feel I was pretty clear in my issue report, but I will detail further:
@dannynimmo thank you for your update.
Unfortunately we still can not reproduce this issue.
Please provide following information:
I had the same problem. The module which @Radosav writes works.
You can also flush the following table, if you are in development environment: DELETE FROM quote_item;
I am having the same issue.
I installed @Radosav fix, but still it didn't work. Please suggest.
@veloraven please try to reproduce it with configurable product in shopping cart.
Thanks.
@dannynimmo I had a similar bug in my magento installation. I had created some products, they were added to cart and then these products were deleted. Deleting the products did not delete them from quote_item table. I deleted all rows from this table that had an invalid product_id and that fixed the bug for me. The products were deleted from Magento 2.1.2. I have upgraded to magento 2.1.8 now and I did not need to use the module suggested by @Radosav
@dannynimmo, thank you for your report.
We were not able to reproduce this issue by following the steps you provided. If you'd like to update it, please reopen the issue.
We tested the issue on 2.1.9
To reproduce this issue on 2.2.0 you have to:
Thanks @shreyap26 Your solution worked for me! There were a couple of deleted products in my quote_item table.