2

I have a Magento 2.2 website that was moved to a new server and now when I go to the website I am presented with the below. Howeever I am not clear on what file the error exists within?? Any suggestions on how to figure out what file to go look in?

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'head': Character content other than whitespace is not allowed because the content type is 'element-only'.

Line: 45

MGento
1,51910 silver badges22 bronze badges
asked Apr 11, 2018 at 21:26
1
  • Did you check the answer? Commented May 3, 2018 at 7:55

1 Answer 1

1

Check your xml files with head element, as it seems some of them have characters which Magento does not allow / recognize https://magento.stackexchange.com/a/197822/3566

To avoid problems like this, you can use Sublime Text editor https://www.sublimetext.com/, with trim_trailing_white_space_on_save parameter enabled

http://docs.sublimetext.info/en/latest/reference/settings.html

answered Apr 12, 2018 at 5:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.