DOMDocument missing in php5.6

I'm attempting to set up a store using opencart which i am honestly very new to. I bought a theme and for some reason the team uses vqmod. I was able to install the vqmod using:

localhost/mystore/vqmod/install

and i get this response.

VQMOD ALREADY INSTALLED!

Now, when i navigate to

localhost/mystore

An error pops up saying

DomDocument

The full error message is

VQMod::bootup - ERROR - YOU NEED THE PHP "DOMDocument" EXTENSION INSTALLED TO USE VQMod

After a little research, i figured i had to install the php5.6-xml and php7.0-xml which i have.

However the error is still showing.

I went into the vqmod code and noticed the section raising the error is this.

if(!class_exists('DOMDocument')) {
        die('VQMod::bootup - ERROR - YOU NEED THE PHP "DOMDocument" EXTENSION INSTALLED TO USE VQMod');
    }

which means there's a DOMDocument class i'm missing.

However, i have tried everything i've seen online. From installing php-xml, purging php, installing php-dom,restarting apache2, checking phpinfo.

None of these seem to solve the issue.

How do i get the DOMDocument class?

I have solved this issue on PHP 7.2.10-0ubuntu0.18.04.1 with bellow commands.

sudo apt-get install php7.2-xml
sudo apt-get install php7.2-mbstring

vqmod DOMDocument missing in php5.6 issue · Issue #5112 , which means there's a DOMDocument class i'm missing. However, i have tried everything i've seen online. From installing php-xml, purging php,  vqmod DOMDocument missing in php5.6 issue #5112. After a little research, i figured i had to install the php5.6-xml and php7.0-xml which i have.

DOMDocument is part of the PHP DOM extension along with libxml which are enabled by default hence should already be part of PHP. You may need to recompile PHP.

vqmod DOMDocument missing in php5.6 issue · Issue #99 · vqmod , which means there's a DOMDocument class i'm missing. However, i have tried everything i've seen online. From installing php-xml, purging php,  Looks like the PPA for PHP5.6 (ondrej/php) updated the php-5.6 package today and when I do a apt-cache show php-xml the version is 1:7.0+36+deb.sury.org~trusty+1 and the end of the description says: This package is a dependency package, which depends on Debian's default PHP version (currently 7.0).

As mentioned by JBES - apt-get install php5.6-xml did work for me.

Expresso Store: Fatal error: Class 'DOMDocument' not found in , Am I missing some dependency on the server? cURL is in php-xml is in etc. I am trying to export an invoice to PDG and getting this error: Fatal error: Class  BadGuy´s note may be confusing since what he depicts is no special property of the relevant method. PHP works always in and on a local file system which means that if you want to use resources from other systems or - what is, indeed, BadGuy´s problem - need resources that have been dealt with by other programs or processes, you have to state and manage that explicitly in your code.

VQMod::bootup - ERROR - YOU NEED THE PHP "DOMDocument" EXTENSION INSTALLED TO USE VQMod

Best resolution which helped me is to write in PHP.ini:

extension=dom.so

This will solve the issue :)

PHP Fatal error: Class 'DOMDocument' not found in modules/filter , I also had to install php5.6-mysql for it to work. Read the error messages and install what's missing. I had this issue today on ubutnu 14.04,  If created your DOMDocument object using loadHTML() (where the source is from another site) and want to pass your changes back to the browser you should make sure the HTTP Content-Type header matches your meta content-type tags value because modern browsers seem to ignore the meta tag and trust just the HTTP header.

How do I install the dom extension for PHP7?, So I needed to write sudo apt-get install php5.6-xml . ext-mbstring * -> the requested PHP extension mbstring is missing from your system.". Anmerkungen. Hinweis: . Die DOM Extension verwendet die UTF-8 Kodierung. Es kann utf8_encode() und utf8_decode() verwendet werden, um mit Texten in der ISO-8859-1 Kodierung zu arbeiten, oder iconv für andere Zeichenkodierungen.

Install the PHP DOM Extension on CentOS – the Easiest Way , Here we cover the fastest, most effective way to get the PHP DOM extension installed on CentOS. If you've just Missing Dependency: php-common = 5.3.8-2​.el5.art is needed by package January 14, 2012 at 6:05 am. I can find no information on how to install or enable the dom extension for PHP7. I compared the list of extensions installed on the server vs a Homestead box but I can't find anything obvious. Can anyone tell me which extension to install in order to resolve the missing dependency?

apt - Install php extensions in ubuntu 16.04, sudo apt-get install php5.6-gd php5.6-mysql php5.6-dom php5.6-cli php5.6-json php5.6-common php5.6-mbstring php5.6-opcache php5.6-  When working with XML (as a strict format) might be very important to give a namespace to XPath object in order to make it work properly. I was experiencing "query" always returning empty node lists, it could not find anything.

Comments
  • Why are you using a php version from last millennium?
  • Have you checked it was not compiled with --disable-dom? You can check this with phpinfo() - php.net/manual/en/dom.installation.php
  • Under what section would this be cause i just searched the whole phpinfo() output for --disable-dom and it returned zero result.
  • At the top - 'Configure Command', however it seems this is a bug in PHP 5.6. Look for php5.6-xml with apt-cache search php dom - apt-get install php5.6-xml then restart Apache.
  • apt-cache search php dom returns php5.6-xml - DOM, SimpleXML, WDDX, XML, and XSL module for PHP
  • That is the package that should do it - apt-get install php5.6-xml and then restart Apache