A different use case -- using getResources. Caching seems to be impacting the issue when getResources is in play.
See my immediately prior message for background. In addition to simple placement of image TVs via chunk/template, on the same site on a different public resource, I have a use case to pull resources that include image TVs via getResources. I'm getting the error on accesses to the resource that calls getResources.
As another poster had noted; all that has to happen is for a resource to call getResources on a group of resources that themselves have one or more image TVs
even if the image TVs aren't referenced in the output template. I tried changing the template getResources so that it outputs nothing but 'hello world', and the log error still appears.
Caching
In the process of working with this, I noticed that the first hit to the getResources calling-resource on an empty cache
does not generate the error. Hitting it the second and subsequent times -- on a primed cache for that resource -- the error is generated.
I experimented with different combinations of cache settings with the following results:
- Disable cache for resources pulled by getResources: error still generated
- Disable caching for getResources call: error not generated. This does not work for my needs, as in this use case, I'm getting a single random resource from a collection on each page visit via getResources
- Change the resource that calls getResources to non-cached: no error, even with the snippet and it's called resources cached
So... for the moment, I appear to be stuck with either a non-cached calling resource, or a log file that'll fill up. As I have only one viewable resource in this pickle, I went with disabling its cache.