Hitesh
Hitesh

Reputation: 4288

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

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.

Upvotes: 9

Views: 19586

Answers (2)

Alejandro De Castro
Alejandro De Castro

Reputation: 2247

on Centos 7, in my case this works:

yum install php-xml
service httpd restart

Upvotes: 1

Kashif Chandio
Kashif Chandio

Reputation: 49

Install php7-xmlwriter

yum install php-7xmlwriter

Upvotes: 3

Related Questions