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

Critical error: Deprecated Functionality: strtotime() #792

Closed
gerben86 opened this issue Nov 24, 2023 · 1 comment
Closed

Critical error: Deprecated Functionality: strtotime() #792

gerben86 opened this issue Nov 24, 2023 · 1 comment
Labels
bug Something isn't working released

Comments

@gerben86
Copy link
Contributor

Plugin version

4.11.0

Magento version

2.4.5-p1

PHP version

8.1

What went wrong?

It's not possible to create and print a label for some orders. An error is given.

Reproduction steps

  1. Print a label for an order, placed with the MyParcel-plugin

Relevant log output

[2023-11-24T14:57:30.386063+00:00] main.CRITICAL: Exception: Deprecated Functionality: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in myparcelnl/magento/Block/Sales/View.php on line 64 in magento/framework/App/ErrorHandler.php:62
Stack trace:
#0 [internal function]: Magento\Framework\App\ErrorHandler->handler()
#1 myparcelnl/magento/Block/Sales/View.php(64): strtotime()
#2 var/view_preprocessed/pub/static/vendor/myparcelnl/magento/view/adminhtml/templates/order_view.phtml(1): MyParcelNL\Magento\Block\Sales\View->getCheckoutOptionsHtml()
#3 magento/framework/View/TemplateEngine/Php.php(71): include('...')
#4 magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\TemplateEngine\Php->render()
#5 magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent()
#6 magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}()
#7 generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins()
#8 magento/framework/View/Element/Template.php(263): Magento\Framework\View\TemplateEngine\Php\Interceptor->render()
#9 magento/framework/View/Element/Template.php(293): Magento\Framework\View\Element\Template->fetchView()
#10 magento/module-backend/Block/Template.php(141): Magento\Framework\View\Element\Template->_toHtml()
#11 magento/framework/View/Element/AbstractBlock.php(1095): Magento\Backend\Block\Template->_toHtml()
#12 magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#13 magento/framework/View/Element/AbstractBlock.php(660): Magento\Framework\View\Element\AbstractBlock->_loadCache()
#14 magento/framework/View/Layout.php(578): Magento\Framework\View\Element\AbstractBlock->toHtml()
#15 magento/framework/View/Layout.php(555): Magento\Framework\View\Layout->_renderBlock()
#16 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#17 magento/framework/View/Element/AbstractBlock.php(507): Magento\Framework\View\Layout->renderElement()
#18 var/view_preprocessed/pub/static/vendor/magento/module-sales/view/adminhtml/templates/order/view/tab/info.phtml(1): Magento\Framework\View\Element\AbstractBlock->getChildHtml()
#19 magento/framework/View/TemplateEngine/Php.php(71): include('...')
#20 magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\TemplateEngine\Php->render()
#21 magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent()
#22 magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}()
#23 generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins()
#24 magento/framework/View/Element/Template.php(263): Magento\Framework\View\TemplateEngine\Php\Interceptor->render()
#25 magento/framework/View/Element/Template.php(293): Magento\Framework\View\Element\Template->fetchView()
#26 magento/module-backend/Block/Template.php(141): Magento\Framework\View\Element\Template->_toHtml()
#27 magento/framework/View/Element/AbstractBlock.php(1095): Magento\Backend\Block\Template->_toHtml()
#28 magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#29 magento/framework/View/Element/AbstractBlock.php(660): Magento\Framework\View\Element\AbstractBlock->_loadCache()
#30 magento/module-backend/Block/Widget/Tabs.php(492): Magento\Framework\View\Element\AbstractBlock->toHtml()
#31 var/view_preprocessed/pub/static/vendor/magento/module-backend/view/adminhtml/templates/widget/tabs.phtml(1): Magento\Backend\Block\Widget\Tabs->getTabContent()
#32 magento/framework/View/TemplateEngine/Php.php(71): include('...')
#33 magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\TemplateEngine\Php->render()
#34 magento/framework/Interception/Interceptor.php(138): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callParent()
#35 magento/framework/Interception/Interceptor.php(153): Magento\Framework\View\TemplateEngine\Php\Interceptor->Magento\Framework\Interception\{closure}()
#36 generated/code/Magento/Framework/View/TemplateEngine/Php/Interceptor.php(23): Magento\Framework\View\TemplateEngine\Php\Interceptor->___callPlugins()
#37 magento/framework/View/Element/Template.php(263): Magento\Framework\View\TemplateEngine\Php\Interceptor->render()
#38 magento/framework/View/Element/Template.php(293): Magento\Framework\View\Element\Template->fetchView()
#39 magento/module-backend/Block/Template.php(141): Magento\Framework\View\Element\Template->_toHtml()
#40 magento/framework/View/Element/AbstractBlock.php(1095): Magento\Backend\Block\Template->_toHtml()
#41 magento/framework/View/Element/AbstractBlock.php(1099): Magento\Framework\View\Element\AbstractBlock->Magento\Framework\View\Element\{closure}()
#42 magento/framework/View/Element/AbstractBlock.php(660): Magento\Framework\View\Element\AbstractBlock->_loadCache()
#43 magento/framework/View/Layout.php(578): Magento\Framework\View\Element\AbstractBlock->toHtml()
#44 magento/framework/View/Layout.php(555): Magento\Framework\View\Layout->_renderBlock()
#45 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#46 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#47 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#48 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#49 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#50 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#51 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#52 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#53 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#54 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#55 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#56 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#57 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#58 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#59 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#60 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#61 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#62 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#63 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#64 magento/framework/View/Layout.php(606): Magento\Framework\View\Layout->renderElement()
#65 magento/framework/View/Layout.php(557): Magento\Framework\View\Layout->_renderContainer()
#66 magento/framework/View/Layout.php(510): Magento\Framework\View\Layout->renderNonCachedElement()
#67 magento/framework/View/Layout.php(975): Magento\Framework\View\Layout->renderElement()
#68 generated/code/Magento/Framework/View/Layout/Interceptor.php(41): Magento\Framework\View\Layout->getOutput()
#69 magento/framework/View/Result/Page.php(260): Magento\Framework\View\Layout\Interceptor->getOutput()
#70 magento/framework/View/Result/Layout.php(171): Magento\Framework\View\Result\Page->render()
#71 magento/framework/Interception/Interceptor.php(58): Magento\Framework\View\Result\Layout->renderResult()
#72 magento/framework/Interception/Interceptor.php(138): Magento\Backend\Model\View\Result\Page\Interceptor->___callParent()
#73 magento/framework/Interception/Interceptor.php(153): Magento\Backend\Model\View\Result\Page\Interceptor->Magento\Framework\Interception\{closure}()
#74 generated/code/Magento/Backend/Model/View/Result/Page/Interceptor.php(23): Magento\Backend\Model\View\Result\Page\Interceptor->___callPlugins()
#75 magento/framework/App/Http.php(120): Magento\Backend\Model\View\Result\Page\Interceptor->renderResult()
#76 magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http->launch()
#77 pub/index.php(65): Magento\Framework\App\Bootstrap->run()
#78 {main} [] []

Additional context

No response

@gerben86 gerben86 added the bug Something isn't working label Nov 24, 2023
@MyParcelBot
Copy link

🎉 This issue has been resolved in version 4.12.0 🎉

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

3 participants