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

  • Did you check the answer? – Raul Sanchez May 3 '18 at 7:55
0

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

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.