Exception #0 (Magento\Framework\Exception\ValidatorException): Invalid template file: 'Toogas_Easypay::info/multibanco.phtml' in module: 'Toogas_Easypay' block's name: 'multibanco\info_0'

Layout Location:


 * Copyright © 2016 Magento. All rights reserved.
 * See COPYING.txt for license details.

// @codingStandardsIgnoreFile

 * @var \Magento\Payment\Block\Info $block
 * @see \Magento\Payment\Block\Info
$specificInfo = $block->getSpecificInformation();
$title = $block->escapeHtml($block->getMethod()->getTitle());
<dl class="payment-method">
    <dt class="title"><?php /* @noEscape */ echo $title; ?></dt>
<?php if($specificInfo): ?>
    <dd class="content" style="border: solid 1px #ddd;padding-bottom: 12px;">
        <table class="data">
            <tr><td style="height:64px;" colspan="2"><img src="<?php echo $block->getLogoSrc() ?>" style="height:64px;"/></td></tr>
            <tr><td><strong><?php echo $block->escapeHtml(__('Entity'))?>:</strong></td><td ><?php echo $block->escapeHtml($specificInfo['entity'])?></td></tr>
            <tr><td><strong><?php echo $block->escapeHtml(__('Reference'))?>:</strong></td><td ><?php echo $block->escapeHtml($specificInfo['reference'])?></td></tr>
            <tr><td><strong><?php echo $block->escapeHtml(__('Amount'))?>:</strong></td><td ><?php echo $block->escapeHtml($specificInfo['amount'])?></td></tr>
<?php endif; ?>
<?php echo $block->getChildHtml()?>
  • share the code where you set this template. Commented Oct 25, 2018 at 14:31
  • Check if is there any error in phtml file. I have face same issue and I have error in phtml file Commented Oct 26, 2018 at 5:47

1 Answer 1


I had this exact problem, the reason is because this module only supports magento 2.0.* This was from an actual phone conversation we had with them today. However after a couple hours of digging though the code I found the solution!

Copy the file app/code/Toogas/Easypay/view/adminhtml/templates/multibanco.phtml to a new folder : app/code/Toogas/Easypay/view/adminhtml/templates/info/multibanco.phtml And that's it!

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.