Description
Preconditions and environment
Magento 2.4.7
Upgraded from 2.4.6p5 and invoice print function creates critical error.
Clean install of 2.4.7 transferred data from original website and invoice print function creates critical error
Steps to reproduce
- Navigate to admin / sales / orders / view (any) order / invoices / print
Expected result
Invoice PDF for printing
Actual result
An error has happened during application run. See exception log for details.
Additional information
[2024-05-01T08:45:30.322327+00:00] main.CRITICAL: Error: Call to undefined function Magento\Framework\File\Pdf\ImageResource\tmpfile() in /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/File/Pdf/ImageResource/ImageFactory.php:69
Stack trace:
#0 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/File/Pdf/ImageResource/ImageFactory.php(49): Magento\Framework\File\Pdf\ImageResource\ImageFactory->createTemporaryFileAndPutContent()
#1 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/File/Pdf/Image.php(37): Magento\Framework\File\Pdf\ImageResource\ImageFactory->factory()
#2 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-sales/Model/Order/Pdf/AbstractPdf.php(291): Magento\Framework\File\Pdf\Image->imageWithPathAdvanced()
#3 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-sales/Model/Order/Pdf/Invoice.php(140): Magento\Sales\Model\Order\Pdf\AbstractPdf->insertLogo()
#4 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-sales/Controller/Adminhtml/Invoice/AbstractInvoice/Pdfinvoices.php(78): Magento\Sales\Model\Order\Pdf\Invoice->getPdf()
#5 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-sales/Controller/Adminhtml/Order/AbstractMassAction.php(62): Magento\Sales\Controller\Adminhtml\Invoice\AbstractInvoice\Pdfinvoices->massAction()
#6 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Sales\Controller\Adminhtml\Order\AbstractMassAction->execute()
#7 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->___callParent()
#8 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->Magento\Framework\Interception{closure}()
#9 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/generated/code/Magento/Sales/Controller/Adminhtml/Invoice/Pdfinvoices/Interceptor.php(23): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->___callPlugins()
#10 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/App/Action/Action.php(111): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->execute()
#11 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-backend/App/AbstractAction.php(151): Magento\Framework\App\Action\Action->dispatch()
#12 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Backend\App\AbstractAction->dispatch()
#13 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->___callParent()
#14 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-backend/App/Action/Plugin/Authentication.php(145): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->Magento\Framework\Interception{closure}()
#15 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\Backend\App\Action\Plugin\Authentication->aroundDispatch()
#16 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->Magento\Framework\Interception{closure}()
#17 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/generated/code/Magento/Sales/Controller/Adminhtml/Invoice/Pdfinvoices/Interceptor.php(32): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->___callPlugins()
#18 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/App/FrontController.php(245): Magento\Sales\Controller\Adminhtml\Invoice\Pdfinvoices\Interceptor->dispatch()
#19 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/App/FrontController.php(212): Magento\Framework\App\FrontController->getActionResponse()
#20 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/App/FrontController.php(146): Magento\Framework\App\FrontController->processRequest()
#21 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\FrontController->dispatch()
#22 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\FrontController\Interceptor->___callParent()
#23 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\FrontController\Interceptor->Magento\Framework\Interception{closure}()
#24 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/generated/code/Magento/Framework/App/FrontController/Interceptor.php(23): Magento\Framework\App\FrontController\Interceptor->___callPlugins()
#25 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/App/Http.php(116): Magento\Framework\App\FrontController\Interceptor->dispatch()
#26 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Http->launch()
#27 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(138): Magento\Framework\App\Http\Interceptor->___callParent()
#28 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/module-application-performance-monitor/Plugin/ApplicationPerformanceMonitor.php(38): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception{closure}()
#29 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(135): Magento\ApplicationPerformanceMonitor\Plugin\ApplicationPerformanceMonitor->aroundLaunch()
#30 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/Interception/Interceptor.php(153): Magento\Framework\App\Http\Interceptor->Magento\Framework\Interception{closure}()
#31 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/generated/code/Magento/Framework/App/Http/Interceptor.php(23): Magento\Framework\App\Http\Interceptor->___callPlugins()
#32 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/App/Bootstrap.php(264): Magento\Framework\App\Http\Interceptor->launch()
#33 /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/pub/index.php(30): Magento\Framework\App\Bootstrap->run()
#34 {main} {"exception":"[object] (Error(code: 0): Call to undefined function Magento\Framework\File\Pdf\ImageResource\tmpfile() at /home/1125497.cloudwaysapps.com/hwxbupurve/public_html/vendor/magento/framework/File/Pdf/ImageResource/ImageFactory.php:69)"} []
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.