include(XMLWriter.php) Failed to open stream: No such file or directory

We are unable to get the PhpSpreadsheet library to generate the Excel file on one of our client servers. Below is the error log

023/07/03 06:18:10 [error] [php] include(XMLWriter.php) [function.include0]: failed to open stream: No such file or directory (/var/www/html/yii/framework/YiiBase.php:463)

The stack trace is as below

Stack trace:
#0 /var/www/html/kexplora/protected/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Shared/XMLWriter.php(5): spl_autoload_call()
#1 /var/www/html/kexplora/protected/vendor/composer/ClassLoader.php(444): include()
#2 /var/www/html/kexplora/protected/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile()
#3 unknown(0): Composer\Autoload\ClassLoader->loadClass()
#4 /var/www/html/kexplora/protected/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx/ContentTypes.php(27): spl_autoload_call()
#5 /var/www/html/kexplora/protected/vendor/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Writer/Xlsx.php(216): PhpOffice\PhpSpreadsheet\Writer\Xlsx\ContentTypes->writeContentTypes()
#6 /var/www/html/kexplora/protected/components/Controller.php(2071): PhpOffice\PhpSpreadsheet\Writer\Xlsx->save()
#7 /var/www/html/kexplora/protected/controllers/SixsaudituserrecordController.php(2116): SixsaudituserrecordController->downloadAsExcelFile()
#8 /var/www/html/yii/framework/web/actions/CInlineAction.php(49): SixsaudituserrecordController->actionExportAuditMISReport()
#9 /var/www/html/yii/framework/web/CController.php(308): CInlineAction->runWithParams()
#10 /var/www/html/yii/framework/web/filters/CFilterChain.php(134): SixsaudituserrecordController->runAction()
#11 /var/www/html/yii/framework/web/filters/CFilter.php(40): CFilterChain->run()
#12 /var/www/html/yii/framework/web/CController.php(1148): CAccessControlFilter->filter()
#13 /var/www/html/yii/framework/web/filters/CInlineFilter.php(58): SixsaudituserrecordController->filterAccessControl()
#14 /var/www/html/yii/framework/web/filters/CFilterChain.php(131): CInlineFilter->filter()
#15 /var/www/html/yii/framework/web/CController.php(291): CFilterChain->run()
#16 /var/www/html/yii/framework/web/CController.php(265): SixsaudituserrecordController->runActionWithFilters()
#17 /var/www/html/yii/framework/web/CWebApplication.php(282): SixsaudituserrecordController->run()
#18 /var/www/html/yii/framework/web/CWebApplication.php(141): CWebApplication->runController()
#19 /var/www/html/yii/framework/base/CApplication.php(185): CWebApplication->processRequest()
#20 /var/www/html/kexplora/index.php(20): CWebApplication->run()
REQUEST_URI=/sixsaudituserrecord/exportauditmisreport?sd=2023-01-01%2000:00:00&ed=2023-12-31%2023:59:59&deptId=3868

Any help would be greatly appreciated.

You need xml extension installed on your server. See php - How can I install xmlwriter? - Ask Ubuntu