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

2

9

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.

Armadillo answered 13/12, 2016 at 12:45 Comment(6)
Did you tried yum install php-xml?Czerny
not tried but to install particular class we need that packageArmadillo
Ok, I'm not sure to understand. What does it display if you try yum install php-xml from command line?Czerny
It says that php55w-xml-5.5.24-1.w6.x86_64 is obsoleted. But we can not update the PHP version due to dependency with other codesArmadillo
<<<<Loaded plugins: replace, security Setting up Install Process Package php55w-xml is obsoleted by php-xml, trying to install php-xml-5.6.29-0.1.RC1.el6.remi.x86_64 instead Resolving Dependencies >>>>>This is what I getArmadillo
I just need this package php55w-xml-5.5.24-1.w6.x86_64.rpm but can not find it in any archive. If possible, please share url for this package.Armadillo
C
3

Install php7-xmlwriter

yum install php-7xmlwriter

Carleycarli answered 14/2, 2020 at 13:13 Comment(1)
first command works for me. thanksLatton
H
1

on Centos 7, in my case this works:

yum install php-xml
service httpd restart
Hosiery answered 15/4, 2021 at 23:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.