1

Issue:

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:

public_html/app/code/Toogas/Easypay/view/frontend/templates/info/multibanco.phtml

<?php
/**
 * 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>
 </table>
 </dd>
<?php endif; ?>
</dl>
<?php echo $block->getChildHtml()?>
Hitesh
1,5791 gold badge11 silver badges27 bronze badges
asked Oct 25, 2018 at 14:30
2
  • 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

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!

answered Dec 20, 2018 at 13:33

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.