-
Notifications
You must be signed in to change notification settings - Fork 0
Template digest error #472
Comments
@corylown Looks like that's indeed the issue. |
@corylown Strangely, I haven't been able to replicate this error in my local app/log, even with blank or garbage display_format values. But it definitely looks like adding a check for that download partial should do the trick. |
@seanaery you might have to turn caching on in development to see the error. In config/environments/development.rb update this line to 'true' to turn caching on:
Turn this back to false and clear the cache after to avoid weird issues later ;-) |
Looks like a Rails bug and not something we can easily fix. Doesn't cause any fatal errors. |
Agreed -- I've tried several workarounds but none actually work. Only solution would be to refactor those partials so they don't use interpolated strings for partial names. The costs of doing that probably outweigh the benefits. |
To document the workarounds I tried... Appears correctly to user but logs error
Error for User
|
You need to use double quotes for Ruby string interpolation to work. But that still probably doesn't fix the core issue. |
Oh, that's right--thanks. Indeed that also results in an error in the log: |
Seeing this error in the log occasionally.
08:49:04 ERROR: Couldn't find template for digesting: catalog/item_options_download_
I think it has to do with the way templates are being called: app/views/catalog/_item_options_download.html.erb
<%= render partial: 'item_options_download_' + @document.display_format, locals: local_assigns %>
It may happen when @display_format is null?
The text was updated successfully, but these errors were encountered: