Cannot assign null to property ExportPdf::$PdfBackend of type string

Error trying to export to PDF

[TypeError] Cannot assign null to property PHPMaker2026\Arcc\ExportPdf::$PdfBackend of type string in C:\wamp64\www\src\ExportPdf.php:30 Trace: #0 C:\wamp64\www\var\cache\dev\ContainerO2oZ3kE\getExportPdfService.php(25): PHPMaker2026\Arcc\ExportPdf->__construct(Object(Symfony\Component\HttpFoundation\RequestStack)) #1 C:\wamp64\www\var\cache\dev\ContainerO2oZ3kE\PHPMaker2026_Arcc_KernelDevDebugContainer.php(5080): ContainerO2oZ3kE\getExportPdfService::do(Object(ContainerO2oZ3kE\PHPMaker2026_Arcc_KernelDevDebugContainer), true) #2 C:\wamp64\www\vendor\symfony\dependency-injection\Container.php(221): ContainerO2oZ3kE\PHPMaker2026_Arcc_KernelDevDebugContainer->load('getExportPdfSer...') #3 C:\wamp64\www\vendor\symfony\dependency-injection\Container.php(203): Symfony\Component\DependencyInjection\Container::make(Object(ContainerO2oZ3kE\PHPMaker2026_Arcc_KernelDevDebugContainer), 'PHPMaker2026\\Ar...', 1) #4 C:\wamp64\www\src\ExportHandler.php(282): Symfony\Component\DependencyInjection\Container->get('PHPMaker2026\\Ar...') #5 C:\wamp64\www\src\ExportHandler.php(63): PHPMaker2026\Arcc\ExportHandler->exportData('pdf', 'security_alerta...', '1', true, false) #6 C:\wamp64\www\controllers\ApiController.php(205): PHPMaker2026\Arcc\ExportHandler->__Invoke() #7 C:\wamp64\www\vendor\symfony\http-kernel\HttpKernel.php(183): PHPMaker2026\Arcc\ApiController->export('pdf', 'security_alerta...', '1') #8 C:\wamp64\www\vendor\symfony\http-kernel\HttpKernel.php(76): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #9 C:\wamp64\www\vendor\symfony\http-kernel\Kernel.php(182): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #10 C:\wamp64\www\vendor\symfony\runtime\Runner\Symfony\HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #11 C:\wamp64\www\vendor\autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() #12 C:\wamp64\www\index.php(8): require_once('C:\\wamp64\\www\\v...') #13 {main}

Double check your advanced setting for the dompdf extension, make sure the PdfBackend setting is not empty, it must be either CPDF or TCPDF.

After enabling the extension, make sure you have re-generated userfn.php.

The extension is enabled and I regenerated the project with a cache clear. Then I also cleared the browser cache, but it had no effect.

It doesn’t export to PDF.

I cannot reproduce. If you are a registered user of v2026, you better send your project, database with the table for export to support for testing directly.