We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27003
    • 24 Posts
    I’m hoping to be able to use the MemberCheck snippet but am getting the following error message

    Parse error: syntax error, unexpected ’[’ in F:\Epiphany_CMS\manager\includes\document.parser.class.inc.php(769) : eval()’d code on line 3

    which is:

    <?php
    //
    [[MemberCheck? &groups=`siteadmin, registered users` &chunk=`PTEditDel` &ph=`PTEditDel` &debug=`true`]]
    //


    Same error when run as
    [!MemberCheck? &groups=`siteadmin, registered users` &chunk=`PTEditDel` &ph=`PTEditDel` &debug=`true`!]
    


    the chunk is at the moment a very simple "Hello World" but of course we never get that far.

    Can anyone help!

    Jim
    • You can’t use the snippet tags inside code like that. Snippet tags are only used in HTML code, such as in a template, a chunk, or a document’s content.
        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
        • 27003
        • 24 Posts
        Thanks,

        I found a way around the problem with a simple
        isMemberOfWebGroup()


        Jim