Mautic Community Forums

Error 500 / PHP Fatal error

Hi,

I’m interested in Mautic and try to install Mautic on a DigitalOcean server. I have a droplet with 1GB ram and tried several times to install Mautic, but so far I still get an error 500. When I check the APache log, I see the following error:

Code:
PHP Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/html/mautic/vendor/symfony/config/Util/XmlUtils.php:52nStack trace:n#0 /var/www/html/mautic/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php(284): Symfony\Component\Config\Util\XmlUtils::loadFile('/var/www/html/m...', Array)n#1 /var/www/html/mautic/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php(41): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFileToDOM('/var/www/html/m...')n#2 /var/www/html/mautic/vendor/symfony/framework-bundle/DependencyInjection/FrameworkExtension.php(57): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->load('web.xml')n#3 /var/www/html/mautic/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(55): Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension->load(Array, Object(Symfony\Component\DependencyInjection\ContainerBuilder))n#4 /var/www/html/mautic/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.ph in /var/www/html/mautic/vendor/symfony/config/Util/XmlUtils.php on line 52

The droplet (server) is:
- Ubuntu 16.04
- Apache/2.4.18 (Ubuntu) , Server built: 2016-07-14T12:32:26
- MySQL
- PHP 7

I tried several possible solutions here in the forum, but so far no luck. Anyone any idea what this error is and how I can solve this?
Thanks in advance,
Byrge

Hi,
I’m interested in Mautic and try to install Mautic on a DigitalOcean server. I have a droplet with 1GB ram and tried several times to install Mautic, but so far I still get an error 500. When I check the APache log, I see the following error:

PHP Fatal error:  Uncaught Error: Class 'DOMDocument' not found in /var/www/html/mautic/vendor/symfony/config/Util/XmlUtils.php:52nStack trace:n#0 /var/www/html/mautic/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php(284): Symfony\Component\Config\Util\XmlUtils::loadFile('/var/www/html/m...', Array)n#1 /var/www/html/mautic/vendor/symfony/dependency-injection/Loader/XmlFileLoader.php(41): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFileToDOM('/var/www/html/m...')n#2 /var/www/html/mautic/vendor/symfony/framework-bundle/DependencyInjection/FrameworkExtension.php(57): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->load('web.xml')n#3 /var/www/html/mautic/vendor/symfony/dependency-injection/Compiler/MergeExtensionConfigurationPass.php(55): Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension->load(Array, Object(Symfony\Component\DependencyInjection\ContainerBuilder))n#4 /var/www/html/mautic/vendor/symfony/http-kernel/DependencyInjection/MergeExtensionConfigurationPass.ph in /var/www/html/mautic/vendor/symfony/config/Util/XmlUtils.php on line 52

The droplet (server) is:

  • Ubuntu 16.04
  • Apache/2.4.18 (Ubuntu) , Server built: 2016-07-14T12:32:26
  • MySQL
  • PHP 7

I tried several possible solutions here in the forum, but so far no luck. Anyone any idea what this error is and how I can solve this?
Thanks in advance,
Byrge

Perhaps some PHP libraries are missing, or a package for Symfony.

Did a search on “Symfony\Component\Config\Util\XmlUtils”

Found this: http://stackoverflow.com/questions/38240820/symfony-error-while-doctrinedatabasecreate

Could try using phpinfo to make sure the necessary PHP packages are installed and enabled.

Jer

Hi JeremyH,
I rebuilt my server with LEMP. Right now I’m able to configure Mautic, so far so good.
Thanks for your help though.

Regards,
Byrge