I found this error in system.log file and my layout is not loading in frontend.

main.CRITICAL: Broken reference: No element found with ID 'before.body.end'. [] [] 
  • problem solved. by adding layout="1column" in mymodule_index_index.xml file in page node Nov 28, 2015 at 8:11

2 Answers 2


In XML located at view/frontend/layout/servicecontractclient_index_index.xml

Instead of

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

Change it to

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" layout="1column" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">

The difference is adding layout="1column". Now there is another error but at least the Block class and the template are correctly being called.


problem Solved :

By just adding lines in below file . in mymodule_index_index.xml files page node I Add layout=1column and the problem is solved.

  • I'm getting this error while layout="1column" already existing. Feb 14, 2017 at 7:20
  • @Nitesh please provide full code and and ask new question for that and put this question link as a refrence Feb 14, 2017 at 7:51

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.