-
Notifications
You must be signed in to change notification settings - Fork 27
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
getCarrier() must be of the type string or null error when creating shipment #477
Comments
Did you manage to solve this issue? After updating to MyParcel 4.1.2 we get this error message. We can only create shipments on the order grid (we are successfully creating consignments) but no longer on the order page itself. |
Hi. |
Yesterday a new version of the MyParcel plugin was released. This version should solve this problem. My advice is to use ven version 4.1.3 |
Shouldn't be closed issues persist |
Same issue overhere, Did you find a solution @CoenPonsen1984 or @bojanni ? |
@gerben86 we found that this error occurs when we tried to create labels for orders that were placed with an older version the plugin installed. Orders placed with >v4.1.2 installed don't cause errors anymore in our store. |
Yes, we encountered the samething. But it's sad that the plugin didn't take care of those, normal, situations. |
One of our customers is experiencing this issue as well on MyParcel 4.1.4 Magento 2.3.5-p2
|
Today I managed to reproduce this problem. I am now working on the solution for this. The fix will be included in the next version of the MyParcel plugin (4.1.5-beta.2) |
@RichardPerdaan any information on when the next version will be released? |
Solved in 4.1.6-beta.1 |
Describe the bug
Error when creating consigment
To Reproduce
Steps to reproduce the behavior:
fatal error: Uncaught TypeError: Return value of MyParcelNL\Sdk\src\Adapter\DeliveryOptions\AbstractDeliveryOptionsAdapter::getCarrier() must be of the type string or null, boolean returned in /home//public_html/vendor/myparcelnl/sdk/src/Adapter/DeliveryOptions/AbstractDeliveryOptionsAdapter.php:88 Stack trace: #0 /home//public_html/vendor/myparcelnl/magento/Model/Sales/TrackTraceHolder.php(167): MyParcelNL\Sdk\src\Adapter\DeliveryOptions\AbstractDeliveryOptionsAdapter->getCarrier() #1 /home//public_html/vendor/myparcelnl/magento/Observer/NewShipment.php(105): MyParcelNL\Magento\Model\Sales\TrackTraceHolder->convertDataFromMagentoToApi(Object(Magento\Sales\Model\Order\Shipment\Track), Array) #2 /home/bvdhe1de/public_html/vendor/myparcelnl/magento/Observer/NewShipment.php(79): MyParcelNL\Magento\Observer\NewShipment->setMagentoAndMyParcelTrack(Object(Magento\Sales\Model\Order\Shipment)) #3 /home//public_html/vendor/magento/framework/Event/Invoker/InvokerDefault.php(88): MyParcelNL\Magento\Ob in /home/***/public_html/vendor/myparcelnl/sdk/src/Adapter/DeliveryOptions/AbstractDeliveryOptionsAdapter.php on line 88
Expected behavior
The shipment to be created sccesfully
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
It look like creating a shipment from the grid works. But more testing is required
looks like the same error from here #464 (comment)
The text was updated successfully, but these errors were encountered: