• Resolved bpfefferkorn

    (@bpfefferkorn)


    Hi,

    When I try to activate Safe-svg on a network installation, I get this error:

    Fatal error: Uncaught Error: Class 'DOMDocument' not found in /var/www/php/wifi_portal/wp-content/plugins/safe-svg/lib/vendor/enshrined/svg-sanitize/src/Sanitizer.php:78 Stack trace: #0 /var/www/php/wifi_portal/wp-content/plugins/safe-svg/lib/vendor/enshrined/svg-sanitize/src/Sanitizer.php(66): enshrined\svgSanitize\Sanitizer->resetInternal() #1 /var/www/php/wifi_portal/wp-content/plugins/safe-svg/safe-svg.php(35): enshrined\svgSanitize\Sanitizer->__construct() #2 /var/www/php/wifi_portal/wp-content/plugins/safe-svg/safe-svg.php(273): safe_svg->__construct() #3 /var/www/php/wifi_portal/wp-admin/includes/plugin.php(1882): include('/var/www/php/wi...') #4 /var/www/php/wifi_portal/wp-admin/plugins.php(164): plugin_sandbox_scrape('safe-svg/safe-s...') #5 {main} thrown in /var/www/php/wifi_portal/wp-content/plugins/safe-svg/lib/vendor/enshrined/svg-sanitize/src/Sanitizer.php on line 78

    Is the plugin supposed to work in a network installation?

    Thanks

    • This topic was modified 7 years, 7 months ago by bpfefferkorn.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Daryll Doyle

    (@enshrined)

    Hi @bpfefferkorn,

    It seems the problem you are having is because your PHP installation doesn’t have the DOMDocument class available rather than an issue with it being on a network installation.

    Out of curiosity, what version of PHP are you using?

    Regards,
    Daryll

    Thread Starter bpfefferkorn

    (@bpfefferkorn)

    Thanks for your quick answer.
    I’m using PHP Version 7.0.22-2+ubuntu14.04.1+deb.sury.org+4.

    After a apt-get install php7.0-xml and an Apache restart, everything works like a charm.

    Sorry for the inconvenience

    Regards,
    Baptiste

    Plugin Contributor Daryll Doyle

    (@enshrined)

    Thanks for the update @bpfefferkorn

    It’s strange that the class was missing as I thought php-xml was installed by default but I guess not.

    Either way, I’m glad you’ve got it sorted!

    Regards,
    Daryll

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error on network installation’ is closed to new replies.