cancel
Showing results for 
Search instead for 
Did you mean: 

"Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/shop/vendor

SOLVED

"Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/shop/vendor

I HAVE INSTALLED DOM, IMAP, XML AND RESTARTED THE APACHE SERVER BUT STILL GETTING THE SAME ERROR. PLEASE HELP!!

1 ACCEPTED SOLUTION

Accepted Solutions

Re: "Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/shop/vendor

Hi @Hackerthon

 

Create an empty PHP file and put only <?php phpinfo(); in it, look at it in a browser.


Check if you can spot --disable-dom in the configuration options and/or if you can see details about the DOM extension in the list below.

 

If you cannot see DOM in the list or you see it is disabled, your PHP installation does not include the DOM extension. You'll need to recompile your PHP installation from source to remedy that.

if issue solved,Click Kudos & Accept as Solution

View solution in original post

2 REPLIES 2

Re: "Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/shop/vendor

Hi @Hackerthon

 

Create an empty PHP file and put only <?php phpinfo(); in it, look at it in a browser.


Check if you can spot --disable-dom in the configuration options and/or if you can see details about the DOM extension in the list below.

 

If you cannot see DOM in the list or you see it is disabled, your PHP installation does not include the DOM extension. You'll need to recompile your PHP installation from source to remedy that.

if issue solved,Click Kudos & Accept as Solution

Re: "Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/shop/vendor

Thanks ManthanDave,

Same error page is shown and there is no configuration page being displayed. This error is displayed in the development server while my local server is giving no error as such and working fine.