[[!+myDocList:is=``:then=`[[*content]]`:else=`[[$marque-contenu-docs0]]`]] [[[[-!+myDocList:is=``: then=`*content`: else=`$marque-contenu-docs0`]]]]
... [2018-05-18 15:33:49] (ERROR @ /xxxxxxx/httpdocs/core/xpdo/om/xpdoquery.class.php : 764) Encountered empty IN condition with key id [2018-05-18 15:33:49] (ERROR @ /xxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #1.pagetitle. [2018-05-18 15:33:49] (ERROR in resource 13 @ /xxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 1373) Bad link tag `[[~]]` encountered [2018-05-18 15:33:50] (ERROR @ /xxxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #27.tv.footCol1. [2018-05-18 15:33:50] (ERROR @ /xxxxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #27.tv.footCol2. [2018-05-18 15:33:50] (ERROR @ /xxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #27.tv.footCol3. [2018-05-18 15:33:50] (ERROR @ /xxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #41.longtitle. [2018-05-18 15:33:50] (ERROR @ /xxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #72.longtitle. [2018-05-18 15:33:50] (ERROR @ /xxxxxxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #74.longtitle.
modparser.class.php : 540) Could not find snippet with name #73.longtitle.
Maybe the policy used in the Context Access ACL entry for the French context doesn't have the necessary snippet permissions?hmm.
core/model/modx/modparser.class.php : 1373) Bad link tag `[[~]]` encountered [2018-05-23 00:14:21] (ERROR @ /var/www/vhosts/xxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #27.tv.footCol1. [2018-05-23 00:14:21] (ERROR @ /var/www/vhosts/xxxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #27.tv.footCol2. [2018-05-23 00:14:21] (ERROR @ /var/www/vhosts/xxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #27.tv.footCol3. [2018-05-23 00:14:22] (ERROR @ /var/www/vhosts/xxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #41.longtitle. [2018-05-23 00:14:22] (ERROR @ /var/www/vhosts/xxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #72.longtitle. [2018-05-23 00:14:22] (ERROR @ /var/www/vhosts/xxxx/httpdocs/core/model/modx/modparser.class.php : 540) Could not find snippet with name #74.longtitle.
MODX uses modParser class for parsing default tags. This plugin adds class fastFieldParser that extends modParser. So, if modParser is modified in new version of MODX, the behaviour of plugin will be unpredictable.
.............../httpdocs/core/xpdo/om/xpdoquery.class.php : 764) Encountered empty IN condition with key id [2018-05-24 09:22:56] (ERROR in resource 33 @ /var/www/vhosts/xxxxx/httpdocs/core/model/modx/modparser.class.php : 1373) Bad link tag `[[~]]` encountered
[2018-05-24 09:26:27] (ERROR @ /var/www/vhosts/xxxxx/httpdocs/core/model/modx/modparser.class.php : 452) You should not call uncached elements inside cached! Outer tag: [[If? &subject=`[[+modx.user.id]]` &operator=`EQ` &operand=`0` &then=`[[$call_Login]]` &else=`[[!$qui-est-la]]` ]] Inner tag If? &subject=`4` &operator=`EQ` &operand=`0` &then=`Fenêtre modale<br /> <!-- Button to trigger modal --> <a href="#loginModal" role="button" class="btn" data-toggle="modal">Login</a> <!-- Modal --> <div id="loginModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h3 id="myModalLabel">Modal header</h3> </div> <div class="modal-body"> [[!getResourceField? &id=`17` &field=`content` &default=`Sorry, no data available`]] </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> </div> </div>` &else=`[[!$qui-est-la]]` ....
[[#41.longtitle]]
[[!getResourceField? &id=`41` &field=`longtitle` &default=`Sorry, no data available`]]
[[#27.tv.footCol2]]
[[getTVValue? &docId=`27` &tv=`footCol2`]]
$tvObj = $modx->getObject('modTemplateVar', array('name' => $tv)); return $tvObj->renderOutput($docId);
<!-- row of 3 columns --> <div class="row"> <div class="span4"> <div class="bloc-txt no-back"> [[getTVValue? &docId=`[[BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]]` &tv=`footCol1`]] [[-diese[[-XBabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]].tv.footCol1]] </div> </div> <div class="span4"><div class="bloc-txt no-back"> [[getTVValue? &docId=`[[BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]]` &tv=`footCol2`]] [[-diese[[-XBabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]].tv.footCol2]] </div> </div> <div class="span4"><div class="bloc-txt no-back"> [[getTVValue? &docId=`[[BabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]]` &tv=`footCol3`]] [[-diese[[-XBabelTranslation? &contextKey=`[[*context_key]]` &resourceId=`27`]].tv.footCol3]] </div> </div>
Your tags are deeply nested, and all are called cached. You have a resource field tag, inside a snippet tag, inside another snippet tag, inside a chunk inside a content tag. I wouldn't expect them to work reliably. I would be inclined to try something like this, which should be faster and more reliable (notice the only snippet call is uncached): [[!getTVValue? &docId=`27` &tv=`footCol2` &contextKey=`[[*context_key]]` ]]
/* getTVValue snippet */
$tvObj = $modx->getObject('modTemplateVar', array('name' => $tv));
$finalDocId = $modx->runSnippet('BabelTranslation', array('context_key' => $contextKey, 'resourceId' => $docId)));
return $tvObj->renderOutput($finalDocId);
<p>DocId returned from BabelTranslation: [[!getTVValue? &docId=`27` &tv=`footCol2` &contextKey=`[[*context_key]]` ]]
/* getTVValue (just one line)*/ return $modx->runSnippet('BabelTranslation', array('context_key' => $contextKey, 'resourceId' => $docId)));