Severity: error --> Exception: Class ’DOMDocument’ not found /var/www/ezlogin/application/third_party/saml/src/Saml2/IdPMetadata Parser.php 113
Fixing "class 'DOMDocument' not found" error in ezeelogin
Overview: This article explains how to resolve the "class 'DOMDocument' not found" error by installing the required PHP DOM extension. On Debian/Ubuntu, use apt-get install php-dom/php-xml. On CentOS/Fedora/Red Hat, use yum install php-xml. If there are conflicts between PHP versions, try php53-xml. After installation, restart the web server: service apache2 restart on Ubuntu and service httpd restart on CentOS.
ERROR - 2024-08-22 14:01:27 --> Severity: error --> Exception: Class "DOMDocument" not found /var/www/ezlogin/application/third_party/vendor/onelogin/php-saml/src/Saml2/IdPMetadataParser.php 120
Step1: If you are getting the above error while checking the application logs, you need to install the DOM extension.
- For Ubuntu/Debian:
:~# apt-get install php-dom/php-xml
- For Centos / Fedora / Red Hat:
:~# yum install php-xml
Step 2: If you get conflicts between PHP 5 and PHP 5.3 packages, you could try to see if the php53-xml package exists.
- For CentOS/Fedora/Red Hat
yum list installed | grep php53-xml
- For Debian/Ubuntu
dpkg -l | grep php53-xml
Step 3: Restart the web server after installing Dom extensions,
- In Ubuntu
:~# service apache2 restart
- In Centos
:~# service httpd restart
Related Articles