This question has been answered by BobRay. See the first response.
It looks like you have two chunks named 'sub_items'.Yes, that`s exactly what I did! But there is no 'sub_items' duplicate. Somehow, loading the front end triggers some module that rewrites the chunk. Btw, there is another (new) group of chunks that`s working perfectly!
If you can't see them both in the Elements tree, you should be able to find them in the modx_site_htmlsnippets table in the database with PhpMyAdmin.
Sounds like you may have a plugin or snippet (more likely a plugin) that knows them by ID and is changing the content. Are you running VersionX or StageCoach by any chance?100% it`s not ID, but name, cause after recreating the chunk, it`s ID have changed. Anyway, here is the list of plugins:
does it recreate the chunk visiting any page or just specific pages.I haven`t tested all the pages, but 3-4 of them, as well as empty test page with blank template, did reacreate the chunk.
You can try creating a resource with a blank template and visit that resource (set site to offline, while trying, so you can be sure, not another page is visited by any user)
Does it recreate the chunk, also when you visit this empty page?