You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using a custom shipping method with the option "Eigen verzendopties via parcelpro.nl" the shipment cannot be send correctly to ParcelPro.
When clicking on the "Zending aanmelden" option in a order, the following error message is given:
Exception #0 (Exception): Deprecated Functionality: substr(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/vendor/parcelpro/shipment/Controller/Adminhtml/Shipment/Index.php on line 154
This is because the response body of ParcelPro doesn't contain a barcode. Therefore the call to substr with the empty value of $response_body['Barcode'] value will trigger this exception.
This only happens when running PHP 8.1 which is required for Magento 2.4.4 and newer. Previous version of Magento are out of support and therefore running PHP 7.4 is not a option.
The text was updated successfully, but these errors were encountered:
the-line
changed the title
Null exception when using custom shipping method
Null exception when using custom shipping method with Magento 2.4.4+
Mar 10, 2023
When using a custom shipping method with the option "Eigen verzendopties via parcelpro.nl" the shipment cannot be send correctly to ParcelPro.
When clicking on the "Zending aanmelden" option in a order, the following error message is given:
This is because the response body of ParcelPro doesn't contain a barcode. Therefore the call to substr with the empty value of
$response_body['Barcode']
value will trigger this exception.This only happens when running PHP 8.1 which is required for Magento 2.4.4 and newer. Previous version of Magento are out of support and therefore running PHP 7.4 is not a option.
The text was updated successfully, but these errors were encountered: