Two ways to fix this issue.
- Fixing it by changing the line 96 in this file vendor/magento/module-config/Model/Config/Structure/Converter.php.
Actual Code:
if ($children->length && trim($child->nodeValue, "\n ") === '') {
Corrected Code:
if ($children->length && trim($child->nodeValue, "\n\t ") === '') {
- Check if the XML file has any tab spacing within it. If so, remove the tab spacing and replace them with normal single spaces.