Using Magento 2 I created a cms static block that points to

{{block class="Inchoo\ModalOverlay\Block\etc" template="modal_overlay.phtml"}}

I followed this guide on how to create the modal


but once its saved I get a error msg "We're sorry, an error has occurred while generating this content."

turned on developer mode and I dont get any other details about the error.

1 Answer 1


Please try below code, Flush cache and refresh page again.

{{block class="Inchoo\ModalOverlay\Block\ModalOverlay" name="overlay" template="Inchoo_ModalOverlay::modal_overlay.phtml"}}
  • Thanks but yea still does not display but this time no error message.
    – Carter
    Apr 12, 2021 at 15:25
  • Please check my edited answer and try again. Apr 12, 2021 at 17:13
  • Still not sure why but it still is not loading it.. Im a beginner with magento 2 but have followed the instructions 100% and nothing.
    – Carter
    Apr 12, 2021 at 17:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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