May I have Help please

Warning: simplexml_load_string(): Entity: line 29: parser error : StartTag: invalid element name in /var/www/magento2/vendor/magento/framework/View/Model/Layout/Merge.php on line 552

  • Have you added/updated any xml file ?? Jul 8 '20 at 12:11
  • No, I haven't made any updates. I only added a category and that gave me this error.
    – Coriaas
    Jul 8 '20 at 17:28

Find and Replace these lines

protected function _loadXmlString($xmlString)
            $unescapedValues = [' ', 'é', 'à', 'ù', 'è', 'ô', '–'];
            foreach ($unescapedValues as $value) {
                // wrap in CDATA to escape
                $xmlString = str_replace($value, "<![CDATA[$value]]>", $xmlString);
            return simplexml_load_string($xmlString, 'Magento\Framework\View\Layout\Element');

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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