Thank you! Sottwell.
Yes, you are right again! You are so smart
I have tried disable snippets in the template one by one, and evetually figured out it's getResources' fault.
Below is my code, for getting resources within some Collection Containers from several context:
<ul class="dropdown-menu">
<li class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h4 class="text-center" style="border-bottom:1px solid #fff;"><a href="[[~15]]">IT Department</a></h4>
<ul>
[[!getResources1?
&context=`itec`
&parents=`55`
&where=`{"class_key:!=":"CollectionContainer"}`
&depth=`5`
&limit=`50`
&tpl=`MajorMenuItem`
&debug=`0`
]]
</ul>
</li>
<li class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h4 class="text-center" style="border-bottom:1px solid #fff;"><a href="[[~27]]">Construction and Folk Arts</a></h4>
<ul>
[[!getResources1?
&context=`consfolk`
&parents=`55`
&where=`{"class_key:!=":"CollectionContainer"}`
&depth=`5`
&limit=`50`
&tpl=`MajorMenuItem`
&debug=`0`
]]
</ul>
</li>
<li class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h4 class="text-center" style="border-bottom:1px solid #fff;"><a href="[[~44]]">Mechenical and Electric Engineering Department </a></h4>
<ul>
[[!getResources1?
&context=`mechelec`
&parents=`55`
&where=`{"class_key:!=":"CollectionContainer"}`
&depth=`5`
&limit=`50`
&tpl=`MajorMenuItem`
&debug=`0`
]]
</ul>
</li>
<li class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h4 class="text-center" style="border-bottom:1px solid #fff;"><a href="[[~45]]">Chemical and Biological Department</a></h4>
<ul>
[[!getResources1?
&context=`chembiol`
&parents=`55`
&where=`{"class_key:!=":"CollectionContainer"}`
&depth=`5`
&limit=`50`
&tpl=`MajorMenuItem`
&debug=`0`
]]
</ul>
</li>
<li class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h4 class="text-center" style="border-bottom:1px solid #fff;"><a href="[[~43]]">Basic Teaching</a></h4>
<ul>
[[!getResources1?
&context=`baseteac`
&parents=`55`
&where=`{"class_key:!=":"CollectionContainer"}`
&depth=`5`
&limit=`50`
&tpl=`MajorMenuItem`
&debug=`0`
]]
</ul>
</li>
<li class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
<h4 class="text-center" style="border-bottom:1px solid #fff;"><a href="[[~46]]">Luxi Branch</a></h4>
<ul>
[[!getResources?
&context=`luxi`
&parents=`55`
&where=`{"class_key:!=":"CollectionContainer"}`
&depth=`5`
&limit=`50`
&tpl=`MajorMenuItem`
&debug=`0`
]]
</ul>
</li>
</ul>
I commented them out, error messages were gone! How come?!
Is there a bug in getResources?