Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Email template cannot be found in CL task


Go to End


2 Posts   1568 Views

Avatar
gened

Community Member, 10 Posts

9 January 2014 at 11:56am

Hi,

I have a dev task that when run eventually creates an email from a template file I have in my project templates folder under a directory called 'Emails'. When run via command line I get a template doesn't exist in theme (I want to have in project folder) and when run in browser it runs fine.

On my local it runs fine in both command line and browser. It would seem the template isn't being picked up correctly in the template manifest when I flush=all and I don't understand why it would be available for a browser request and not from command line. Is this likely a permission issue?

Any advice?

Thanks

Avatar
Willr

Forum Moderator, 5523 Posts

11 January 2014 at 5:41pm

CLI does use a different cache in 3.*. So you may need to flush your cli interface as well - sake dev/tasks/SendEmail flush=1