Can anyone help please?

Sending a voucher causes this error:

PHP Notice: Error: Could not load template /home/sites/mysite.co.uk/public_html/store/admin/view/template/default/template/mail/voucher.tpl! in /home/sites/mysite.co.uk/public_html/store/system/modification/system/engine/loader.php on line 94

voucher.tpl is actually at store/admin/view/template/default/mail

What do I change to point loader.php to the correct please, please?

Thanks
Sunday, March 26 2017, 11:13 PM
Share this post:
Responses (3)
  • Accepted Answer

    Sunday, March 26 2017, 11:40 PM - #Permalink
    There is no /admin/view/template/default/template/mail/voucher.tpl in Arastta 1.5.5: https://github.com/arastta/arastta/tree/1.5.5/admin/view/template

    Also there is some extension/modification overriding your /system/engine/loader.php, since it's loaded from /system/modification/system/engine/loader.php - so check your modifications/extensions ...

    And maybe also clean the cache if you haven't done so after updating etc.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 27 2017, 12:06 AM - #Permalink
    Thanks Rune

    Yes... should have said this is 1.5.5.

    There are not many modifications and extensions. Some may be left over from earlier versions I fear. I disabled a Gift Voucher modification but that is for Order Totals, deleted the Modifications cache... but it didn't solve it.

    How can I work out which extension/modification overrides /system/engine/loader.php ? Thanks.

    This problem originally was found because the first customer ever to purchase a Gift Voucher didn't get a confirmation and her recipient never got an email. So I wonder if we have a bigger problem.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, March 27 2017, 04:54 PM - #Permalink
    The problem seems to be it's trying to load the template file from admin, while I think it should be loaded from catalog.
    Why I don't know, and don't have time for looking at it.

    The reason for confirmation missing might be something else though, can be as simple as the order hasn't reached the correct status to release the voucher.
    The reply is currently minimized Show
Your Reply