1

Hello as you can see in the title:

  • I have nginx installed
  • PHP 7.1
  • Installed PHP-XML
  • Installed PHP-DOM But still getting this problem when i for example want to clear cache.

pelase Help


PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/magento/vendor/magento/framework/Config/Dom.php:384
Stack trace:
#0 /var/www/magento/vendor/magento/framework/Config/Dom.php(115): Magento\Framework\Config\Dom->_initDom('__construct('_createConfigMerger('Magento\\Framewo...', '_readFiles(Object(Magento\Framework\Config\FileIterator))
#4 /var/www/magento/vendor/magento/framework/App/ObjectManagerFactory.php(275): Magento\Framework\Config\Reader\Filesystem->read('primary')
#5 /var/www/magento/vend in /var/www/magento/vendor/magento/framework/Config/Dom.php on line 384
  • You have to install the php-dom module on your system.. – Aditya Shah Apr 24 at 5:20
  • apt-get install php-xml – Aditya Shah Apr 24 at 5:20
  • And restart your server: service apache2 restart – Aditya Shah Apr 24 at 5:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.