Closed DavidLambauer closed 3 years ago
May I ask in which context you use this package? Chances are that a PR to this package / this package version will not fix it for you (see also dependency graph).
We're using this package in our Magento Shop https://github.com/netresearch/dhl-shipping-m2
which refers to this repo.
Not quite. It's this one: https://github.com/netresearch/dhl-module-shipping-core
Sorry for the confusion. However, I understand the issue and we will take care of it.
Well, stupid sentence. We include netresearch/dhl-shipping-m2
which then refers to netresearch/module-shipping-core
😄
@mam08ixo here is the sentry reference in case you want to dig deeper: https://sentry.io/share/issue/de15009ffb49468fb797de8efaf6389e/
Before we patch it around: Any idea how $children
of a configurable item can be empty, leading to the error? It should contain the selected simple item.
As I said, we're having this issue for a couple of days. As far as we can see, this only happens to products that are out of stock. This issue only occurs by creating orders via admin panel.
Still no luck replicating it. We will provide a workaround but you may experience other problems if the error turns out to be a symptom of some other issue.
Executing composer update --with-all-dependencies dhl/shipping-m2
should pull in the shipping core 1.1.6 dependency. Give it a try.
Since you were asking for a quick solution, any feedback on the fix?
Hi there,
we haven't seen any issues since this fix. Seems to be good. Thanks!
We track more and more errors in sentry where
$childItem
is false and therefore the following code inreadAttribute()
is going to fail withCall to a member function getProduct() on bool
. I didn't debug the whole stack trace yet. Nevertheless, thecurrent
function can return a bool and therefore the code afterwards won't succeed.Would appreciate a quick merge.