MalformedXmlException.php line 39 - Class "DOMDocument" not found
wassi007 opened this issue · comments
PHP version
8.1.2
Package version
2.7.0
Application
Phar
Operating system
Ubuntu 22.04
Current behavior
./cache-warmup.phar https://google.com/sitemap.xml
Running cache warmup 2.7.0 by Elias Häußler and contributors.
Parsing sitemaps...
In MalformedXmlException.php line 39:
The string "
<sitemapindex xmlns="http://www.google.com/schemas/sitemap/0…" does not contain valid XML: Class "DOMDocument" not found
The same Message with Docker
Expected behavior
No response
Steps to reproduce
No response
Additional context
Does anyone have an idea what the problem could be?
I tested several sitemaps, but always the same error.
The same result with Docker containers.
Hi @wassi007, the message Class "DOMDocument" not found
usually indicates that the ext-dom
library is not installed in your environment. Read for example https://stackoverflow.com/questions/14395239/class-domdocument-not-found to learn how to properly install it.
For the Docker part, it would be interesting what command you actually executed. Please share the command for further investigation.
Unfortunately, I cannot reproduce the issue, neither by using the Phar file nor by using Docker.
I'm closing this issue for now. If the issue persists, feel free to write back.