Class XMLReader does not exist

Written by James McDonald

June 18, 2018

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:

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

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:

 <?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 *

You May Also Like…

Toggen builds a new website

So I have built and hosted a new website for Roger Clark Pest Management they are a family owned and operated Pest...

WizTree

Just downloaded WizTree (not a sponsor) from https://wiztreefree.com/ It seems to do what it says on the tin which is...

Scam call from “Telstra”

Just had a call from a man with a sub-continental accent from caller ID 0734946596 Told me there was problem with my...