Modx3 truncates snippet calls from TV after apostrophe

Summary

If you create a TV and insert a snippet call in it, modx will output the call in plaintext on the website up to the first apostrophe.

Step to reproduce

Create a TV and add it to an Tempalte. Use the TV to call a snippet, eg. gallery oder pdoPage and add a parameter to the snippet call, eg. &id=1. Example:

 [[!pdoResources?
     &parents=`11`
     &hideContainers=`1`
     &ressources=`5`
     &tpl=`sponsorsRowTpl`
     &useWeblinkUrl=`1`
     &scheme=`full`
     &sortby=`menuindex`
     &limit=`10`
 ]]

Observed behavior

in modx version 2.8.4 and older the snippet call was executed, since version 3 the call is output in plaintext up to the first apostrophe:

[[!pdoResources? &parents=

Expected behavior

The snippet call should be executed.

Environment

MODX version 3, apache 2, php 7.4

Which specific MODX3 version? 3.0.2 included several parser-related fixes that may be related.

1 Like

indeed the upgrade to Modx v3.0.2 did fix that issue!

thanks for the fast reply!

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.