Invalid template file: 'Vendor_Module::info/default.phtml' - Magesan

Invalid template file: ‘Vendor_Module::info/default.phtml’

Invalid template file: ‘Vendor_Module::info/default.phtml’

Invalid template file: ‘Vendor_Module::info/default.phtml’

 in module: ‘Vendor_Module’ block’s name: ‘info_0’

If you are facing this issue then the issue is with your payment method.

You need to check what payment has been set for a particular order or invoice.

In my case I was also facing the same error and after scratching my mind for 2 hours. I found an issue which can help you to resolve the issue.

For a solution you need to go to the table sales_order_payment and check the method column for a particular order.

If you see, the method for the second column is ‘custompayment’ and it’s not even exist. Then you have an issue with it. Change this to ‘cashondelivery’ or any other payment method and it will work.

Happy Coding…

2 thoughts on “Invalid template file: ‘Vendor_Module::info/default.phtml’

  • The Air Ducts
    12/10/2023 at 2:04 AM

    Thank you for your articles. They are very helpful to me. Can you help me with something?

    • admin
      12/10/2023 at 5:32 AM

      What help do you need ?

Leave a Reply

Your email address will not be published. Required fields are marked *.

You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>