Fails if php-xml not installed
woganmay opened this issue · 3 comments
woganmay commented
If the plugin is installed on a server that does not have the php-xml installed, it will just fail with an exception, that it cannot find the DOMDocument class.
Class 'DOMDocument' not found
.../plugins/rainlab/sitemap/models/Definition.php line 156
I resolved it by installing php7.0-xml on my instance:
sudo apt-get install php7.0-xml
Would be nice if the plugin could check for that module's existence before installing.
daftspunk commented
Or at the very least this should be included in the readme / documentation
LukeTowers commented
Closing as it has been over a month since any meaningful activity on this occurred.