I got some errors when I setup:upgrade my file in Magento 2.

this is the error :

Warning: DOMDocument::loadXML(): Empty string supplied as input in /home/cloudpanel/htdocs/swift/vendor/magento/framework/Config/Dom.php on line 451

when I delete my file and setup upgrade again the issue comes again...

anyone can help me, please

1 Answer 1


Check your third party extension which have space into the starting of xml file :

like :

<?xml version="1.0"?>

so remove that and then check.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.