Class XMLReader does not exist

by | Jun 18, 2018 | IT Tips | 0 comments

Just on the Joomla 3.8.8 "You have post-installation messages" page and when I click the "Read Messages" button I get taken to a page with an error message:

At the moment I have plenty of XML modules installed but not the one I need:

1
2
3
4
php -m | grep -i xml
libxml
SimpleXML
xml

I need to have the xmlreader module installed which apparently is in the php-xml phpXX-xml package

1
2
3
4
5
6
7
yum install php71-xml
php -m |grep -i xml
libxml
SimpleXML
xml
xmlreader
xmlwriter

To check if you have a class installed in PHP you can run this snippet:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 
 
$exists = "XMLReader"; # the class you are looking for
 
# does it exist?
if(class_exists($exists)){
    echo "Class Exists! " . $exists . "\n";
} else {
    echo "Class does not exist! " . $exists . "\n";
}
 
# if it's in a file somewhere and not in the default binary then
# reflectionClass will tell you the location
# or return false
$reflect = new ReflectionClass($exists);
 
echo var_dump($reflect->getFileName()) . "\n";

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.