"Class 'XMLWriter' not found" Error in php | php55w-xml-5.5.24-1.w6.x86_64.rpm is missing

Hitesh picture Hitesh · Dec 13, 2016 · Viewed 9.7k times · Source

I am getting this error in PHP in server Fatal Error (E_ERROR): Class 'XMLWriter' not found . we are using Cent OS 6

After exploring some sites, we found that we need to install php55w-xml-5.5.24-1.w6.x86_64.rpm. But the link is not working, I am not able to get this package. we are using PHP 5.5.24. We can not upgrade our PHP because of dependency with other products.Can we resolve this error without upgrading the PHP. Thanks !!!

UPDATE: we are using https://rollbar.com/ for error handing.

Answer

Kashif Chandio picture Kashif Chandio · Feb 14, 2020

Install php7-xmlwriter

yum install php-7xmlwriter