Skip to content
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

json_decode(): Passing null to parameter #1 ($json) of type string is deprecated #847

Open
gerben86 opened this issue Jun 11, 2024 · 1 comment
Labels
bug Something isn't working released

Comments

@gerben86
Copy link
Contributor

Plugin version

4.14.4

Magento version

2.4.7

PHP version

8.2

What went wrong?

Error when trying to ship an order via MyParcel

Reproduction steps

  1. Ship an order as a brievenbuspakje instead of a normal package via the Magento-backend.

Relevant log output

[2024-06-11T13:17:19.748723+00:00] main.CRITICAL: Exception: Deprecated Functionality: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in vendor/myparcelnl/magento/Model/Source/DefaultOptions.php on line 68 in vendor/magento/framework/App/ErrorHandler.php:62
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler()
#1 vendor/myparcelnl/magento/Model/Source/DefaultOptions.php(68): json_decode()
#2 vendor/myparcelnl/magento/Model/Sales/TrackTraceHolder.php(109): MyParcelNL\Magento\Model\Source\DefaultOptions->__construct()
#3 vendor/myparcelnl/magento/Model/Sales/MagentoCollection.php(376): MyParcelNL\Magento\Model\Sales\TrackTraceHolder->__construct()
#4 vendor/myparcelnl/magento/Model/Sales/MagentoCollection.php(461): MyParcelNL\Magento\Model\Sales\MagentoCollection->createConsignmentAndGetTrackTraceHolder()
#5 vendor/myparcelnl/magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack.php(141): MyParcelNL\Magento\Model\Sales\MagentoCollection->setNewMyParcelTracks()
#6 vendor/myparcelnl/magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack.php(76): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack->massAction()
#7 vendor/magento/framework/Interception/Interceptor.php(58): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack->execute()
#8 vendor/magento/framework/Interception/Interceptor.php(138): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callParent()
#9 vendor/magento/framework/Interception/Interceptor.php(153): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->Magento\Framework\Interception\{closure}()
#10 generated/code/MyParcelNL/Magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack/Interceptor.php(23): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callPlugins()
#11 vendor/magento/framework/App/Action/Action.php(111): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->execute()
#12 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch()
#13 vendor/magento/framework/Interception/Interceptor.php(138): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callParent()
#14 vendor/magento/framework/Interception/Interceptor.php(153): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->Magento\Framework\Interception\{closure}()
#15 generated/code/MyParcelNL/Magento/Controller/Adminhtml/Order/CreateAndPrintMyParcelTrack/Interceptor.php(32): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->___callPlugins()
#16 vendor/magento/framework/App/FrontController.php(245): MyParcelNL\Magento\Controller\Adminhtml\Order\CreateAndPrintMyParcelTrack\Interceptor->dispatch()
#17 vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#18 vendor/magento/framework/App/FrontController.php(146): Magento\Framework\App\FrontController->processRequest()
#19 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#20 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#21 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception\{closure}()
#22 generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#23 vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#24 vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()
#25 vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent()
#26 vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php(38): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
#27 vendor/magento/framework/Interception/Interceptor.php(135): Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch()
#28 vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception\{closure}()
#29 generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins()
#30 vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#31 pub/index.php(65): Magento\Framework\App\Bootstrap->run()
#32 {main} {"report_id":"9a1597169b507e40263434fe1f04d5dad317cb6469b37bf618fb9fea095044e7","exception":"[object] (Exception(code: 0): Deprecated Functionality: json_decode(): Passing null to parameter #1 ($json) of type string is deprecated in vendor/myparcelnl/magento/Model/Source/DefaultOptions.php on line 68 at vendor/magento/framework/App/ErrorHandler.php:62)"} []

Additional context

No response

@gerben86 gerben86 added the bug Something isn't working label Jun 11, 2024
@MyParcelBot
Copy link

🎉 This issue has been resolved in version 4.15.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Development

No branches or pull requests

2 participants