postnl/postnl-magento1-End-of-life

Upgrade to latets version @ 16/8/19 warning in logs

Closed this issue · 5 comments

2019-08-16T12:57:46+00:00 ERR (3): Notice: Undefined offset: 1 in app/code/community/TIG/PostNL/Model/Adminhtml/Observer/OrderGrid.php on line 775

Hi Sean,

Could you please include the issue template, and also give some context about when and where you get this notice?

To me it seems like the same notice that you've created an issue for before, which we concluded about that it was related to products not existing anymore, but because we're missing a lot of context here, I can't help you any further.

Are you able to reproduce this on a clean Magento environment with PostNL installed?

The warning comes from here

image

key is expected to exist when it does not exist

changed to

    foreach ($shippingPhases as $key => $phase) {
        if array_key_exists($key, $values) {
            $html .= $this->_decorateShippingPhase($phase, $values[$key]);
        }
    }

but maybe there is a reason for this warning and it needs to be fized elsewhere, my solution only fixes the warning

Hi Sean,

Perhaps you missed my last comment. If you aren't able to reproduce your issue on a clean environment, please get in touch with the PostNL servicedesk by emailing citservicedesk@postnl.nl.

We have to justify how we spend our time, so we can only dedicate ourself on issues that happen on a core environment.