netresearch / module-shipping-core

The Netresearch shipping core package is the central component to offer generic functionality as required by all carriers.
Open Software License 3.0
0 stars 1 forks source link

Notice: Undefined offset: 1 in CutOffTimeConverter #4

Closed riconeitzel closed 2 years ago

riconeitzel commented 2 years ago

Shown Error

Notice: Undefined offset: 1 in vendor/netresearch/module-shipping-core/Model/ShipmentDate/CutOffTimeConverter.php on line 31

Location of Failure

https://github.com/netresearch/module-shipping-core/blob/c67d043db760aa2b0390617b90c5311418a486ed/Model/ShipmentDate/CutOffTimeConverter.php#L31

Steps to reproduce:

Stack Trace

#1 Sentry\ErrorHandler->handleError() called at [vendor/netresearch/module-shipping-core/Model/ShipmentDate/CutOffTimeConverter.php:31]
#2 Netresearch\ShippingCore\Model\ShipmentDate\CutOffTimeConverter->convert() called at [vendor/dhl/module-carrier-paket/Model/ShipmentDate/ShipmentDate.php:55]
#3 Dhl\Paket\Model\ShipmentDate\ShipmentDate->getDate() called at [vendor/deutschepost/module-internetmarke/Model/ShippingSettings/TypeProcessor/ShippingOptions/ShippingProductsProcessor.php:81]
#4 DeutschePost\Internetmarke\Model\ShippingSettings\TypeProcessor\ShippingOptions\ShippingProductsProcessor->process() called at [vendor/netresearch/module-shipping-core/Model/ShippingSettings/TypeProcessor/CompositeShippingDataProcessor.php:95]
#5 Netresearch\ShippingCore\Model\ShippingSettings\TypeProcessor\CompositeShippingDataProcessor->process() called at [vendor/netresearch/module-shipping-core/Model/ShippingSettings/PackagingDataProvider.php:86]
#6 Netresearch\ShippingCore\Model\ShippingSettings\PackagingDataProvider->getData() called at [vendor/netresearch/module-shipping-core/Model/Pipeline/Shipment/ShipmentRequest/RequestModifier/PackagingOptionReader.php:52]
#7 Netresearch\ShippingCore\Model\Pipeline\Shipment\ShipmentRequest\RequestModifier\PackagingOptionReader->getCarrierData() called at [vendor/netresearch/module-shipping-core/Model/Pipeline/Shipment/ShipmentRequest/RequestModifier/PackagingOptionReader.php:68]
#8 Netresearch\ShippingCore\Model\Pipeline\Shipment\ShipmentRequest\RequestModifier\PackagingOptionReader->getPackageValues() called at [vendor/netresearch/module-shipping-core/Model/Pipeline/Shipment/ShipmentRequest/RequestModifier/PackagingOptionReader.php:79]
#9 Netresearch\ShippingCore\Model\Pipeline\Shipment\ShipmentRequest\RequestModifier\PackagingOptionReader->getPackageOptionValues() called at [vendor/netresearch/module-shipping-core/Model/Pipeline/Shipment/ShipmentRequest/RequestModifier.php:159]
#10 Netresearch\ShippingCore\Model\Pipeline\Shipment\ShipmentRequest\RequestModifier->modifyPackage() called at [vendor/netresearch/module-shipping-core/Model/Pipeline/Shipment/ShipmentRequest/RequestModifier.php:268]
#11 Netresearch\ShippingCore\Model\Pipeline\Shipment\ShipmentRequest\RequestModifier->modify() called at [vendor/dhl/module-carrier-paket/Model/Pipeline/CreateShipments/ShipmentRequest/RequestModifier.php:102]
#12 Dhl\Paket\Model\Pipeline\CreateShipments\ShipmentRequest\RequestModifier->modify() called at [vendor/netresearch/module-shipping-core/Model/BulkShipment/BulkShipmentManagement.php:137]
#13 Netresearch\ShippingCore\Model\BulkShipment\BulkShipmentManagement->createLabels() called at [vendor/netresearch/module-shipping-core/Controller/Adminhtml/Shipment/Autocreate.php:85]
#14 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate->execute() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#15 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#16 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#17 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->___callPlugins() called at [generated/code/Netresearch/ShippingCore/Controller/Adminhtml/Shipment/Autocreate/Interceptor.php:23]
#18 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->execute() called at [vendor/magento/framework/App/Action/Action.php:111]
#19 Magento\Framework\App\Action\Action->dispatch() called at [vendor/magento/module-backend/App/AbstractAction.php:151]
#20 Magento\Backend\App\AbstractAction->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#21 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#22 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->Magento\Framework\Interception\{closure}() called at [src/WeltPixel/ext-magento2-welt_pixel-backend/Plugin/Utility.php:76]
#23 WeltPixel\Backend\Plugin\Utility->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#24 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/module-backend/App/Action/Plugin/Authentication.php:143]
#25 Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#26 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#27 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->___callPlugins() called at [generated/code/Netresearch/ShippingCore/Controller/Adminhtml/Shipment/Autocreate/Interceptor.php:32]
#28 Netresearch\ShippingCore\Controller\Adminhtml\Shipment\Autocreate\Interceptor->dispatch() called at [vendor/magento/framework/App/FrontController.php:245]
#29 Magento\Framework\App\FrontController->getActionResponse() called at [vendor/magento/framework/App/FrontController.php:212]
#30 Magento\Framework\App\FrontController->processRequest() called at [vendor/magento/framework/App/FrontController.php:147]
#31 Magento\Framework\App\FrontController->dispatch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#32 Magento\Framework\App\FrontController\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#33 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/m2epro/magento2-extension/Plugin/HealthStatus/Magento/Framework/App/FrontController.php:81]
#34 Ess\M2ePro\Plugin\HealthStatus\Magento\Framework\App\FrontController->processDispatch() called at [vendor/m2epro/magento2-extension/Plugin/AbstractPlugin.php:45]
#35 Ess\M2ePro\Plugin\AbstractPlugin->execute() called at [vendor/m2epro/magento2-extension/Plugin/HealthStatus/Magento/Framework/App/FrontController.php:45]
#36 Ess\M2ePro\Plugin\HealthStatus\Magento\Framework\App\FrontController->aroundDispatch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#37 Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#38 Magento\Framework\App\FrontController\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/FrontController/Interceptor.php:23]
#39 Magento\Framework\App\FrontController\Interceptor->dispatch() called at [vendor/magento/framework/App/Http.php:116]
#40 Magento\Framework\App\Http->launch() called at [vendor/magento/framework/Interception/Interceptor.php:58]
#41 Magento\Framework\App\Http\Interceptor->___callParent() called at [vendor/magento/framework/Interception/Interceptor.php:138]
#42 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/justbetter/magento2-sentry/Plugin/GlobalExceptionCatcher.php:58]
#43 JustBetter\Sentry\Plugin\GlobalExceptionCatcher->aroundLaunch() called at [vendor/magento/framework/Interception/Interceptor.php:135]
#44 Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}() called at [vendor/magento/framework/Interception/Interceptor.php:153]
#45 Magento\Framework\App\Http\Interceptor->___callPlugins() called at [generated/code/Magento/Framework/App/Http/Interceptor.php:23]
#46 Magento\Framework\App\Http\Interceptor->launch() called at [vendor/magento/framework/App/Bootstrap.php:264]
#47 Magento\Framework\App\Bootstrap->run() called at [pub/index.php:29]","url":"/admin/nrshipping/shipment/autocreate/key/fd458b3a142e53723e04c589160d3f253515140030480cce6d9f52a6b3797130/","script_name":"/index.php","report_id":"3fb9cc5970199bb8739d945ce79e2cdc7cf6ed288c73fb0a1017641c5c37d5b8"

Installed Version Numbers

netresearch/config-fields-m2                                      1.2.4       
A collection of custom config types for Magento 2 system configuration development.

netresearch/jsonmapper                                            v1.6.0      
Map nested JSON structures onto PHP classes

netresearch/module-interactive-batch-processing                   1.0.0       
Optional component extending the bulk shipment mass action by an additional step that allows to select shipping product and packaging per order.

netresearch/module-shipping-core                                  2.5.0       
Netresearch component providing utilities and frameworks for advanced shipping features

netresearch/module-shipping-ui                                    2.1.1       
Module providing the UI integration for the Netresearch shipping components
mam08ixo commented 2 years ago

Thank you for your report. Please revise your Cut-off Times configuration:

Stores → Configuration → Sales → Post & DHL Shipping → DHL Parcel Germany → General Settings → Order Cut-off Times

It looks like you configured the format "hh" instead of "hh:mm". The field validator allows that format but the application does not handle it properly. We will update our code accordingly. In the meantime, work around the issue by appending ":00" to the configured cut-off times.

mam08ixo commented 2 years ago

Time conversion now normalizes the input to the "hh:mm" format.