Skip to content

DOMDocument::loadXML(): Argument #1 ($source) must not be empty

My exception log in magento 2.4.7-p3 if full of:

main.CRITICAL: ValueError: DOMDocument::loadXML(): Argument #1 ($source) must not be empty in /home/public_html/vendor/magento/framework/View/Element/UiComponent/Config/DomMerger.php:322

I understand that in an xml file there is space at first line.

So I tried with:

find my/path/ -type f -empty

like adviced in this question

but it is not returning any xml files. I see txt files, csv, php, md

Am I missing something please?