We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33974
    • 156 Posts
    Hi all,

    I have a setup here (2.2rc1) with getResources call.
    Since some upgrades I get these errors:
    [2011-12-07 12:01:55] (ERROR @ /index.php) `[[+id]]` is not a valid integer and may not be passed to makeUrl()

    My template is this one:
    [[getResources? &parents=`[[*id]]` &depth=`0` &tpl=`uebersicht` &includeTVs=`1` &processTVs=`1` &sortby=`menuindex` &sortdir=`ASC`]]
    [[$site_footer]]

    uebersicht.chunk is:
    <section class="row uebersicht-item">
    	<figure class="col4">
    		<a href="[[~[[+id]]]]"><img src="[[+tv.preview_img:phpthumbof=`w=290&h=180&zc=1`]]" alt="Zusammenfassung [[+pagetitle]]" /></a>
    	</figure>
    	<article class="col8 last">
    		<h1><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h1>
    		<p>[[+introtext]]</p>
    	</article>
    </section>


    I'm not sure about where exactly this error occurs but it would be awesome if you can say hot to solve this.

    Thanks in advance!
    Anselm
    • Are you sure that's where the error is coming from?

      Try just having the tpl output the [[+id]] placeholder value and see what it thinks it's doing.

      <p>ID is [[+id]]</p>
      
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 33974
        • 156 Posts
        No, it just was a wrong [[~[[+id]]]] call instead of [[~[[*id]]]]. Sorry, this was easy. Just didn't realize.