Quote from: splittingred at Oct 11, 2010, 10:26 AM
It seems you have a $modx->setLogTarget(’ECHO’) call somewhere, that’s causing your log messages to be ECHO’ed rather than output to core/cache/logs/error.log.
You wish you could get off that easy, buddy...
If that were the case, then ALL of my log messages would be getting ECHO’ed regardless of how I was calling the snippets, right? But it is only happening in cases where a snippet outputs a snippet call.
Here’s a simple way to reproduce this:
1. Create an output chunk for getResources that looks like this:
id: [[+id]] --- ult parent: [[UltimateParent?&id=`[[+id]]`]]
2. add a logging command somewhere in UltimateParent:
$modx->log(modX::LOG_LEVEL_ERROR,"UltimateParent");
3. Create a resource that both 1) calls UltimateParent directly and 2) calls getResources with the output chunk that calls UltimateParent:
[[UltimateParent?&id=`39`]]
[[getResources?&parents=`5`&tpl=`resTpl`]]
Now fire up the grill, view that resource and let me know what happens. I’ll wait