-
-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Contao 4] Error when changing order status #1773
Comments
Unfortunately, this is something we most likely cannot change. @Toflar any idea? |
There's no theme context in the back end so templates cannot work there really. We could maybe store the theme id just like the store id when an order is submitted and try to load it where needed. |
Well that's not the issue, because the template is configured in the store (and we have the store ID). But the notification is sent by Notification Center, therefore we don't use the Isotope/Template. Or am I wrong?
|
Not sure, you'll have to reproduce it. Imho we use the correct template class. But it uses |
Thanks for the hint. Should be fixed in 9700b68 |
I have chosen a template folder in "Store configuration" (Store configuration > Configuration > Template folder) and placed template "iso_collection_default" in this folder.
In the "Notification Center" there is a notification (Type: Order status change) with this template chosen.
Now I want to change the order status from an order and receive the following error:
[2017-02-11 15:30:31] app.CRITICAL: An exception occurred. {"exception":"[object] (Exception(code: 0): Could not find template \"iso_collection_notification\" at /home/public_html/domain.com/vendor/contao/core-bundle/src/Resources/contao/library/Contao/TemplateLoader.php:157)"} []
After making a copy of the "iso_collection_default" template and place it in root template folder, it works like a charm. Bug or feature?
The text was updated successfully, but these errors were encountered: