Element 'body': Character content other than whitespace is not allowed because the content type is 'element-only'. Line: 806

  • since you have copy paste code in xml so there is white space on tags so just remove all space before tag starts Dec 19, 2019 at 7:40
  • i didn't copy any code i simply write code for static block which is present in admin panel Dec 19, 2019 at 7:42
  • can u please share your code in question? Dec 19, 2019 at 9:07

1 Answer 1


create new static block

for e.g new static block id is : 22

    <block class="Magento\Cms\Block\Block" name="contact">
           <argument name="block_id" xsi:type="string">22</argument>

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.